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.
41 lines
1.0 KiB
41 lines
1.0 KiB
<!doctype html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="utf-8" /> |
|
<title>Isotope Demo: {{ page.title }}</title> |
|
|
|
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" /> |
|
|
|
</head> |
|
<body> |
|
|
|
<h1>{{ page.title }}</h1> |
|
|
|
<div id="demo" class="iso-container variable-sizes"> |
|
{% assign page_position = page.page_position %} |
|
{% for element in site.elements limit:20 offset:page_position %} |
|
{% include element-partial.html %} |
|
{% endfor %} |
|
</div> |
|
|
|
<script src="../js/jquery-1.4.4.min.js"></script> |
|
<script src="../src/mini-modernizr.js"></script> |
|
<script src="../src/jquery.opto-transform.js"></script> |
|
<script src="../src/jquery.smartresize.js"></script> |
|
<script src="../src/jquery.isotope.js"></script> |
|
<script src="../src/jquery.ui.widget.js"></script> |
|
<script> |
|
$(function(){ |
|
|
|
var $demo = $('#demo'); |
|
|
|
$demo.isotope({ |
|
itemSelector : '.element', |
|
layoutMode : 'fitRows' |
|
}); |
|
|
|
}); |
|
</script> |
|
|
|
</body> |
|
</html> |