Advertisement
yLii

Infinite Isotope 07

Jan 3rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.00 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. <meta name="color:Scrollbar" content="#fed3f2" />
  92.  
  93.  
  94. <meta name="text:Post margin" content="10px" />
  95. <meta name="text:Columns" content="4" />
  96.  
  97.  
  98.  
  99. <meta name="text:Font size" content='0.8em'/>
  100. <meta name="text:Google Analytics ID" content=''/>
  101. <meta name="text:Twitter Username" content=''/>
  102.  
  103. <meta name="if:Fade" content="1" />
  104. <meta name="if:Head Space" content="1" />
  105. <meta name="if:Horizontal" content="0" />
  106. <meta name="if:Infinite Scroll" content="1" />
  107.  
  108.  
  109. <meta name="select:Content Width" content="30%" />
  110. <meta name="select:Content Width" content="40%" />
  111. <meta name="select:Content Width" content="50%" />
  112. <meta name="select:Content Width" content="60%" />
  113. <meta name="select:Content Width" content="70%" />
  114. <meta name="select:Content Width" content="80%" />
  115. <meta name="select:Content Width" content="90%" />
  116. <meta name="select:Content Width" content="100%" />
  117.  
  118.  
  119. <meta name="select:Fade Opacity" content="0.1" />
  120. <meta name="select:Fade Opacity" content="0.2" />
  121. <meta name="select:Fade Opacity" content="0.3" />
  122. <meta name="select:Fade Opacity" content="0.4" />
  123. <meta name="select:Fade Opacity" content="0.5" />
  124. <meta name="select:Fade Opacity" content="0.6" />
  125. <meta name="select:Fade Opacity" content="0.7" />
  126. <meta name="select:Fade Opacity" content="0.8" />
  127. <meta name="select:Fade Opacity" content="0.9" />
  128. <meta name="select:Fade Opacity" content="1.0" />
  129.  
  130. <meta name="select:Float" content="margin:auto" title="Align Center" />
  131. <meta name="select:Float" content="float:left" title="Align Left" />
  132. <meta name="select:Float" content="float:right" title="Align Right" />
  133.  
  134. <meta name="select:Layout Type" content="cellsByColumn" title="Cells by Column" />
  135. <meta name="select:Layout Type" content="cellsByRow" title="Cells by Row" />
  136. <meta name="select:Layout Type" content="fitColumns" title="Fit Columns" />
  137. <meta name="select:Layout Type" content="fitRows" title="Fit Rows" />
  138. <meta name="select:Layout Type" content="horiz" title="Horizontal" />
  139. <meta name="select:Layout Type" content="masonry" title="Masonry" />
  140. <meta name="select:Layout Type" content="masonryHorizontal" title="Masonry Horizontal" />
  141. <meta name="select:Layout Type" content="vertical" title="Vertical" />
  142.  
  143. <meta name="select:Gutter Width" content="0" />
  144. <meta name="select:Gutter Width" content="5" />
  145. <meta name="select:Gutter Width" content="10" />
  146. <meta name="select:Gutter Width" content="15" />
  147.  
  148.  
  149. <!--Post Width in relation to Content Width -->
  150. <meta name="select:Post Width" content="30%" />
  151. <meta name="select:Post Width" content="40%" />
  152. <meta name="select:Post Width" content="50%" />
  153. <meta name="select:Post Width" content="60%" />
  154. <meta name="select:Post Width" content="70%" />
  155. <meta name="select:Post Width" content="75%" />
  156. <meta name="select:Post Width" content="80%" />
  157. <meta name="select:Post Width" content="90%" />
  158. <meta name="select:Post Width" content="100%" />
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168. <link rel="shortcut icon" href="{Favicon}">
  169. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  170. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  171.  
  172.  
  173.  
  174.  
  175.  
  176. <style type="text/css">
  177.  
  178.  
  179. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  180. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  181. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  182. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  183. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  184. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  185. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  186.  
  187.  
  188. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  189. ::-webkit-scrollbar-thumb { background-color: {color:Scrollbar}; -webkit-border-radius: 2ex; }
  190. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  191. ::-moz-scrollbar-thumb { background-color: {color:Scrollbar}; -moz-border-radius: 2ex; }
  192. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  193. ::-o-scrollbar-thumb { background-color: {color:Scrollbar}; -o-border-radius: 2ex; }
  194.  
  195.  
  196.  
  197.  
  198. ::selection {background: #d83e5c;color: #fff;}
  199. ::-moz-selection {background: #d83e5c;color: #fff;}
  200.  
  201.  
  202.  
  203.  
  204. html {
  205.  
  206. }
  207.  
  208.  
  209.  
  210. body {
  211. background: {color:Background};
  212.  
  213.  
  214. }
  215.  
  216.  
  217. {block:IfHeadSpace}
  218. .headspace{
  219. height:300px;
  220. }
  221. {/block:IfHeadSpace}
  222.  
  223.  
  224.  
  225.  
  226. #content {
  227. {block:IfNotHorizontal}
  228. width:{select:Content Width};
  229. {select:Float};
  230. {/block:IfNotHorizontal}
  231. {block:IfHorizontal}
  232. height:{select:Content Width};
  233. {/block:IfHorizontal}
  234. }
  235.  
  236.  
  237.  
  238.  
  239. .title {
  240. font-family:"Buffet";
  241. font-size: 25px;
  242. margin-bottom: 10px;
  243. }
  244.  
  245. .entry {
  246. float: left;
  247. width:50%;
  248. }
  249.  
  250.  
  251. #nav {
  252. float: left;
  253. margin-top: 20px;
  254. position: fixed;
  255. z-index:1000;
  256. right:0px;
  257. margin-right:auto;
  258. position:fixed;
  259. }
  260.  
  261. #nav a {
  262. text-decoration: none;
  263. font-size: 15px;
  264. line-height: 25px;
  265. color: #595959;
  266. }
  267.  
  268. #nav a:hover {
  269. color: #393939;
  270. }
  271.  
  272. #nav a:active {
  273. color: #151515;
  274. }
  275.  
  276.  
  277. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  278. #infscr-loading {display:none;}
  279. .navigation {display:none!important;}
  280.  
  281.  
  282.  
  283. .isotope-item {
  284. z-index: 2;
  285. }
  286.  
  287. .isotope-hidden.isotope-item {
  288. pointer-events: none;
  289. z-index: 1;
  290. }
  291.  
  292. .isotope,
  293. .isotope .isotope-item {
  294. /* change duration value to whatever you like */
  295. -webkit-transition-duration: 0.8s;
  296. -moz-transition-duration: 0.8s;
  297. transition-duration: 0.8s;
  298. }
  299.  
  300. .isotope {
  301. -webkit-transition-property: height, width;
  302. -moz-transition-property: height, width;
  303. transition-property: height, width;
  304. }
  305.  
  306. .isotope .isotope-item {
  307. -webkit-transition-property: -webkit-transform, opacity;
  308. -moz-transition-property: -moz-transform, opacity;
  309. transition-property: transform, opacity;
  310. }
  311.  
  312.  
  313.  
  314. .box {
  315. {block:IfNotHorizontal}
  316. float: left;
  317. width:{select:Post Width};
  318. {/block:IfNotHorizontal}
  319.  
  320. {block:IfHorizontal}
  321. height:400px;
  322. {/block:IfHorizontal}
  323.  
  324. margin-bottom:{select:Gutter Width}px;
  325. {block:IfFade}
  326. opacity:{select:Fade Opacity};
  327. -webkit-transition-duration: 0.8s;
  328. -moz-transition-duration: 0.8s;
  329. transition-duration: 0.8s;
  330. {/block:IfFade}
  331.  
  332. }
  333.  
  334.  
  335. {block:IfFade}
  336. .box:hover {
  337. opacity:1.0;
  338. -webkit-transition-duration: 0.8s;
  339. -moz-transition-duration: 0.8s;
  340. transition-duration: 0.8s;
  341. }
  342. {/block:IfFade}
  343.  
  344. .photo {
  345.  
  346. }
  347.  
  348.  
  349.  
  350. </style>
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361. </head>
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374. <body>
  375.  
  376. {block:IfHeadSpace}
  377. <div class="headspace"></div>
  378. {/block:IfHeadSpace}
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385. <div id="content">
  386. {block:Posts}
  387.  
  388.  
  389. {block:Text}
  390. <div class="box" style="background:cyan;">
  391. {Title}
  392. {Body}
  393. </div>
  394. {/block:Text}
  395.  
  396.  
  397.  
  398. {block:Photo}
  399. <a href="{Permalink}">
  400. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" class="box photo" />
  401. </a>
  402. {/block:Photo}
  403.  
  404.  
  405. {block:Photoset}
  406. <div class="box" style="background:red;" data-layout="{PhotosetLayout}">
  407. HELLO
  408. {Photoset}
  409. {block:Photos}
  410. <div class="photo-data">
  411. <div class="pxu-photo">
  412. <a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}">
  413. <img alt="{PhotoAlt}" src="{PhotoURL-500}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}" class="{block:Exif}exif-yes {/block:Exif}{block:Caption}caption-yes{/block:Caption}" {block:Caption}data-caption="{Caption}"{/block:Caption}>
  414. </a>
  415. </div>
  416. <div class="icons">
  417.  
  418. <span class="zoom pictos">s</span>
  419.  
  420. </div>
  421. </div>
  422. {/block:Photos}
  423. </div>
  424. {/block:Photoset}
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432. {/block:Posts}
  433. </div>
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442. <div class="navigation">
  443. {block:Pagination}
  444. {block:NextPage}
  445. <p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>
  446. {/block:NextPage}
  447. {block:PreviousPage}
  448. <a style="float:left" href="{PreviousPage}">? Newer</a></p>
  449. {/block:PreviousPage}
  450. {/block:Pagination}
  451. </div>
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463. </body>
  464. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement