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.

79 lines
2.4 KiB

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Isotope tests</title>
<link rel="stylesheet" href="tests.css" />
11 years ago
<link rel="stylesheet" href="../bower_components/qunit/qunit/qunit.css" />
11 years ago
<script src="../bower_components/qunit/qunit/qunit.js"></script>
11 years ago
<script src="../bower_components/eventEmitter/EventEmitter.js"></script>
<script src="../bower_components/eventie/eventie.js"></script>
<script src="../bower_components/doc-ready/doc-ready.js"></script>
<script src="../bower_components/get-style-property/get-style-property.js"></script>
<script src="../bower_components/get-size/get-size.js"></script>
<script src="../bower_components/jquery-bridget/jquery.bridget.js"></script>
<script src="../bower_components/matches-selector/matches-selector.js"></script>
<script src="../bower_components/outlayer/item.js"></script>
<script src="../bower_components/outlayer/outlayer.js"></script>
<script src="../bower_components/masonry/masonry.js"></script>
<script src="../item.js"></script>
<script src="../layout-mode.js"></script>
<script src="../isotope.js"></script>
<script src="../layout-modes/fit-rows.js"></script>
<script src="../layout-modes/masonry.js"></script>
11 years ago
<script src="sorting.js"></script>
<script src="get-sort-data.js"></script>
<script src="layout-complete.js"></script>
</head>
<body>
11 years ago
<h1>Isotope tests</h1>
<div id="qunit"></div>
11 years ago
<h2>Sorting</h2>
11 years ago
<div id="sorting1" class="container">
<div class="item"><b>B</b><i>4</i></div>
<div class="item"><b>B</b><i>2</i></div>
<div class="item"><b>A</b><i>4</i></div>
<div class="item"><b>A</b><i>1</i></div>
<div class="item"><b>B</b><i>1</i></div>
<div class="item"><b>A</b><i>3</i></div>
<div class="item"><b>A</b><i>2</i></div>
</div>
<h2>getSortData</h2>
<div id="get-sort-data" class="container">
<div class="item" data-ninja-turtle="leonardo">
<span class="fruit">watermelon</span>
<b>3.14</b>
<i>42</i>
</div>
</div>
<h2>layoutComplete</h2>
<div id="layout-complete" class="container">
<div class="item a1 b1">a1 b1</div>
<div class="item a2 b1">a2 b1</div>
<div class="item a3 b1">a3 b1</div>
<div class="item a1 b2">a1 b2</div>
<div class="item a2 b2">a2 b2</div>
<div class="item a3 b2">a3 b2</div>
<div class="item a1 b3">a1 b3</div>
<div class="item a2 b3">a2 b3</div>
<div class="item a3 b3">a3 b3</div>
</div>
</body>
</html>