Advertisement
yLii

Infinite Isotope 13

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