elements-complete-test.html 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>elements complete test &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 demos">
  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>elements complete test</h1>
  56. <section id="copy">
  57. <p>Isotope&rsquo;s capabilities are designed to be used together cohesively. You can do it all &mdash; filter, sort, change layout modes, add items &mdash; and Isotope will handle it with ease.</p>
  58. </section>
  59. <section id="options" class="clearfix">
  60. <h3>Filters</h3>
  61. <ul id="filters" class="option-set clearfix" data-option-key="filter">
  62. <li><a href="#filter" data-option-value="*" class="selected">show all</a></li>
  63. <li><a href="#filter" data-option-value=".metal">metal</a></li>
  64. <li><a href="#filter" data-option-value=".transition">transition</a></li>
  65. <li><a href="#filter" data-option-value=".post-transition">post-transition</a></li>
  66. <li><a href="#filter" data-option-value=".nonmetal">nonmetal</a></li>
  67. <li><a href="#filter" data-option-value=".inner-transition">inner-transition</a></li>
  68. <li><a href="#filter" data-option-value=".alkali, .alkaline-earth">alkali and alkaline-earth</a></li>
  69. <li><a href="#filter" data-option-value=":not(.transition)">not transition</a></li>
  70. <li><a href="#filter" data-option-value=".metal:not(.transition)">metal but not transition</a></li>
  71. </ul>
  72. <h3>Sort</h3>
  73. <ul id="sort-by" class="option-set clearfix" data-option-key="sortBy">
  74. <li><a href="#sortBy=original-order" data-option-value="original-order" class="selected" data>original-order</a></li>
  75. <li><a href="#sortBy=name" data-option-value="name">name</a></li>
  76. <li><a href="#sortBy=symbol" data-option-value="symbol">symbol</a></li>
  77. <li><a href="#sortBy=number" data-option-value="number">number</a></li>
  78. <li><a href="#sortBy=weight" data-option-value="weight">weight</a></li>
  79. <li><a href="#sortBy=category" data-option-value="category">category</a></li>
  80. <li><a href="#sortBy=random" data-option-value="random">random</a></li>
  81. </ul>
  82. <h3>Sort direction</h3>
  83. <ul id="sort-direction" class="option-set clearfix" data-option-key="sortAscending">
  84. <li><a href="#sortAscending=true" data-option-value="true" class="selected">sort ascending</a></li>
  85. <li><a href="#sortAscending=false" data-option-value="false">sort descending</a></li>
  86. </ul>
  87. <h3>Layout modes</h3>
  88. <ul id="layouts" class="option-set clearfix" data-option-key="layoutMode">
  89. <li><a href="#masonry" data-option-value="masonry" class="selected">masonry</a></li>
  90. <li><a href="#fitRows" data-option-value="fitRows">fitRows</a></li>
  91. <li><a href="#cellsByRow" data-option-value="cellsByRow">cellsByRow</a></li>
  92. <li><a href="#straightDown" data-option-value="straightDown">straightDown</a></li>
  93. <li><a href="#masonryHorizontal" data-option-value="masonryHorizontal" class="horizontal">masonryHorizontal</a></li>
  94. <li><a href="#fitColumns" data-option-value="fitColumns" class="horizontal">fitColumns</a></li>
  95. <li><a href="#cellsByColumn" data-option-value="cellsByColumn" class="horizontal">cellsByColumn</a></li>
  96. <li><a href="#straightAcross" data-option-value="straightAcross" class="horizontal">straightAcross</a></li>
  97. </ul>
  98. <h3>Etc</h3>
  99. <ul id="etc" class="clearfix">
  100. <li id="toggle-sizes"><a href="#toggle-sizes">Toggle variable sizes</a></li>
  101. <li id="insert"><a href="#insert">Insert new elements</a></li>
  102. <li id="append"><a href='#append'>Append new elements</a></li>
  103. <li id="shuffle"><a href='#shuffle'>Shuffle</a></li>
  104. </ul>
  105. </section> <!-- #options -->
  106. <div id="container" class="clickable clearfix">
  107. <div class="element alkaline-earth metal " data-symbol="Mg" data-category="alkaline-earth">
  108. <p class="number">12</p>
  109. <h3 class="symbol">Mg</h3>
  110. <h2 class="name">Magnesium</h2>
  111. <p class="weight">24.305</p>
  112. </div>
  113. <div class="element actinoid metal inner-transition " data-symbol="U" data-category="actinoid">
  114. <p class="number">92</p>
  115. <h3 class="symbol">U</h3>
  116. <h2 class="name">Uranium</h2>
  117. <p class="weight">238.02891</p>
  118. </div>
  119. <div class="element lanthanoid metal inner-transition " data-symbol="Gd" data-category="lanthanoid">
  120. <p class="number">64</p>
  121. <h3 class="symbol">Gd</h3>
  122. <h2 class="name">Gadolinium</h2>
  123. <p class="weight">157.25</p>
  124. </div>
  125. <div class="element transition metal " data-symbol="Y" data-category="transition">
  126. <p class="number">39</p>
  127. <h3 class="symbol">Y</h3>
  128. <h2 class="name">Yttrium</h2>
  129. <p class="weight">88.90585</p>
  130. </div>
  131. <div class="element metalloid " data-symbol="B" data-category="metalloid">
  132. <p class="number">5</p>
  133. <h3 class="symbol">B</h3>
  134. <h2 class="name">Boron</h2>
  135. <p class="weight">10.811</p>
  136. </div>
  137. <div class="element transition metal " data-symbol="Fe" data-category="transition">
  138. <p class="number">26</p>
  139. <h3 class="symbol">Fe</h3>
  140. <h2 class="name">Iron</h2>
  141. <p class="weight">55.845</p>
  142. </div>
  143. <div class="element actinoid metal inner-transition " data-symbol="Am" data-category="actinoid">
  144. <p class="number">95</p>
  145. <h3 class="symbol">Am</h3>
  146. <h2 class="name">Americium</h2>
  147. <p class="weight">(243)</p>
  148. </div>
  149. <div class="element transition metal " data-symbol="Zn" data-category="transition">
  150. <p class="number">30</p>
  151. <h3 class="symbol">Zn</h3>
  152. <h2 class="name">Zinc</h2>
  153. <p class="weight">65.38</p>
  154. </div>
  155. <div class="element lanthanoid metal inner-transition " data-symbol="Pm" data-category="lanthanoid">
  156. <p class="number">61</p>
  157. <h3 class="symbol">Pm</h3>
  158. <h2 class="name">Promethium</h2>
  159. <p class="weight">(145)</p>
  160. </div>
  161. <div class="element post-transition metal " data-symbol="In" data-category="post-transition">
  162. <p class="number">49</p>
  163. <h3 class="symbol">In</h3>
  164. <h2 class="name">Indium</h2>
  165. <p class="weight">114.818</p>
  166. </div>
  167. <div class="element metalloid " data-symbol="As" data-category="metalloid">
  168. <p class="number">33</p>
  169. <h3 class="symbol">As</h3>
  170. <h2 class="name">Arsenic</h2>
  171. <p class="weight">74.9216</p>
  172. </div>
  173. <div class="element lanthanoid metal inner-transition " data-symbol="Er" data-category="lanthanoid">
  174. <p class="number">68</p>
  175. <h3 class="symbol">Er</h3>
  176. <h2 class="name">Erbium</h2>
  177. <p class="weight">167.259</p>
  178. </div>
  179. <div class="element other nonmetal " data-symbol="Se" data-category="other">
  180. <p class="number">34</p>
  181. <h3 class="symbol">Se</h3>
  182. <h2 class="name">Selenium</h2>
  183. <p class="weight">78.96</p>
  184. </div>
  185. <div class="element alkaline-earth metal " data-symbol="Sr" data-category="alkaline-earth">
  186. <p class="number">38</p>
  187. <h3 class="symbol">Sr</h3>
  188. <h2 class="name">Strontium</h2>
  189. <p class="weight">87.62</p>
  190. </div>
  191. <div class="element transition metal " data-symbol="Zr" data-category="transition">
  192. <p class="number">40</p>
  193. <h3 class="symbol">Zr</h3>
  194. <h2 class="name">Zirconium</h2>
  195. <p class="weight">91.224</p>
  196. </div>
  197. <div class="element halogen nonmetal " data-symbol="At" data-category="halogen">
  198. <p class="number">85</p>
  199. <h3 class="symbol">At</h3>
  200. <h2 class="name">Astatine</h2>
  201. <p class="weight">(210)</p>
  202. </div>
  203. <div class="element transition metal " data-symbol="Nb" data-category="transition">
  204. <p class="number">41</p>
  205. <h3 class="symbol">Nb</h3>
  206. <h2 class="name">Niobium</h2>
  207. <p class="weight">92.90638</p>
  208. </div>
  209. <div class="element other nonmetal " data-symbol="O" data-category="other">
  210. <p class="number">8</p>
  211. <h3 class="symbol">O</h3>
  212. <h2 class="name">Oxygen</h2>
  213. <p class="weight">15.9994</p>
  214. </div>
  215. <div class="element actinoid metal inner-transition " data-symbol="Bk" data-category="actinoid">
  216. <p class="number">97</p>
  217. <h3 class="symbol">Bk</h3>
  218. <h2 class="name">Berkelium</h2>
  219. <p class="weight">(247)</p>
  220. </div>
  221. <div class="element halogen nonmetal " data-symbol="F" data-category="halogen">
  222. <p class="number">9</p>
  223. <h3 class="symbol">F</h3>
  224. <h2 class="name">Fluorine</h2>
  225. <p class="weight">18.9984032</p>
  226. </div>
  227. <div class="element actinoid metal inner-transition " data-symbol="Cf" data-category="actinoid">
  228. <p class="number">98</p>
  229. <h3 class="symbol">Cf</h3>
  230. <h2 class="name">Californium</h2>
  231. <p class="weight">(251)</p>
  232. </div>
  233. <div class="element noble-gas nonmetal " data-symbol="Ne" data-category="noble-gas">
  234. <p class="number">10</p>
  235. <h3 class="symbol">Ne</h3>
  236. <h2 class="name">Neon</h2>
  237. <p class="weight">20.1797</p>
  238. </div>
  239. <div class="element other nonmetal " data-symbol="P" data-category="other">
  240. <p class="number">15</p>
  241. <h3 class="symbol">P</h3>
  242. <h2 class="name">Phosphorus</h2>
  243. <p class="weight">30.973762</p>
  244. </div>
  245. <div class="element actinoid metal inner-transition " data-symbol="Fm" data-category="actinoid">
  246. <p class="number">100</p>
  247. <h3 class="symbol">Fm</h3>
  248. <h2 class="name">Fermium</h2>
  249. <p class="weight">(257)</p>
  250. </div>
  251. <div class="element other nonmetal " data-symbol="S" data-category="other">
  252. <p class="number">16</p>
  253. <h3 class="symbol">S</h3>
  254. <h2 class="name">Sulfur</h2>
  255. <p class="weight">32.065</p>
  256. </div>
  257. <div class="element alkaline-earth metal " data-symbol="Ca" data-category="alkaline-earth">
  258. <p class="number">20</p>
  259. <h3 class="symbol">Ca</h3>
  260. <h2 class="name">Calcium</h2>
  261. <p class="weight">40.078</p>
  262. </div>
  263. <div class="element other nonmetal " data-symbol="C" data-category="other">
  264. <p class="number">6</p>
  265. <h3 class="symbol">C</h3>
  266. <h2 class="name">Carbon</h2>
  267. <p class="weight">12.0107</p>
  268. </div>
  269. <div class="element alkali metal " data-symbol="Rb" data-category="alkali">
  270. <p class="number">37</p>
  271. <h3 class="symbol">Rb</h3>
  272. <h2 class="name">Rubidium</h2>
  273. <p class="weight">85.4678</p>
  274. </div>
  275. <div class="element post-transition metal " data-symbol="Uup" data-category="post-transition">
  276. <p class="number">115</p>
  277. <h3 class="symbol">Uup</h3>
  278. <h2 class="name">Ununpentium</h2>
  279. <p class="weight">(288)</p>
  280. </div>
  281. <div class="element transition metal " data-symbol="Sc" data-category="transition">
  282. <p class="number">21</p>
  283. <h3 class="symbol">Sc</h3>
  284. <h2 class="name">Scandium</h2>
  285. <p class="weight">44.955912</p>
  286. </div>
  287. <div class="element post-transition metal " data-symbol="Ga" data-category="post-transition">
  288. <p class="number">31</p>
  289. <h3 class="symbol">Ga</h3>
  290. <h2 class="name">Gallium</h2>
  291. <p class="weight">69.723</p>
  292. </div>
  293. <div class="element post-transition metal " data-symbol="Tl" data-category="post-transition">
  294. <p class="number">81</p>
  295. <h3 class="symbol">Tl</h3>
  296. <h2 class="name">Thallium</h2>
  297. <p class="weight">204.3833</p>
  298. </div>
  299. <div class="element metalloid " data-symbol="Si" data-category="metalloid">
  300. <p class="number">14</p>
  301. <h3 class="symbol">Si</h3>
  302. <h2 class="name">Silicon</h2>
  303. <p class="weight">28.0855</p>
  304. </div>
  305. <div class="element transition metal " data-symbol="Cd" data-category="transition">
  306. <p class="number">48</p>
  307. <h3 class="symbol">Cd</h3>
  308. <h2 class="name">Cadmium</h2>
  309. <p class="weight">112.411</p>
  310. </div>
  311. <div class="element transition metal " data-symbol="Ti" data-category="transition">
  312. <p class="number">22</p>
  313. <h3 class="symbol">Ti</h3>
  314. <h2 class="name">Titanium</h2>
  315. <p class="weight">47.867</p>
  316. </div>
  317. <div class="element alkaline-earth metal " data-symbol="Be" data-category="alkaline-earth">
  318. <p class="number">4</p>
  319. <h3 class="symbol">Be</h3>
  320. <h2 class="name">Beryllium</h2>
  321. <p class="weight">9.012182</p>
  322. </div>
  323. <div class="element transition metal " data-symbol="V" data-category="transition">
  324. <p class="number">23</p>
  325. <h3 class="symbol">V</h3>
  326. <h2 class="name">Vanadium</h2>
  327. <p class="weight">50.9415</p>
  328. </div>
  329. <div class="element metalloid " data-symbol="Ge" data-category="metalloid">
  330. <p class="number">32</p>
  331. <h3 class="symbol">Ge</h3>
  332. <h2 class="name">Germanium</h2>
  333. <p class="weight">72.64</p>
  334. </div>
  335. <div class="element alkali metal " data-symbol="Cs" data-category="alkali">
  336. <p class="number">55</p>
  337. <h3 class="symbol">Cs</h3>
  338. <h2 class="name">Caesium</h2>
  339. <p class="weight">132.9054519</p>
  340. </div>
  341. <div class="element lanthanoid metal inner-transition " data-symbol="Ho" data-category="lanthanoid">
  342. <p class="number">67</p>
  343. <h3 class="symbol">Ho</h3>
  344. <h2 class="name">Holmium</h2>
  345. <p class="weight">164.93032</p>
  346. </div>
  347. <div class="element alkaline-earth metal " data-symbol="Ba" data-category="alkaline-earth">
  348. <p class="number">56</p>
  349. <h3 class="symbol">Ba</h3>
  350. <h2 class="name">Barium</h2>
  351. <p class="weight">137.327</p>
  352. </div>
  353. <div class="element transition metal " data-symbol="Hf" data-category="transition">
  354. <p class="number">72</p>
  355. <h3 class="symbol">Hf</h3>
  356. <h2 class="name">Hafnium</h2>
  357. <p class="weight">178.49</p>
  358. </div>
  359. <div class="element noble-gas nonmetal " data-symbol="He" data-category="noble-gas">
  360. <p class="number">2</p>
  361. <h3 class="symbol">He</h3>
  362. <h2 class="name">Helium</h2>
  363. <p class="weight">4.002602</p>
  364. </div>
  365. <div class="element transition metal " data-symbol="Cr" data-category="transition">
  366. <p class="number">24</p>
  367. <h3 class="symbol">Cr</h3>
  368. <h2 class="name">Chromium</h2>
  369. <p class="weight">51.9961</p>
  370. </div>
  371. <div class="element transition metal " data-symbol="Mo" data-category="transition">
  372. <p class="number">42</p>
  373. <h3 class="symbol">Mo</h3>
  374. <h2 class="name">Molybdenum</h2>
  375. <p class="weight">95.96</p>
  376. </div>
  377. <div class="element lanthanoid metal inner-transition " data-symbol="Lu" data-category="lanthanoid">
  378. <p class="number">71</p>
  379. <h3 class="symbol">Lu</h3>
  380. <h2 class="name">Lutetium</h2>
  381. <p class="weight">174.9668</p>
  382. </div>
  383. <div class="element alkali metal " data-symbol="Li" data-category="alkali">
  384. <p class="number">3</p>
  385. <h3 class="symbol">Li</h3>
  386. <h2 class="name">Lithium</h2>
  387. <p class="weight">6.941</p>
  388. </div>
  389. <div class="element transition metal " data-symbol="Pt" data-category="transition">
  390. <p class="number">78</p>
  391. <h3 class="symbol">Pt</h3>
  392. <h2 class="name">Platinum</h2>
  393. <p class="weight">195.084</p>
  394. </div>
  395. <div class="element noble-gas nonmetal " data-symbol="Uuo" data-category="noble-gas">
  396. <p class="number">118</p>
  397. <h3 class="symbol">Uuo</h3>
  398. <h2 class="name">Ununoctium</h2>
  399. <p class="weight">(294)</p>
  400. </div>
  401. <div class="element transition metal " data-symbol="Hg" data-category="transition">
  402. <p class="number">80</p>
  403. <h3 class="symbol">Hg</h3>
  404. <h2 class="name">Mercury</h2>
  405. <p class="weight">200.59</p>
  406. </div>
  407. <div class="element transition metal " data-symbol="Tc" data-category="transition">
  408. <p class="number">43</p>
  409. <h3 class="symbol">Tc</h3>
  410. <h2 class="name">Technetium</h2>
  411. <p class="weight">(98)</p>
  412. </div>
  413. <div class="element actinoid metal inner-transition " data-symbol="Cm" data-category="actinoid">
  414. <p class="number">96</p>
  415. <h3 class="symbol">Cm</h3>
  416. <h2 class="name">Curium</h2>
  417. <p class="weight">(247)</p>
  418. </div>
  419. <div class="element transition metal " data-symbol="Ag" data-category="transition">
  420. <p class="number">47</p>
  421. <h3 class="symbol">Ag</h3>
  422. <h2 class="name">Silver</h2>
  423. <p class="weight">107.8682</p>
  424. </div>
  425. <div class="element metalloid " data-symbol="Sb" data-category="metalloid">
  426. <p class="number">51</p>
  427. <h3 class="symbol">Sb</h3>
  428. <h2 class="name">Antimony</h2>
  429. <p class="weight">121.76</p>
  430. </div>
  431. <div class="element lanthanoid metal inner-transition " data-symbol="Yb" data-category="lanthanoid">
  432. <p class="number">70</p>
  433. <h3 class="symbol">Yb</h3>
  434. <h2 class="name">Ytterbium</h2>
  435. <p class="weight">173.054</p>
  436. </div>
  437. <div class="element noble-gas nonmetal " data-symbol="Xe" data-category="noble-gas">
  438. <p class="number">54</p>
  439. <h3 class="symbol">Xe</h3>
  440. <h2 class="name">Xenon</h2>
  441. <p class="weight">131.293</p>
  442. </div>
  443. <div class="element lanthanoid metal inner-transition " data-symbol="La" data-category="lanthanoid">
  444. <p class="number">57</p>
  445. <h3 class="symbol">La</h3>
  446. <h2 class="name">Lanthanum</h2>
  447. <p class="weight">138.90547</p>
  448. </div>
  449. <div class="element transition metal " data-symbol="Ta" data-category="transition">
  450. <p class="number">73</p>
  451. <h3 class="symbol">Ta</h3>
  452. <h2 class="name">Tantalum</h2>
  453. <p class="weight">180.94788</p>
  454. </div>
  455. <div class="element metalloid " data-symbol="Te" data-category="metalloid">
  456. <p class="number">52</p>
  457. <h3 class="symbol">Te</h3>
  458. <h2 class="name">Tellurium</h2>
  459. <p class="weight">127.6</p>
  460. </div>
  461. <div class="element transition metal " data-symbol="W" data-category="transition">
  462. <p class="number">74</p>
  463. <h3 class="symbol">W</h3>
  464. <h2 class="name">Tungsten</h2>
  465. <p class="weight">183.84</p>
  466. </div>
  467. <div class="element lanthanoid metal inner-transition " data-symbol="Nd" data-category="lanthanoid">
  468. <p class="number">60</p>
  469. <h3 class="symbol">Nd</h3>
  470. <h2 class="name">Neodymium</h2>
  471. <p class="weight">144.242</p>
  472. </div>
  473. <div class="element transition metal " data-symbol="Re" data-category="transition">
  474. <p class="number">75</p>
  475. <h3 class="symbol">Re</h3>
  476. <h2 class="name">Rhenium</h2>
  477. <p class="weight">186.207</p>
  478. </div>
  479. <div class="element noble-gas nonmetal " data-symbol="Kr" data-category="noble-gas">
  480. <p class="number">36</p>
  481. <h3 class="symbol">Kr</h3>
  482. <h2 class="name">Krypton</h2>
  483. <p class="weight">83.798</p>
  484. </div>
  485. <div class="element post-transition metal " data-symbol="Sn" data-category="post-transition">
  486. <p class="number">50</p>
  487. <h3 class="symbol">Sn</h3>
  488. <h2 class="name">Tin</h2>
  489. <p class="weight">118.71</p>
  490. </div>
  491. <div class="element actinoid metal inner-transition " data-symbol="No" data-category="actinoid">
  492. <p class="number">102</p>
  493. <h3 class="symbol">No</h3>
  494. <h2 class="name">Nobelium</h2>
  495. <p class="weight">(259)</p>
  496. </div>
  497. <div class="element actinoid metal inner-transition " data-symbol="Ac" data-category="actinoid">
  498. <p class="number">89</p>
  499. <h3 class="symbol">Ac</h3>
  500. <h2 class="name">Actinium</h2>
  501. <p class="weight">(227)</p>
  502. </div>
  503. <div class="element halogen nonmetal " data-symbol="Br" data-category="halogen">
  504. <p class="number">35</p>
  505. <h3 class="symbol">Br</h3>
  506. <h2 class="name">Bromine</h2>
  507. <p class="weight">79.904</p>
  508. </div>
  509. <div class="element transition metal " data-symbol="Ir" data-category="transition">
  510. <p class="number">77</p>
  511. <h3 class="symbol">Ir</h3>
  512. <h2 class="name">Iridium</h2>
  513. <p class="weight">192.217</p>
  514. </div>
  515. <div class="element actinoid metal inner-transition " data-symbol="Lr" data-category="actinoid">
  516. <p class="number">103</p>
  517. <h3 class="symbol">Lr</h3>
  518. <h2 class="name">Lawrencium</h2>
  519. <p class="weight">(262)</p>
  520. </div>
  521. <div class="element transition metal " data-symbol="Os" data-category="transition">
  522. <p class="number">76</p>
  523. <h3 class="symbol">Os</h3>
  524. <h2 class="name">Osmium</h2>
  525. <p class="weight">190.23</p>
  526. </div>
  527. <div class="element transition metal " data-symbol="Rf" data-category="transition">
  528. <p class="number">104</p>
  529. <h3 class="symbol">Rf</h3>
  530. <h2 class="name">Rutherfordium</h2>
  531. <p class="weight">(267)</p>
  532. </div>
  533. <div class="element post-transition metal " data-symbol="Pb" data-category="post-transition">
  534. <p class="number">82</p>
  535. <h3 class="symbol">Pb</h3>
  536. <h2 class="name">Lead</h2>
  537. <p class="weight">207.2</p>
  538. </div>
  539. <div class="element lanthanoid metal inner-transition " data-symbol="Pr" data-category="lanthanoid">
  540. <p class="number">59</p>
  541. <h3 class="symbol">Pr</h3>
  542. <h2 class="name">Praseodymium</h2>
  543. <p class="weight">140.90765</p>
  544. </div>
  545. <div class="element other nonmetal " data-symbol="N" data-category="other">
  546. <p class="number">7</p>
  547. <h3 class="symbol">N</h3>
  548. <h2 class="name">Nitrogen</h2>
  549. <p class="weight">14.0067</p>
  550. </div>
  551. <div class="element post-transition metal " data-symbol="Bi" data-category="post-transition">
  552. <p class="number">83</p>
  553. <h3 class="symbol">Bi</h3>
  554. <h2 class="name">Bismuth</h2>
  555. <p class="weight">208.9804</p>
  556. </div>
  557. <div class="element transition metal " data-symbol="Co" data-category="transition">
  558. <p class="number">27</p>
  559. <h3 class="symbol">Co</h3>
  560. <h2 class="name">Cobalt</h2>
  561. <p class="weight">58.933195</p>
  562. </div>
  563. <div class="element transition metal " data-symbol="Ni" data-category="transition">
  564. <p class="number">28</p>
  565. <h3 class="symbol">Ni</h3>
  566. <h2 class="name">Nickel</h2>
  567. <p class="weight">58.6934</p>
  568. </div>
  569. <div class="element transition metal " data-symbol="Rh" data-category="transition">
  570. <p class="number">45</p>
  571. <h3 class="symbol">Rh</h3>
  572. <h2 class="name">Rhodium</h2>
  573. <p class="weight">102.9055</p>
  574. </div>
  575. <div class="element metalloid " data-symbol="Po" data-category="metalloid">
  576. <p class="number">84</p>
  577. <h3 class="symbol">Po</h3>
  578. <h2 class="name">Polonium</h2>
  579. <p class="weight">(209)</p>
  580. </div>
  581. <div class="element transition metal " data-symbol="Pd" data-category="transition">
  582. <p class="number">46</p>
  583. <h3 class="symbol">Pd</h3>
  584. <h2 class="name">Palladium</h2>
  585. <p class="weight">106.42</p>
  586. </div>
  587. <div class="element alkali metal " data-symbol="Fr" data-category="alkali">
  588. <p class="number">87</p>
  589. <h3 class="symbol">Fr</h3>
  590. <h2 class="name">Francium</h2>
  591. <p class="weight">(223)</p>
  592. </div>
  593. <div class="element lanthanoid metal inner-transition " data-symbol="Tm" data-category="lanthanoid">
  594. <p class="number">69</p>
  595. <h3 class="symbol">Tm</h3>
  596. <h2 class="name">Thulium</h2>
  597. <p class="weight">168.93421</p>
  598. </div>
  599. <div class="element alkaline-earth metal " data-symbol="Ra" data-category="alkaline-earth">
  600. <p class="number">88</p>
  601. <h3 class="symbol">Ra</h3>
  602. <h2 class="name">Radium</h2>
  603. <p class="weight">(226)</p>
  604. </div>
  605. <div class="element transition metal " data-symbol="Db" data-category="transition">
  606. <p class="number">105</p>
  607. <h3 class="symbol">Db</h3>
  608. <h2 class="name">Dubnium</h2>
  609. <p class="weight">(268)</p>
  610. </div>
  611. <div class="element transition metal " data-symbol="Sg" data-category="transition">
  612. <p class="number">106</p>
  613. <h3 class="symbol">Sg</h3>
  614. <h2 class="name">Seaborgium</h2>
  615. <p class="weight">(271)</p>
  616. </div>
  617. <div class="element alkali metal " data-symbol="Na" data-category="alkali">
  618. <p class="number">11</p>
  619. <h3 class="symbol">Na</h3>
  620. <h2 class="name">Sodium</h2>
  621. <p class="weight">22.98976928</p>
  622. </div>
  623. <div class="element noble-gas nonmetal " data-symbol="Rn" data-category="noble-gas">
  624. <p class="number">86</p>
  625. <h3 class="symbol">Rn</h3>
  626. <h2 class="name">Radon</h2>
  627. <p class="weight">(222)</p>
  628. </div>
  629. <div class="element transition metal " data-symbol="Ru" data-category="transition">
  630. <p class="number">44</p>
  631. <h3 class="symbol">Ru</h3>
  632. <h2 class="name">Ruthenium</h2>
  633. <p class="weight">101.07</p>
  634. </div>
  635. <div class="element post-transition metal " data-symbol="Al" data-category="post-transition">
  636. <p class="number">13</p>
  637. <h3 class="symbol">Al</h3>
  638. <h2 class="name">Aluminium</h2>
  639. <p class="weight">26.9815386</p>
  640. </div>
  641. <div class="element transition metal " data-symbol="Ds" data-category="transition">
  642. <p class="number">110</p>
  643. <h3 class="symbol">Ds</h3>
  644. <h2 class="name">Darmstadtium</h2>
  645. <p class="weight">(281)</p>
  646. </div>
  647. <div class="element transition metal " data-symbol="Rg" data-category="transition">
  648. <p class="number">111</p>
  649. <h3 class="symbol">Rg</h3>
  650. <h2 class="name">Roentgenium</h2>
  651. <p class="weight">(280)</p>
  652. </div>
  653. <div class="element post-transition metal " data-symbol="Uuq" data-category="post-transition">
  654. <p class="number">114</p>
  655. <h3 class="symbol">Uuq</h3>
  656. <h2 class="name">Ununquadium</h2>
  657. <p class="weight">(289)</p>
  658. </div>
  659. <div class="element transition metal " data-symbol="Cu" data-category="transition">
  660. <p class="number">29</p>
  661. <h3 class="symbol">Cu</h3>
  662. <h2 class="name">Copper</h2>
  663. <p class="weight">63.546</p>
  664. </div>
  665. <div class="element transition metal " data-symbol="Bh" data-category="transition">
  666. <p class="number">107</p>
  667. <h3 class="symbol">Bh</h3>
  668. <h2 class="name">Bohrium</h2>
  669. <p class="weight">(272)</p>
  670. </div>
  671. <div class="element transition metal " data-symbol="Hs" data-category="transition">
  672. <p class="number">108</p>
  673. <h3 class="symbol">Hs</h3>
  674. <h2 class="name">Hassium</h2>
  675. <p class="weight">(270)</p>
  676. </div>
  677. <div class="element transition metal " data-symbol="Mt" data-category="transition">
  678. <p class="number">109</p>
  679. <h3 class="symbol">Mt</h3>
  680. <h2 class="name">Meitnerium</h2>
  681. <p class="weight">(276)</p>
  682. </div>
  683. <div class="element post-transition metal " data-symbol="Uuh" data-category="post-transition">
  684. <p class="number">116</p>
  685. <h3 class="symbol">Uuh</h3>
  686. <h2 class="name">Ununhexium</h2>
  687. <p class="weight">(293)</p>
  688. </div>
  689. <div class="element lanthanoid metal inner-transition " data-symbol="Eu" data-category="lanthanoid">
  690. <p class="number">63</p>
  691. <h3 class="symbol">Eu</h3>
  692. <h2 class="name">Europium</h2>
  693. <p class="weight">151.964</p>
  694. </div>
  695. <div class="element halogen nonmetal " data-symbol="Uus" data-category="halogen">
  696. <p class="number">117</p>
  697. <h3 class="symbol">Uus</h3>
  698. <h2 class="name">Ununseptium</h2>
  699. <p class="weight">(294)</p>
  700. </div>
  701. <div class="element other nonmetal " data-symbol="H" data-category="other">
  702. <p class="number">1</p>
  703. <h3 class="symbol">H</h3>
  704. <h2 class="name">Hydrogen</h2>
  705. <p class="weight">1.00794</p>
  706. </div>
  707. <div class="element lanthanoid metal inner-transition " data-symbol="Ce" data-category="lanthanoid">
  708. <p class="number">58</p>
  709. <h3 class="symbol">Ce</h3>
  710. <h2 class="name">Cerium</h2>
  711. <p class="weight">140.116</p>
  712. </div>
  713. <div class="element transition metal " data-symbol="Cn" data-category="transition">
  714. <p class="number">112</p>
  715. <h3 class="symbol">Cn</h3>
  716. <h2 class="name">Copernicium</h2>
  717. <p class="weight">(285)</p>
  718. </div>
  719. <div class="element post-transition metal " data-symbol="Uut" data-category="post-transition">
  720. <p class="number">113</p>
  721. <h3 class="symbol">Uut</h3>
  722. <h2 class="name">Ununtrium</h2>
  723. <p class="weight">(284)</p>
  724. </div>
  725. <div class="element lanthanoid metal inner-transition " data-symbol="Sm" data-category="lanthanoid">
  726. <p class="number">62</p>
  727. <h3 class="symbol">Sm</h3>
  728. <h2 class="name">Samarium</h2>
  729. <p class="weight">150.36</p>
  730. </div>
  731. <div class="element actinoid metal inner-transition " data-symbol="Th" data-category="actinoid">
  732. <p class="number">90</p>
  733. <h3 class="symbol">Th</h3>
  734. <h2 class="name">Thorium</h2>
  735. <p class="weight">232.03806</p>
  736. </div>
  737. <div class="element actinoid metal inner-transition " data-symbol="Pa" data-category="actinoid">
  738. <p class="number">91</p>
  739. <h3 class="symbol">Pa</h3>
  740. <h2 class="name">Protactinium</h2>
  741. <p class="weight">231.03588</p>
  742. </div>
  743. <div class="element lanthanoid metal inner-transition " data-symbol="Tb" data-category="lanthanoid">
  744. <p class="number">65</p>
  745. <h3 class="symbol">Tb</h3>
  746. <h2 class="name">Terbium</h2>
  747. <p class="weight">158.92535</p>
  748. </div>
  749. <div class="element lanthanoid metal inner-transition " data-symbol="Dy" data-category="lanthanoid">
  750. <p class="number">66</p>
  751. <h3 class="symbol">Dy</h3>
  752. <h2 class="name">Dysprosium</h2>
  753. <p class="weight">162.5</p>
  754. </div>
  755. <div class="element actinoid metal inner-transition " data-symbol="Np" data-category="actinoid">
  756. <p class="number">93</p>
  757. <h3 class="symbol">Np</h3>
  758. <h2 class="name">Neptunium</h2>
  759. <p class="weight">(237)</p>
  760. </div>
  761. <div class="element actinoid metal inner-transition " data-symbol="Pu" data-category="actinoid">
  762. <p class="number">94</p>
  763. <h3 class="symbol">Pu</h3>
  764. <h2 class="name">Plutonium</h2>
  765. <p class="weight">(244)</p>
  766. </div>
  767. <div class="element transition metal " data-symbol="Au" data-category="transition">
  768. <p class="number">79</p>
  769. <h3 class="symbol">Au</h3>
  770. <h2 class="name">Gold</h2>
  771. <p class="weight">196.966569</p>
  772. </div>
  773. <div class="element transition metal " data-symbol="Mn" data-category="transition">
  774. <p class="number">25</p>
  775. <h3 class="symbol">Mn</h3>
  776. <h2 class="name">Manganese</h2>
  777. <p class="weight">54.938045</p>
  778. </div>
  779. <div class="element actinoid metal inner-transition " data-symbol="Es" data-category="actinoid">
  780. <p class="number">99</p>
  781. <h3 class="symbol">Es</h3>
  782. <h2 class="name">Einsteinium</h2>
  783. <p class="weight">(252)</p>
  784. </div>
  785. <div class="element actinoid metal inner-transition " data-symbol="Md" data-category="actinoid">
  786. <p class="number">101</p>
  787. <h3 class="symbol">Md</h3>
  788. <h2 class="name">Mendelevium</h2>
  789. <p class="weight">(258)</p>
  790. </div>
  791. <div class="element halogen nonmetal " data-symbol="Cl" data-category="halogen">
  792. <p class="number">17</p>
  793. <h3 class="symbol">Cl</h3>
  794. <h2 class="name">Chlorine</h2>
  795. <p class="weight">35.453</p>
  796. </div>
  797. <div class="element noble-gas nonmetal " data-symbol="Ar" data-category="noble-gas">
  798. <p class="number">18</p>
  799. <h3 class="symbol">Ar</h3>
  800. <h2 class="name">Argon</h2>
  801. <p class="weight">39.948</p>
  802. </div>
  803. <div class="element alkali metal " data-symbol="K" data-category="alkali">
  804. <p class="number">19</p>
  805. <h3 class="symbol">K</h3>
  806. <h2 class="name">Potassium</h2>
  807. <p class="weight">39.0983</p>
  808. </div>
  809. <div class="element halogen nonmetal " data-symbol="I" data-category="halogen">
  810. <p class="number">53</p>
  811. <h3 class="symbol">I</h3>
  812. <h2 class="name">Iodine</h2>
  813. <p class="weight">126.90447</p>
  814. </div>
  815. </div>
  816. <script src="../js/jquery-1.6.4.min.js"></script>
  817. <script src="../jquery.isotope.min.js"></script>
  818. <script src="../js/fake-element.js"></script>
  819. <script>
  820. $(function(){
  821. var $container = $('#container');
  822. // add randomish size classes
  823. $container.find('.element').each(function(){
  824. var $this = $(this),
  825. number = parseInt( $this.find('.number').text(), 10 );
  826. if ( number % 7 % 2 === 1 ) {
  827. $this.addClass('width2');
  828. }
  829. if ( number % 3 === 0 ) {
  830. $this.addClass('height2');
  831. }
  832. });
  833. console.time('init');
  834. $container.isotope({
  835. itemSelector : '.element',
  836. // layoutMode : 'fitRows',
  837. masonry : {
  838. columnWidth : 120
  839. },
  840. masonryHorizontal : {
  841. rowHeight: 120
  842. },
  843. cellsByRow : {
  844. columnWidth : 240,
  845. rowHeight : 240
  846. },
  847. cellsByColumn : {
  848. columnWidth : 240,
  849. rowHeight : 240
  850. },
  851. getSortData : {
  852. symbol : function( $elem ) {
  853. return $elem.attr('data-symbol');
  854. },
  855. category : function( $elem ) {
  856. return $elem.attr('data-category');
  857. },
  858. number : function( $elem ) {
  859. return parseInt( $elem.find('.number').text(), 10 );
  860. },
  861. weight : function( $elem ) {
  862. return parseFloat( $elem.find('.weight').text().replace( /[\(\)]/g, '') );
  863. },
  864. name : function ( $elem ) {
  865. return $elem.find('.name').text();
  866. }
  867. }
  868. });
  869. console.timeEnd('init');
  870. var $optionSets = $('#options .option-set'),
  871. $optionLinks = $optionSets.find('a');
  872. $optionLinks.click(function(){
  873. var $this = $(this);
  874. // don't proceed if already selected
  875. if ( $this.hasClass('selected') ) {
  876. return false;
  877. }
  878. var $optionSet = $this.parents('.option-set');
  879. $optionSet.find('.selected').removeClass('selected');
  880. $this.addClass('selected');
  881. // make option object dynamically, i.e. { filter: '.my-filter-class' }
  882. var options = {},
  883. key = $optionSet.attr('data-option-key'),
  884. value = $this.attr('data-option-value');
  885. // parse 'false' as false boolean
  886. value = value === 'false' ? false : value;
  887. options[ key ] = value;
  888. console.time( key );
  889. if ( key === 'layoutMode' && changeLayoutMode ) {
  890. // changes in layout modes need extra logic
  891. changeLayoutMode( $this, options )
  892. } else {
  893. // otherwise, apply new options
  894. $container.isotope( options );
  895. }
  896. console.timeEnd( key );
  897. return false;
  898. });
  899. // change layout
  900. var isHorizontal = false;
  901. function changeLayoutMode( $link, options ) {
  902. var wasHorizontal = isHorizontal;
  903. isHorizontal = $link.hasClass('horizontal');
  904. if ( wasHorizontal !== isHorizontal ) {
  905. // orientation change
  906. // need to do some clean up for transitions and sizes
  907. var style = isHorizontal ?
  908. { height: '80%', width: $container.width() } :
  909. { width: 'auto' };
  910. // stop any animation on container height / width
  911. $container.filter(':animated').stop();
  912. // disable transition, apply revised style
  913. $container.addClass('no-transition').css( style );
  914. setTimeout(function(){
  915. $container.removeClass('no-transition').isotope( options );
  916. }, 100 )
  917. } else {
  918. $container.isotope( options );
  919. }
  920. }
  921. // change size of clicked element
  922. $container.delegate( '.element', 'click', function(){
  923. $(this).toggleClass('large');
  924. $container.isotope('reLayout');
  925. });
  926. // toggle variable sizes of all elements
  927. $('#toggle-sizes').find('a').click(function(){
  928. $container
  929. .toggleClass('variable-sizes')
  930. .isotope('reLayout');
  931. return false;
  932. });
  933. $('#insert a').click(function(){
  934. var $newEls = $( fakeElement.getGroup() );
  935. $container.isotope( 'insert', $newEls );
  936. return false;
  937. });
  938. $('#append a').click(function(){
  939. var $newEls = $( fakeElement.getGroup() );
  940. $container.append( $newEls ).isotope( 'appended', $newEls );
  941. return false;
  942. });
  943. var $sortBy = $('#sort-by');
  944. $('#shuffle a').click(function(){
  945. console.time('shuffle');
  946. $container.isotope('shuffle');
  947. $sortBy.find('.selected').removeClass('selected');
  948. $sortBy.find('[data-option-value="random"]').addClass('selected');
  949. console.timeEnd('shuffle');
  950. return false;
  951. });
  952. });
  953. </script>
  954. <footer>
  955. Isotope by <a href="http://desandro.com">David DeSandro</a> / <a href="http://metafizzy.co">Metafizzy</a>
  956. </footer>
  957. </section> <!-- #content -->
  958. </body>
  959. </html>