Sha256: ae36813b51e5d0f363fa8e56e7aacf5c855a67df1afc9a26cfa721f270ae2ba8

Contents?: true

Size: 1.06 KB

Versions: 11

Compression:

Stored size: 1.06 KB

Contents

---
title: destroy
layout: default
category: tests
---

  <style>
    #container {
      width: 80%;
      height: 80%;
    }
  </style>

  <section id="copy">
    <p>Click <em>init</em> button the <em>destroy</em>. Original CSS, pre-init, should be re-applied, all items back to visibility.</p>
  </section>

  <section id="options">
    <button id="init">Init Isotope instance</button>
    <button id="destroy">Destroy Isotope instance</button>
  </section>

  <div id="container" style="height: 600px">
    {% for element in site.elements limit:20 %}
      {% include element-partial.html %}
    {% endfor %}
  </div> <!-- #container -->

  <script src="../{{ site.jquery_js }}"></script>
  <script src="../{{ site.isotope_js }}"></script>
  <script>
    $(function(){
    
      var $container = $('#container');
    
      $('#init').click(function(){
        $container.isotope({
          itemSelector: '.element',
          filter: '.metal'
        });
      });
      
      $('#destroy').click(function(){
        $container.isotope('destroy');
      });
    
    });
  </script>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bonethug-0.0.17 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html
bonethug-0.0.16 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html
bonethug-0.0.15 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html
bonethug-0.0.14 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html
bonethug-0.0.13 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html
bonethug-0.0.12 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html
bonethug-0.0.11 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html
bonethug-0.0.10 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html
bonethug-0.0.7 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html
bonethug-0.0.6 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html
bonethug-0.0.5 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_posts/tests/2011-03-27-destroy.html