Advertisement
yLii

Infinite Isotope 03 :D

Jan 2nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.08 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Adamantine</title>
  5.  
  6.  
  7. <script src="http://static.tumblr.com/iuvoef7/bXomx943d/jquery-1.7.1.min.js"></script>
  8.  
  9. <!--don't understand why this script doesn't work -->
  10. <script src="http://static.tumblr.com/iuvoef7/hshmx93xt/jquery.isotope.min.js"></script>
  11.  
  12. <!-- for some reason this one works -->
  13. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.2/isotope.pkgd.min.js"></script>
  14.  
  15. <script src="https://raw.githubusercontent.com/metafizzy/isotope-masonry-horizontal/master/masonry-horizontal.js"></script>
  16.  
  17. <script src="http://static.tumblr.com/iuvoef7/tIEmx9449/jquery.infinitescroll.min.js"></script>
  18.  
  19.  
  20.  
  21. <script>
  22. var isotope = $(function(){
  23. var $container = $('#content');
  24. $container.imagesLoaded(function(){
  25. $container.isotope({
  26. itemSelector : '.box',
  27. layoutMode : '{select:Layout Type}',
  28. masonry: {
  29. gutter: {select:Gutter Width}
  30. }
  31. });
  32. });
  33.  
  34. $container.infinitescroll({
  35. navSelector : '#page_nav',
  36. nextSelector : '#page_nav a',
  37. itemSelector : '.box',
  38. loading: {
  39. finishedMsg: 'No more pages to load.',
  40. img: 'http://i.imgur.com/qkKy8.gif'
  41. }
  42. },
  43. // call Isotope as a callback
  44. function ( newElements ) {
  45. var $newElems = jQuery( newElements ).hide(); // hide to begin with
  46. // ensure that images load before adding to masonry layout
  47. $newElems.imagesLoaded(function(){
  48. $newElems.fadeIn(); // fade in when ready
  49. $container.isotope( 'insert', $newElems );
  50. });
  51. }
  52. );
  53. });
  54.  
  55.  
  56.  
  57. $(document).ready(isotope);
  58.  
  59. </script>
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. <meta name="image:Background" content="" />
  67. <meta name="image:Lollipop Background" content="" />
  68. <meta name="image:Quote Background" content="" />
  69. <meta name="image:HeaderBackground" content="" />
  70.  
  71. <meta name="color:Background" content="#ffffff" />
  72. <meta name="color:Links" content="#619251" />
  73. <meta name="color:Text highlight" content="#d83e5c" />
  74. <meta name="color:Lollipop" content="#000000" />
  75. <meta name="color:Lollipop Hover" content="#b7512e" />
  76. <meta name="color:Hover" content="#b7512e" />
  77.  
  78.  
  79. <meta name="text:Post margin" content="10px" />
  80. <meta name="text:Columns" content="4" />
  81.  
  82.  
  83.  
  84. <meta name="text:Font size" content='0.8em'/>
  85. <meta name="text:Google Analytics ID" content=''/>
  86. <meta name="text:Twitter Username" content=''/>
  87.  
  88. <meta name="if:Fade" content="1" />
  89. <meta name="if:Infinite Scroll" content="1" />
  90. <meta name="if:Head Space" content="1" />
  91.  
  92. <meta name="select:Content Width" content="30%" />
  93. <meta name="select:Content Width" content="40%" />
  94. <meta name="select:Content Width" content="50%" />
  95. <meta name="select:Content Width" content="60%" />
  96. <meta name="select:Content Width" content="70%" />
  97. <meta name="select:Content Width" content="80%" />
  98. <meta name="select:Content Width" content="90%" />
  99. <meta name="select:Content Width" content="100%" />
  100.  
  101. <meta name="select:Float" content="margin:auto" title="Align Center" />
  102. <meta name="select:Float" content="float:left" title="Align Left" />
  103. <meta name="select:Float" content="float:right" title="Align Right" />
  104.  
  105. <meta name="select:Layout Type" content="cellsByColumn" title="Cells by Column" />
  106. <meta name="select:Layout Type" content="cellsByRow" title="Cells by Row" />
  107. <meta name="select:Layout Type" content="fitColumns" title="Fit Columns" />
  108. <meta name="select:Layout Type" content="fitRows" title="Fit Rows" />
  109. <meta name="select:Layout Type" content="horiz" title="Horizontal" />
  110. <meta name="select:Layout Type" content="masonry" title="Masonry" />
  111. <meta name="select:Layout Type" content="masonryHorizontal,
  112. masonryHorizontal: {
  113. rowHeight: 400
  114. }" title="Masonry Horizontal" />
  115. <meta name="select:Layout Type" content="packery" title="Packery" />
  116. <meta name="select:Layout Type" content="vertical" title="Vertical" />
  117.  
  118. <meta name="select:Gutter Width" content="0" />
  119. <meta name="select:Gutter Width" content="5" />
  120. <meta name="select:Gutter Width" content="10" />
  121. <meta name="select:Gutter Width" content="15" />
  122.  
  123.  
  124.  
  125. <!--Post Width in relation to Content Width -->
  126. <meta name="select:Post Width" content="30%" />
  127. <meta name="select:Post Width" content="40%" />
  128. <meta name="select:Post Width" content="50%" />
  129. <meta name="select:Post Width" content="60%" />
  130. <meta name="select:Post Width" content="70%" />
  131. <meta name="select:Post Width" content="75%" />
  132. <meta name="select:Post Width" content="80%" />
  133. <meta name="select:Post Width" content="90%" />
  134. <meta name="select:Post Width" content="100%" />
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144. <link rel="shortcut icon" href="{Favicon}">
  145. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  146. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  147.  
  148.  
  149.  
  150.  
  151.  
  152. <style type="text/css">
  153.  
  154.  
  155. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  156. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  157. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  158. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  159. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  160. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  161. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  162.  
  163.  
  164. ::-webkit-scrollbar {width: 8px; height: 4px; background: #000; opacity:0.5;}
  165. ::-webkit-scrollbar-thumb { background-color: #aaaaaa; -webkit-border-radius: 2ex; opacity:0.5; }
  166. ::-moz-scrollbar {width: 8px; height: 4px; background: #ffffff; }
  167. ::-moz-scrollbar-thumb { background-color: #aaaaaa; -moz-border-radius: 2ex; opacity:0.4; }
  168. ::-o-scrollbar {width: 8px; height: 4px; background: #ffffff; }
  169. ::-o-scrollbar-thumb { background-color: #aaaaaa; -o-border-radius: 2ex; opacity:0.4; }
  170.  
  171.  
  172.  
  173.  
  174. ::selection {background: #d83e5c;color: #fff;}
  175. ::-moz-selection {background: #d83e5c;color: #fff;}
  176.  
  177.  
  178.  
  179.  
  180. html {
  181.  
  182. }
  183.  
  184.  
  185.  
  186. body {
  187. background: {color:Background};
  188.  
  189.  
  190. }
  191.  
  192.  
  193. {block:IfHeadSpace}
  194. .headspace{
  195. height:300px;
  196. }
  197. {/block:IfHeadSpace}
  198.  
  199.  
  200.  
  201.  
  202. #content {
  203. width:{select:Content Width};
  204. {select:Float};
  205. }
  206.  
  207.  
  208.  
  209.  
  210. .title {
  211. font-family:"Buffet";
  212. font-size: 25px;
  213. margin-bottom: 10px;
  214. }
  215.  
  216. .entry {
  217. float: left;
  218. width:50%;
  219. }
  220.  
  221.  
  222. #nav {
  223. float: left;
  224. margin-top: 20px;
  225. position: fixed;
  226. z-index:1000;
  227. right:0px;
  228. margin-right:auto;
  229. position:fixed;
  230. }
  231.  
  232. #nav a {
  233. text-decoration: none;
  234. font-size: 15px;
  235. line-height: 25px;
  236. color: #595959;
  237. }
  238.  
  239. #nav a:hover {
  240. color: #393939;
  241. }
  242.  
  243. #nav a:active {
  244. color: #151515;
  245. }
  246.  
  247.  
  248. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  249. #infscr-loading {display:none;}
  250. .navigation {display:none!important;}
  251.  
  252.  
  253.  
  254. .isotope-item {
  255. z-index: 2;
  256. }
  257.  
  258. .isotope-hidden.isotope-item {
  259. pointer-events: none;
  260. z-index: 1;
  261. }
  262.  
  263. .isotope,
  264. .isotope .isotope-item {
  265. /* change duration value to whatever you like */
  266. -webkit-transition-duration: 0.8s;
  267. -moz-transition-duration: 0.8s;
  268. transition-duration: 0.8s;
  269. }
  270.  
  271. .isotope {
  272. -webkit-transition-property: height, width;
  273. -moz-transition-property: height, width;
  274. transition-property: height, width;
  275. }
  276.  
  277. .isotope .isotope-item {
  278. -webkit-transition-property: -webkit-transform, opacity;
  279. -moz-transition-property: -moz-transform, opacity;
  280. transition-property: transform, opacity;
  281. }
  282.  
  283.  
  284.  
  285. .box {
  286. float: left;
  287. width:{select:Post Width};
  288. margin-bottom:{select:Gutter Width}px;
  289. }
  290.  
  291. .photo {
  292.  
  293. }
  294.  
  295.  
  296.  
  297. </style>
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308. </head>
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321. <body>
  322.  
  323. {block:IfHeadSpace}
  324. <div class="headspace"></div>
  325. {/block:IfHeadSpace}
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332. <div id="content">
  333. {block:Posts}
  334.  
  335. {block:Photo}
  336.  
  337. <a href="{Permalink}">
  338. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" class="box photo" />
  339. </a>
  340.  
  341.  
  342. {/block:Photo}
  343.  
  344.  
  345.  
  346.  
  347. {/block:Posts}
  348. </div>
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357. <div class="navigation">
  358. {block:Pagination}
  359. {block:NextPage}<p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>{/block:NextPage}
  360. {block:PreviousPage}<a style="float:left" href="{PreviousPage}">? Newer</a></p>{/block:PreviousPage}
  361. {/block:Pagination}
  362. </div>
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374. </body>
  375. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement