Advertisement
yLii

Infinite Isotope 02 :D

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