Advertisement
yLii

Infinite Isotope 14

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