Advertisement
yLii

Infinite Isotope 05

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