mirror of https://github.com/metafizzy/isotope
Filter & sort magical layouts
http://isotope.metafizzy.co
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
706 B
29 lines
706 B
14 years ago
|
---
|
||
13 years ago
|
title: no items
|
||
14 years ago
|
layout: default
|
||
14 years ago
|
category: tests
|
||
|
---
|
||
|
|
||
|
<section id="copy">
|
||
14 years ago
|
<p>What happens when there are no items for Isotope? If no items match `itemSelector`, container collapses. Plugin still <code>return this</code>.</p>
|
||
14 years ago
|
</section>
|
||
|
|
||
14 years ago
|
<div id="container">
|
||
14 years ago
|
{% 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'
|
||
14 years ago
|
}).css('border', '10px solid');
|
||
14 years ago
|
|
||
|
});
|
||
|
</script>
|