Advertisement
yLii

Infinite Isotope 10

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