--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/enmi12/glossaire/_posts/tests/2011-03-27-no-items.html Wed Nov 06 03:21:17 2013 +0000
@@ -0,0 +1,29 @@
+---
+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>
\ No newline at end of file