Advertisement
yLii

Infinite Isotope 09

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