enmi12/glossaire/_posts/tests/2011-03-27-no-items.html
author ymh <ymh.work@gmail.com>
Tue, 22 Oct 2019 16:11:46 +0200
changeset 15 3d4e9c994f10
parent 0 d970ebf37754
permissions -rwxr-xr-x
Upgrade jquery-ui in in-motion theme version from 1.8.14 to 1.8.22 to avoid 'a.curCSS is not a function' errors in console that caused problems with circles and navigation.

---
title: no items
layout: default
category: tests
---

  <section id="copy">
    <p>What happens when there are no items for Isotope? If no items match `itemSelector`, container collapses.  Plugin still <code>return this</code>.</p>
  </section>

  <div id="container">
    {% 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');
    
      $container.isotope({
        itemSelector: '.foo'
      }).css('border', '10px solid');
    
    });
  </script>