Advertisement
yLii

Infinite Isotope 15

Jan 3rd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.24 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:Sidebar" content="0" />
  163. <meta name="if:Stack Photoset" content="0" />
  164. <meta name="if:White Lightbox" content="0" />
  165.  
  166.  
  167. <meta name="select:Content Width" content="30%" />
  168. <meta name="select:Content Width" content="40%" />
  169. <meta name="select:Content Width" content="50%" />
  170. <meta name="select:Content Width" content="60%" />
  171. <meta name="select:Content Width" content="70%" />
  172. <meta name="select:Content Width" content="80%" />
  173. <meta name="select:Content Width" content="90%" />
  174. <meta name="select:Content Width" content="100%" />
  175.  
  176.  
  177. <meta name="select:Fade Opacity" content="0.1" />
  178. <meta name="select:Fade Opacity" content="0.2" />
  179. <meta name="select:Fade Opacity" content="0.3" />
  180. <meta name="select:Fade Opacity" content="0.4" />
  181. <meta name="select:Fade Opacity" content="0.5" />
  182. <meta name="select:Fade Opacity" content="0.6" />
  183. <meta name="select:Fade Opacity" content="0.7" />
  184. <meta name="select:Fade Opacity" content="0.8" />
  185. <meta name="select:Fade Opacity" content="0.9" />
  186. <meta name="select:Fade Opacity" content="1.0" />
  187.  
  188. <meta name="select:Float" content="margin:auto" title="Align Center" />
  189. <meta name="select:Float" content="float:left" title="Align Left" />
  190. <meta name="select:Float" content="float:right" title="Align Right" />
  191.  
  192.  
  193.  
  194.  
  195. <meta name="select:SideFloat" content="left" title="Left Sidebar" />
  196. <meta name="select:SideFloat" content="right" title="Right Sidebar" />
  197.  
  198.  
  199. <meta name="select:Layout Type" content="cellsByColumn" title="Cells by Column" />
  200. <meta name="select:Layout Type" content="cellsByRow" title="Cells by Row" />
  201. <meta name="select:Layout Type" content="fitColumns" title="Fit Columns" />
  202. <meta name="select:Layout Type" content="fitRows" title="Fit Rows" />
  203. <meta name="select:Layout Type" content="horiz" title="Horizontal" />
  204. <meta name="select:Layout Type" content="masonry" title="Masonry" />
  205. <meta name="select:Layout Type" content="masonryHorizontal" title="Masonry Horizontal" />
  206. <meta name="select:Layout Type" content="vertical" title="Vertical" />
  207.  
  208.  
  209.  
  210.  
  211. <!--Post Width in relation to Content Width -->
  212. <meta name="select:Post Width" content="25%" />
  213. <meta name="select:Post Width" content="30%" />
  214. <meta name="select:Post Width" content="32%" />
  215. <meta name="select:Post Width" content="32.75%" />
  216. <meta name="select:Post Width" content="33.33%" />
  217. <meta name="select:Post Width" content="40%" />
  218. <meta name="select:Post Width" content="50%" />
  219. <meta name="select:Post Width" content="60%" />
  220. <meta name="select:Post Width" content="70%" />
  221. <meta name="select:Post Width" content="75%" />
  222. <meta name="select:Post Width" content="80%" />
  223. <meta name="select:Post Width" content="90%" />
  224. <meta name="select:Post Width" content="100%" />
  225.  
  226.  
  227. <meta name="text:Gutter Width" content="" />
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234. <link rel="shortcut icon" href="{Favicon}">
  235. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  236. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  237.  
  238.  
  239.  
  240.  
  241.  
  242. <style type="text/css">
  243.  
  244.  
  245. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  246. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  247. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  248. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  249. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  250. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  251. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  252.  
  253.  
  254. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  255. ::-webkit-scrollbar-thumb { background-color: {color:Scrollbar}; -webkit-border-radius: 2ex; }
  256. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  257. ::-moz-scrollbar-thumb { background-color: {color:Scrollbar}; -moz-border-radius: 2ex; }
  258. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  259. ::-o-scrollbar-thumb { background-color: {color:Scrollbar}; -o-border-radius: 2ex; }
  260.  
  261.  
  262.  
  263.  
  264. ::selection {background: #d83e5c;color: #fff;}
  265. ::-moz-selection {background: #d83e5c;color: #fff;}
  266.  
  267.  
  268.  
  269.  
  270. html {
  271. width:100%;
  272. }
  273.  
  274.  
  275.  
  276. body {
  277. cursor:url(''), crosshair;
  278. background: {color:Background};
  279. width:100%;
  280.  
  281.  
  282. }
  283.  
  284.  
  285. {block:IfHeadSpace}
  286. .headspace{
  287. width:100%;
  288. height:300px;
  289. text-align:center;
  290. vertical-align:middle;
  291. font-size:50px;
  292. {/block:IfHeadSpace}
  293. font-family:{font:Header Font};
  294. }
  295.  
  296.  
  297. #content {
  298.  
  299. {block:IfNotHorizontal}
  300. width:{select:Content Width};
  301. {select:Float};
  302. {/block:IfNotHorizontal}
  303. {block:IfHorizontal}
  304. height:{select:Content Width};
  305. vertical-align:middle;
  306. {/block:IfHorizontal}
  307. }
  308.  
  309.  
  310.  
  311.  
  312.  
  313. a {
  314. cursor:inherit;
  315. }
  316.  
  317.  
  318. #nav {
  319. float: left;
  320. margin-top: 20px;
  321. position: fixed;
  322. z-index:1000;
  323. right:0px;
  324. margin-right:auto;
  325. position:fixed;
  326. }
  327.  
  328. #nav a {
  329. text-decoration: none;
  330. font-size: 15px;
  331. line-height: 25px;
  332. color: #595959;
  333. }
  334.  
  335. #nav a:hover {
  336. color: #393939;
  337. }
  338.  
  339. #nav a:active {
  340. color: #151515;
  341. }
  342.  
  343.  
  344. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  345. #infscr-loading {display:none;}
  346. .navigation {display:none!important;}
  347.  
  348.  
  349.  
  350. .isotope-item {
  351. z-index: 2;
  352. }
  353.  
  354. .isotope-hidden.isotope-item {
  355. pointer-events: none;
  356. z-index: 1;
  357. }
  358.  
  359. .isotope,
  360. .isotope .isotope-item {
  361. /* change duration value to whatever you like */
  362. -webkit-transition-duration: 0.8s;
  363. -moz-transition-duration: 0.8s;
  364. transition-duration: 0.8s;
  365. }
  366.  
  367. .isotope {
  368. -webkit-transition-property: height, width;
  369. -moz-transition-property: height, width;
  370. transition-property: height, width;
  371. }
  372.  
  373. .isotope .isotope-item {
  374. -webkit-transition-property: -webkit-transform, opacity;
  375. -moz-transition-property: -moz-transform, opacity;
  376. transition-property: transform, opacity;
  377. }
  378.  
  379.  
  380.  
  381. .box {
  382. cursor:inherit;
  383. {block:IfNotHorizontal}
  384. float: left;
  385. width:{select:Post Width};
  386. {/block:IfNotHorizontal}
  387.  
  388. {block:IfHorizontal}
  389. height:400px;
  390. {/block:IfHorizontal}
  391.  
  392. margin-bottom:{text:Gutter Width}px;
  393. {block:IfFade}
  394. opacity:{select:Fade Opacity};
  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.  
  404. .box:hover {
  405. {block:IfFade}
  406. opacity:1.0;
  407. -webkit-transition-duration: 0.8s;
  408. -moz-transition-duration: 0.8s;
  409. transition-duration: 0.8s;
  410. {/block:IfFade}
  411. }
  412.  
  413.  
  414.  
  415. .text {
  416. font-size:10%;
  417. }
  418.  
  419. .photo {
  420.  
  421. }
  422.  
  423. .photoset{
  424.  
  425. }
  426.  
  427. .photoset-wrap {}
  428. .photoset-wrap img { display: none; width:100%; }
  429. .photoset-wrap img:first-child { display: block; width:100%; }
  430.  
  431.  
  432. .photocount, .photocount a {
  433. right:0px;
  434. bottom:0px;
  435. position:absolute;
  436. font-size:10px;
  437. font-family:;
  438. color:{color:Background};
  439. }
  440.  
  441.  
  442. {block:IfHorizontal}
  443. .photo-slideshow {
  444. width:500px;
  445. }
  446. {/block:IfHorizontal}
  447.  
  448.  
  449. {block:ifWhiteLightbox}
  450. #vignette, .vignette{opacity:0!important;}.lightbox-caption {color:#000;}
  451. #tumblr_lightbox,.tmblr-lightbox{background:rgba(255,255,255,0.8)!important;}
  452. #tumblr_lightbox img, .lightbox-image {box-shadow:none!important;border-radius:0px!important;}
  453. {/block:ifWhiteLightbox}
  454.  
  455.  
  456.  
  457. {block:ifSidebar}
  458. {/block:ifSidebar}
  459. .sidebar {
  460. {select:SideFloat}:0px;
  461. float:{select:SideFloat};
  462. width:calc(100% - {select:Content Width} );
  463. background-color:cyan;
  464.  
  465. }
  466.  
  467.  
  468.  
  469.  
  470. .portrait {
  471. vertical-align:middle;
  472. border-radius:35px;
  473. opacity:0.7;
  474. -webkit-transition-duration: 0.8s;
  475. -moz-transition-duration: 0.8s;
  476. transition-duration: 0.8s;
  477. }
  478.  
  479.  
  480. .portrait:hover {
  481. opacity:1.0;
  482. border-radius:0px;
  483. -webkit-transition-duration: 0.8s;
  484. -moz-transition-duration: 0.8s;
  485. transition-duration: 0.8s;
  486.  
  487.  
  488. }
  489.  
  490.  
  491.  
  492.  
  493.  
  494. </style>
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505. </head>
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518. <body>
  519.  
  520.  
  521.  
  522.  
  523. {block:IfHeadSpace}
  524. <div class="headspace"><a href="{BlogURL}">{Title}</a></div>
  525. {/block:IfHeadSpace}
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. <div id="content">
  533. {block:Posts}
  534.  
  535.  
  536. <!-- {block:Text}
  537. <div class="box text">
  538. {Title}
  539. {Body}
  540. </div>
  541. {/block:Text} -->
  542.  
  543.  
  544.  
  545. {block:Photo}
  546.  
  547. <a href="#">
  548. <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" />
  549. </a>
  550. {/block:Photo}
  551.  
  552.  
  553. {block:Photoset}
  554. <div class="box">
  555.  
  556.  
  557. {block:ifNotStackPhotoset}
  558. <!--preset code to abide by pxu -->
  559. <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">
  560.  
  561. {block:Photos}
  562. <div class="photo-data">
  563. <div class="pxu-photo">
  564. <img src="{PhotoURL-500}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}">
  565. </div>
  566. <a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}">
  567. </a>
  568. </div>
  569. {/block:Photos}
  570. </div>
  571. {block:ifNotStackPhotoset}
  572.  
  573.  
  574.  
  575. {block:ifStackPhotoset}
  576. {block:IndexPage}
  577. <div class="photoset-wrap">
  578. {block:Photos}
  579. <!-- <a href="#"> for some reason loads all images in photoset-->
  580. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" 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" />
  581. <!-- </a> -->
  582.  
  583. {/block:Photos}
  584. <div class="photocount"><a href="{Permalink}">{PhotoCount}</a></div>
  585. </div>
  586. {/block:IndexPage}
  587. {/block:ifStackPhotoset}
  588.  
  589.  
  590.  
  591.  
  592. {block:PermalinkPage}
  593. <center>{Photoset}</center>
  594. {/block:PermalinkPage}
  595.  
  596.  
  597. </div>
  598. {/block:Photoset}
  599.  
  600.  
  601.  
  602.  
  603. {/block:Posts}
  604. </div>
  605.  
  606.  
  607.  
  608. {block:ifSidebar}
  609. {block:IndexPage}
  610. <div class="sidebar">
  611.  
  612. <center><img src="{PortraitURL-64}" class="portrait" /></center>
  613.  
  614. </div>
  615. {block:IndexPage}
  616. {/block:ifSidebar}
  617.  
  618.  
  619.  
  620. <div class="navigation">
  621. {block:Pagination}
  622. {block:NextPage}
  623. <p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>
  624. {/block:NextPage}
  625. {block:PreviousPage}
  626. <a style="float:left" href="{PreviousPage}">? Newer</a></p>
  627. {/block:PreviousPage}
  628. {/block:Pagination}
  629. </div>
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641. </body>
  642. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement