Advertisement
yLii

Infinite Isotope 12

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