no-items.html 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>no items &middot; Isotope </title>
  6. <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  7. <link rel="stylesheet" href="../css/style.css" />
  8. <!-- scripts at bottom of page -->
  9. </head>
  10. <body class="tests ">
  11. <nav id="site-nav">
  12. <h1><a href="../index.html">Isotope</a></h1>
  13. <h2>Docs</h2>
  14. <ul>
  15. <li><a href="../docs/introduction.html">Introduction</a>
  16. <li><a href="../docs/options.html">Options</a>
  17. <li><a href="../docs/methods.html">Methods</a>
  18. <li><a href="../docs/layout-modes.html">Layout modes</a>
  19. <li><a href="../docs/filtering.html">Filtering</a>
  20. <li><a href="../docs/sorting.html">Sorting</a>
  21. <li><a href="../docs/animating.html">Animating</a>
  22. <li><a href="../docs/adding-items.html">Adding items</a>
  23. <li><a href="../docs/extending-isotope.html">Extending Isotope</a>
  24. <li><a href="../docs/hash-history-jquery-bbq.html">Hash history with jQuery BBQ</a>
  25. <li><a href="../docs/help.html">Help</a>
  26. <li><a href="../docs/license.html">License</a>
  27. </ul>
  28. <h2>Demos</h2>
  29. <ul>
  30. <li><a href="../demos/basic.html">Basic</a>
  31. <li><a href="../demos/elements-complete.html">Elements Complete</a>
  32. <li><a href="../demos/elements-partial.html">Elements Partial</a>
  33. <li><a href="../demos/layout-modes.html">Layout modes</a>
  34. <li><a href="../demos/filtering.html">Filtering</a>
  35. <li><a href="../demos/sorting.html">Sorting</a>
  36. <li><a href="../demos/relayout.html">reLayout</a>
  37. <li><a href="../demos/adding-items.html">Adding items</a>
  38. <li><a href="../demos/infinite-scroll.html">Infinite Scroll</a>
  39. <li><a href="../demos/images.html">Images</a>
  40. <li><a href="../demos/combination-filters.html">Combination filters</a>
  41. <li><a href="../demos/hash-history.html">Hash history</a>
  42. <li><a href="../demos/fluid-responsive.html">Fluid / responsive</a>
  43. </ul>
  44. <h2>Custom layout modes</h2>
  45. <ul>
  46. <li><a href="../custom-layout-modes/centered-masonry.html">Centered Masonry</a>
  47. <li><a href="../custom-layout-modes/category-rows.html">Category rows</a>
  48. <li><a href="../custom-layout-modes/masonry-corner-stamp.html">Masonry corner stamp</a>
  49. <li><a href="../custom-layout-modes/masonry-gutters.html">Masonry gutters</a>
  50. <li><a href="../custom-layout-modes/spine-align.html">Spine align</a>
  51. </ul>
  52. <h2><a href="../tests/index.html">Tests</a></h2>
  53. </nav> <!-- #site-nav -->
  54. <section id="content">
  55. <h1>no items</h1>
  56. <section id="copy">
  57. <p>What happens when there are no items for Isotope? If no items match `itemSelector`, container collapses. Plugin still <code>return this</code>.</p>
  58. </section>
  59. <div id="container">
  60. <div class="element other nonmetal " data-symbol="H" data-category="other">
  61. <p class="number">1</p>
  62. <h3 class="symbol">H</h3>
  63. <h2 class="name">Hydrogen</h2>
  64. <p class="weight">1.00794</p>
  65. </div>
  66. <div class="element noble-gas nonmetal " data-symbol="He" data-category="noble-gas">
  67. <p class="number">2</p>
  68. <h3 class="symbol">He</h3>
  69. <h2 class="name">Helium</h2>
  70. <p class="weight">4.002602</p>
  71. </div>
  72. <div class="element alkali metal " data-symbol="Li" data-category="alkali">
  73. <p class="number">3</p>
  74. <h3 class="symbol">Li</h3>
  75. <h2 class="name">Lithium</h2>
  76. <p class="weight">6.941</p>
  77. </div>
  78. <div class="element alkaline-earth metal " data-symbol="Be" data-category="alkaline-earth">
  79. <p class="number">4</p>
  80. <h3 class="symbol">Be</h3>
  81. <h2 class="name">Beryllium</h2>
  82. <p class="weight">9.012182</p>
  83. </div>
  84. <div class="element metalloid " data-symbol="B" data-category="metalloid">
  85. <p class="number">5</p>
  86. <h3 class="symbol">B</h3>
  87. <h2 class="name">Boron</h2>
  88. <p class="weight">10.811</p>
  89. </div>
  90. <div class="element other nonmetal " data-symbol="C" data-category="other">
  91. <p class="number">6</p>
  92. <h3 class="symbol">C</h3>
  93. <h2 class="name">Carbon</h2>
  94. <p class="weight">12.0107</p>
  95. </div>
  96. <div class="element other nonmetal " data-symbol="N" data-category="other">
  97. <p class="number">7</p>
  98. <h3 class="symbol">N</h3>
  99. <h2 class="name">Nitrogen</h2>
  100. <p class="weight">14.0067</p>
  101. </div>
  102. <div class="element other nonmetal " data-symbol="O" data-category="other">
  103. <p class="number">8</p>
  104. <h3 class="symbol">O</h3>
  105. <h2 class="name">Oxygen</h2>
  106. <p class="weight">15.9994</p>
  107. </div>
  108. <div class="element halogen nonmetal " data-symbol="F" data-category="halogen">
  109. <p class="number">9</p>
  110. <h3 class="symbol">F</h3>
  111. <h2 class="name">Fluorine</h2>
  112. <p class="weight">18.9984032</p>
  113. </div>
  114. <div class="element noble-gas nonmetal " data-symbol="Ne" data-category="noble-gas">
  115. <p class="number">10</p>
  116. <h3 class="symbol">Ne</h3>
  117. <h2 class="name">Neon</h2>
  118. <p class="weight">20.1797</p>
  119. </div>
  120. <div class="element alkali metal " data-symbol="Na" data-category="alkali">
  121. <p class="number">11</p>
  122. <h3 class="symbol">Na</h3>
  123. <h2 class="name">Sodium</h2>
  124. <p class="weight">22.98976928</p>
  125. </div>
  126. <div class="element alkaline-earth metal " data-symbol="Mg" data-category="alkaline-earth">
  127. <p class="number">12</p>
  128. <h3 class="symbol">Mg</h3>
  129. <h2 class="name">Magnesium</h2>
  130. <p class="weight">24.305</p>
  131. </div>
  132. <div class="element post-transition metal " data-symbol="Al" data-category="post-transition">
  133. <p class="number">13</p>
  134. <h3 class="symbol">Al</h3>
  135. <h2 class="name">Aluminium</h2>
  136. <p class="weight">26.9815386</p>
  137. </div>
  138. <div class="element metalloid " data-symbol="Si" data-category="metalloid">
  139. <p class="number">14</p>
  140. <h3 class="symbol">Si</h3>
  141. <h2 class="name">Silicon</h2>
  142. <p class="weight">28.0855</p>
  143. </div>
  144. <div class="element other nonmetal " data-symbol="P" data-category="other">
  145. <p class="number">15</p>
  146. <h3 class="symbol">P</h3>
  147. <h2 class="name">Phosphorus</h2>
  148. <p class="weight">30.973762</p>
  149. </div>
  150. <div class="element other nonmetal " data-symbol="S" data-category="other">
  151. <p class="number">16</p>
  152. <h3 class="symbol">S</h3>
  153. <h2 class="name">Sulfur</h2>
  154. <p class="weight">32.065</p>
  155. </div>
  156. <div class="element halogen nonmetal " data-symbol="Cl" data-category="halogen">
  157. <p class="number">17</p>
  158. <h3 class="symbol">Cl</h3>
  159. <h2 class="name">Chlorine</h2>
  160. <p class="weight">35.453</p>
  161. </div>
  162. <div class="element noble-gas nonmetal " data-symbol="Ar" data-category="noble-gas">
  163. <p class="number">18</p>
  164. <h3 class="symbol">Ar</h3>
  165. <h2 class="name">Argon</h2>
  166. <p class="weight">39.948</p>
  167. </div>
  168. <div class="element alkali metal " data-symbol="K" data-category="alkali">
  169. <p class="number">19</p>
  170. <h3 class="symbol">K</h3>
  171. <h2 class="name">Potassium</h2>
  172. <p class="weight">39.0983</p>
  173. </div>
  174. <div class="element alkaline-earth metal " data-symbol="Ca" data-category="alkaline-earth">
  175. <p class="number">20</p>
  176. <h3 class="symbol">Ca</h3>
  177. <h2 class="name">Calcium</h2>
  178. <p class="weight">40.078</p>
  179. </div>
  180. </div> <!-- #container -->
  181. <script src="../js/jquery-1.6.4.min.js"></script>
  182. <script src="../jquery.isotope.min.js"></script>
  183. <script>
  184. $(function(){
  185. var $container = $('#container');
  186. $container.isotope({
  187. itemSelector: '.foo'
  188. }).css('border', '10px solid');
  189. });
  190. </script>
  191. <footer>
  192. Isotope by <a href="http://desandro.com">David DeSandro</a> / <a href="http://metafizzy.co">Metafizzy</a>
  193. </footer>
  194. </section> <!-- #content -->
  195. </body>
  196. </html>