Advertisement
yLii

Infinite Isotope 11 :D

Jan 3rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.59 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.  
  36.  
  37. <script>
  38. var isotope = $(function(){
  39. var $container = $('#content');
  40. $container.imagesLoaded(function(){
  41. $container.isotope({
  42. itemSelector : '.box',
  43. layoutMode : '{select:Layout Type}',
  44. masonry: {
  45. gutter: {select:Gutter Width}
  46. }
  47. });
  48. });
  49.  
  50. $container.infinitescroll({
  51. navSelector : '#page_nav',
  52. nextSelector : '#page_nav a',
  53. itemSelector : '.box',
  54. loading: {
  55. finishedMsg: 'You have reached the end of the internet.',
  56. img: 'http://i.imgur.com/qkKy8.gif'
  57. }
  58. },
  59. // call Isotope as a callback
  60. function ( newElements ) {
  61. var $newElems = jQuery( newElements ).hide(); // hide to begin with
  62. // ensure that images load before adding to masonry layout
  63. $newElems.imagesLoaded(function(){
  64. $newElems.fadeIn(); // fade in when ready
  65. $container.isotope( 'insert', $newElems );
  66.  
  67. $( newElements ).find('.photo-slideshow').pxuPhotoset({
  68. lightbox: true,
  69. rounded: false,
  70. borderRadius: '0px',
  71. gutter: '{select:Gutter Width}px',
  72. photoset: '.photo-slideshow',
  73. photoWrap: '.photo-data',
  74. photo: '.pxu-photo'
  75. });
  76. });
  77. }
  78.  
  79.  
  80. );
  81. });
  82.  
  83.  
  84.  
  85. $(document).ready(isotope);
  86.  
  87. </script>
  88.  
  89. <!--Responsive photosets-->
  90. <link href="https://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
  91. <script src="https://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
  92.  
  93. <script>
  94. $(document).ready(function(){
  95. $('.photo-slideshow').pxuPhotoset({
  96. lightbox: true,
  97. rounded: false,
  98. gutter: ' {select:Gutter Width}px',
  99. borderRadius: '0px',
  100. highRes : true,
  101. captions : true,
  102. photoset: '.photo-slideshow',
  103. photoWrap: '.photo-data',
  104. photo: '.pxu-photo'
  105. });
  106. });
  107. </script>
  108.  
  109.  
  110.  
  111. <meta name="image:Background" content="" />
  112. <meta name="image:Lollipop Background" content="" />
  113. <meta name="image:Quote Background" content="" />
  114. <meta name="image:HeaderBackground" content="" />
  115.  
  116. <meta name="color:Background" content="#ffffff" />
  117. <meta name="color:Links" content="#619251" />
  118. <meta name="color:Text highlight" content="#d83e5c" />
  119. <meta name="color:Lollipop" content="#000000" />
  120. <meta name="color:Lollipop Hover" content="#b7512e" />
  121. <meta name="color:Hover" content="#b7512e" />
  122. <meta name="color:Scrollbar" content="#fed3f2" />
  123.  
  124.  
  125. <meta name="text:Post margin" content="10px" />
  126. <meta name="text:Columns" content="4" />
  127.  
  128.  
  129.  
  130. <meta name="text:Font size" content='0.8em'/>
  131. <meta name="text:Google Analytics ID" content=''/>
  132. <meta name="text:Twitter Username" content=''/>
  133.  
  134. <meta name="if:Fade" content="1" />
  135. <meta name="if:Head Space" content="1" />
  136. <meta name="if:Horizontal" content="0" />
  137. <meta name="if:Infinite Scroll" content="1" />
  138. <meta name="if:White Lightbox" content="0" />
  139.  
  140.  
  141. <meta name="select:Content Width" content="30%" />
  142. <meta name="select:Content Width" content="40%" />
  143. <meta name="select:Content Width" content="50%" />
  144. <meta name="select:Content Width" content="60%" />
  145. <meta name="select:Content Width" content="70%" />
  146. <meta name="select:Content Width" content="80%" />
  147. <meta name="select:Content Width" content="90%" />
  148. <meta name="select:Content Width" content="100%" />
  149.  
  150.  
  151. <meta name="select:Fade Opacity" content="0.1" />
  152. <meta name="select:Fade Opacity" content="0.2" />
  153. <meta name="select:Fade Opacity" content="0.3" />
  154. <meta name="select:Fade Opacity" content="0.4" />
  155. <meta name="select:Fade Opacity" content="0.5" />
  156. <meta name="select:Fade Opacity" content="0.6" />
  157. <meta name="select:Fade Opacity" content="0.7" />
  158. <meta name="select:Fade Opacity" content="0.8" />
  159. <meta name="select:Fade Opacity" content="0.9" />
  160. <meta name="select:Fade Opacity" content="1.0" />
  161.  
  162. <meta name="select:Float" content="margin:auto" title="Align Center" />
  163. <meta name="select:Float" content="float:left" title="Align Left" />
  164. <meta name="select:Float" content="float:right" title="Align Right" />
  165.  
  166. <meta name="select:Layout Type" content="cellsByColumn" title="Cells by Column" />
  167. <meta name="select:Layout Type" content="cellsByRow" title="Cells by Row" />
  168. <meta name="select:Layout Type" content="fitColumns" title="Fit Columns" />
  169. <meta name="select:Layout Type" content="fitRows" title="Fit Rows" />
  170. <meta name="select:Layout Type" content="horiz" title="Horizontal" />
  171. <meta name="select:Layout Type" content="masonry" title="Masonry" />
  172. <meta name="select:Layout Type" content="masonryHorizontal" title="Masonry Horizontal" />
  173. <meta name="select:Layout Type" content="vertical" title="Vertical" />
  174.  
  175. <meta name="select:Gutter Width" content="0" />
  176. <meta name="select:Gutter Width" content="5" />
  177. <meta name="select:Gutter Width" content="10" />
  178. <meta name="select:Gutter Width" content="15" />
  179.  
  180.  
  181. <!--Post Width in relation to Content Width -->
  182. <meta name="select:Post Width" content="25%" />
  183. <meta name="select:Post Width" content="30%" />
  184. <meta name="select:Post Width" content="32%" />
  185. <meta name="select:Post Width" content="32.75%" />
  186. <meta name="select:Post Width" content="33.33%" />
  187. <meta name="select:Post Width" content="40%" />
  188. <meta name="select:Post Width" content="50%" />
  189. <meta name="select:Post Width" content="60%" />
  190. <meta name="select:Post Width" content="70%" />
  191. <meta name="select:Post Width" content="75%" />
  192. <meta name="select:Post Width" content="80%" />
  193. <meta name="select:Post Width" content="90%" />
  194. <meta name="select:Post Width" content="100%" />
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204. <link rel="shortcut icon" href="{Favicon}">
  205. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  206. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  207.  
  208.  
  209.  
  210.  
  211.  
  212. <style type="text/css">
  213.  
  214.  
  215. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  216. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  217. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  218. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  219. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  220. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  221. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  222.  
  223.  
  224. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  225. ::-webkit-scrollbar-thumb { background-color: {color:Scrollbar}; -webkit-border-radius: 2ex; }
  226. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  227. ::-moz-scrollbar-thumb { background-color: {color:Scrollbar}; -moz-border-radius: 2ex; }
  228. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  229. ::-o-scrollbar-thumb { background-color: {color:Scrollbar}; -o-border-radius: 2ex; }
  230.  
  231.  
  232.  
  233.  
  234. ::selection {background: #d83e5c;color: #fff;}
  235. ::-moz-selection {background: #d83e5c;color: #fff;}
  236.  
  237.  
  238.  
  239.  
  240. html {
  241.  
  242. }
  243.  
  244.  
  245.  
  246. body {
  247. cursor:url(''), crosshair;
  248. background: {color:Background};
  249.  
  250.  
  251. }
  252.  
  253.  
  254. {block:IfHeadSpace}
  255. .headspace{
  256. height:300px;
  257. }
  258. {/block:IfHeadSpace}
  259.  
  260.  
  261.  
  262.  
  263. #content {
  264.  
  265. {block:IfNotHorizontal}
  266. width:{select:Content Width};
  267. {select:Float};
  268. {/block:IfNotHorizontal}
  269. {block:IfHorizontal}
  270. height:{select:Content Width};
  271. {/block:IfHorizontal}
  272. }
  273.  
  274.  
  275.  
  276.  
  277. .title {
  278. font-family:"Buffet";
  279. font-size: 25px;
  280. margin-bottom: 10px;
  281. }
  282.  
  283. a {
  284. cursor:inherit;
  285. }
  286.  
  287.  
  288. #nav {
  289. float: left;
  290. margin-top: 20px;
  291. position: fixed;
  292. z-index:1000;
  293. right:0px;
  294. margin-right:auto;
  295. position:fixed;
  296. }
  297.  
  298. #nav a {
  299. text-decoration: none;
  300. font-size: 15px;
  301. line-height: 25px;
  302. color: #595959;
  303. }
  304.  
  305. #nav a:hover {
  306. color: #393939;
  307. }
  308.  
  309. #nav a:active {
  310. color: #151515;
  311. }
  312.  
  313.  
  314. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  315. #infscr-loading {display:none;}
  316. .navigation {display:none!important;}
  317.  
  318.  
  319.  
  320. .isotope-item {
  321. z-index: 2;
  322. }
  323.  
  324. .isotope-hidden.isotope-item {
  325. pointer-events: none;
  326. z-index: 1;
  327. }
  328.  
  329. .isotope,
  330. .isotope .isotope-item {
  331. /* change duration value to whatever you like */
  332. -webkit-transition-duration: 0.8s;
  333. -moz-transition-duration: 0.8s;
  334. transition-duration: 0.8s;
  335. }
  336.  
  337. .isotope {
  338. -webkit-transition-property: height, width;
  339. -moz-transition-property: height, width;
  340. transition-property: height, width;
  341. }
  342.  
  343. .isotope .isotope-item {
  344. -webkit-transition-property: -webkit-transform, opacity;
  345. -moz-transition-property: -moz-transform, opacity;
  346. transition-property: transform, opacity;
  347. }
  348.  
  349.  
  350.  
  351. .box {
  352. cursor:inherit;
  353. {block:IfNotHorizontal}
  354. float: left;
  355. width:{select:Post Width};
  356. {/block:IfNotHorizontal}
  357.  
  358. {block:IfHorizontal}
  359. height:400px;
  360. {/block:IfHorizontal}
  361.  
  362. margin-bottom:{select:Gutter Width}px;
  363. {block:IfFade}
  364. opacity:{select:Fade Opacity};
  365. -webkit-transition-duration: 0.8s;
  366. -moz-transition-duration: 0.8s;
  367. transition-duration: 0.8s;
  368. {/block:IfFade}
  369.  
  370. }
  371.  
  372.  
  373.  
  374. .box:hover {
  375. {block:IfFade}
  376. opacity:1.0;
  377. -webkit-transition-duration: 0.8s;
  378. -moz-transition-duration: 0.8s;
  379. transition-duration: 0.8s;
  380. {/block:IfFade}
  381. }
  382.  
  383.  
  384.  
  385. .text {
  386. font-size:10%;
  387. }
  388.  
  389. .photo {
  390.  
  391. }
  392.  
  393. .photoset{
  394.  
  395. }
  396.  
  397. {block:ifWhiteLightbox}
  398. #vignette, .vignette{opacity:0!important;}.lightbox-caption {color:#000;}
  399. #tumblr_lightbox,.tmblr-lightbox{background:rgba(255,255,255,0.8)!important;}
  400. #tumblr_lightbox img, .lightbox-image {box-shadow:none!important;border-radius:0px!important;}
  401. {/block:ifWhiteLightbox}
  402.  
  403. </style>
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414. </head>
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427. <body>
  428.  
  429. {block:IfHeadSpace}
  430. <div class="headspace"></div>
  431. {/block:IfHeadSpace}
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438. <div id="content">
  439. {block:Posts}
  440.  
  441.  
  442. <!-- {block:Text}
  443. <div class="box text">
  444. {Title}
  445. {Body}
  446. </div>
  447. {/block:Text} -->
  448.  
  449.  
  450.  
  451. {block:Photo}
  452.  
  453. <a href="#">
  454. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" class="box photo" onclick="Tumblr.Lightbox.init([{ width: {PhotoWidth-HighRes}, height: {PhotoHeight-HighRes}, low_res: '{PhotoURL-500}', high_res: '{PhotoURL-HighRes}' }]); $('body').toggleClass('tumblr_lightbox_active'); return false" />
  455. </a>
  456. {/block:Photo}
  457.  
  458.  
  459. {block:Photoset}
  460. <div class="box photoset">
  461.  
  462. <!--preset code to abide by pxu -->
  463. <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">
  464.  
  465. {block:Photos}
  466. <div class="photo-data">
  467. <div class="pxu-photo">
  468. <img src="{PhotoURL-500}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}">
  469. </div>
  470. <a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}">
  471. </a>
  472. </div>
  473. {/block:Photos}
  474. </div>
  475. </div>
  476. {/block:Photoset}
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484. {/block:Posts}
  485. </div>
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494. <div class="navigation">
  495. {block:Pagination}
  496. {block:NextPage}
  497. <p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>
  498. {/block:NextPage}
  499. {block:PreviousPage}
  500. <a style="float:left" href="{PreviousPage}">? Newer</a></p>
  501. {/block:PreviousPage}
  502. {/block:Pagination}
  503. </div>
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515. </body>
  516. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement