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.
37 lines
734 B
37 lines
734 B
14 years ago
|
---
|
||
|
title: destroy01
|
||
|
layout: demo
|
||
|
category: tests
|
||
|
---
|
||
|
|
||
|
<style>
|
||
|
#container {
|
||
|
width: 80%;
|
||
|
height: 80%;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<section id="copy">
|
||
|
<p>After <code>destroy</code>-ing Isotope, original CSS gets re-applied</p>
|
||
|
</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');
|
||
|
|
||
|
$container.isotope({
|
||
|
itemSelector: '.element',
|
||
|
filter: '.metal'
|
||
|
});
|
||
|
|
||
|
});
|
||
|
</script>
|