Advertisement
yLii

Infinite Isotope 32

Jan 11th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.26 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.  
  10.  
  11.  
  12. <!--don't understand why this script doesn't work -->
  13. <script src="http://static.tumblr.com/iuvoef7/hshmx93xt/jquery.isotope.min.js"></script>
  14.  
  15. <!-- for some reason this one works -->
  16. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.2/isotope.pkgd.min.js"></script>
  17.  
  18. <!--cellsbycolumn-->
  19. <script src="https://raw.githubusercontent.com/metafizzy/isotope-cells-by-column/master/cells-by-column.js"></script>
  20.  
  21. <!--cellsbyrow-->
  22. <script src="https://raw.githubusercontent.com/metafizzy/isotope-cells-by-row/master/cells-by-row.js"></script>
  23.  
  24. <!--fitcolumns-->
  25. <script src="https://raw.githubusercontent.com/metafizzy/isotope-fit-columns/master/fit-columns.js"></script>
  26.  
  27. <!--masonryhorizontal-->
  28. <script src="https://raw.githubusercontent.com/metafizzy/isotope-masonry-horizontal/master/masonry-horizontal.js"></script>
  29.  
  30.  
  31. <!--horizontal horiz-->
  32. <script src="https://raw.githubusercontent.com/metafizzy/isotope-horizontal/master/horizontal.js"></script>
  33.  
  34.  
  35.  
  36. <!--infinite scroll -->
  37. <script src="http://static.tumblr.com/iuvoef7/tIEmx9449/jquery.infinitescroll.min.js"></script>
  38.  
  39.  
  40. <!--smooth scrolling-->
  41. <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.6/SmoothScroll.min.js"></script>
  42.  
  43.  
  44. <script>
  45.  
  46. //main function, called isotope
  47.  
  48.  
  49.  
  50.  
  51. var isotope = $(function(){
  52. var $container = $('#content');
  53. $container.imagesLoaded(function(){
  54. $container.fadeIn().isotope({
  55. itemSelector : '.box',
  56. layoutMode : '{select:Layout Type}',
  57. masonry: {
  58. gutter: {text:Gutter Width}
  59. }
  60. {block:ifMasonryHorizontal}
  61. masonryHorizontal: {
  62. rowHeight: 50
  63. }
  64. {/block:ifMasonryHorizontal}
  65.  
  66. });
  67.  
  68. });
  69.  
  70.  
  71.  
  72.  
  73. //infinite scroll and callback
  74.  
  75.  
  76. $container.infinitescroll({
  77. navSelector : '#page_nav',
  78. nextSelector : '#page_nav a',
  79. itemSelector : '.box',
  80. loading: {
  81. finishedMsg: 'You have reached the end of the internet.',
  82. img: 'http://i.imgur.com/qkKy8.gif'
  83. }
  84. },
  85. // call Isotope as a callback
  86. function ( newElements ) {
  87. var $newElems = jQuery( newElements ).hide(); // hide to begin with
  88. $( newElements ).find('.photo-slideshow').pxuPhotoset({
  89. lightbox: true,
  90. rounded: false,
  91. gutter: ' {text:Gutter Width}px',
  92. borderRadius: '0px',
  93. highRes : true,
  94. captions : true,
  95. photoset: '.photo-slideshow',
  96. photoWrap: '.photo-data',
  97. photo: '.pxu-photo'
  98. });
  99. // ensure that images load before adding to masonry layout
  100. $newElems.imagesLoaded(function(){
  101. $newElems.fadeIn(); // fade in when ready
  102. $container.isotope( 'insert', $newElems );
  103.  
  104.  
  105. });
  106. }
  107.  
  108.  
  109. );
  110.  
  111. {block:ifManualInfiniteScroll}
  112. //manual infinite scroll
  113. $(window).unbind('.infscr');
  114. $('.load-more').click(function(){
  115. $container.infinitescroll('retrieve');
  116. return false
  117. });
  118. {/block:ifManualInfiniteScroll}
  119.  
  120.  
  121. }); //ending main function
  122.  
  123.  
  124.  
  125. $(document).ready(isotope);
  126.  
  127. </script>
  128.  
  129. <!--Responsive photosets-->
  130. <link href="https://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
  131. <script src="https://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
  132.  
  133. <script>
  134. $(document).ready(function(){
  135. $('.photo-slideshow').pxuPhotoset({
  136. lightbox: true,
  137. rounded: false,
  138. gutter: ' {text:Gutter Width}px',
  139. borderRadius: '0px',
  140. highRes : true,
  141. captions : true,
  142. photoset: '.photo-slideshow',
  143. photoWrap: '.photo-data',
  144. photo: '.pxu-photo'
  145. });
  146. });
  147. </script>
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154. <meta name="image:Background" content="" />
  155. <meta name="image:Lollipop Background" content="" />
  156. <meta name="image:Quote Background" content="" />
  157. <meta name="image:HeaderBackground" content="" />
  158.  
  159. <meta name="color:Background" content="#ffffff" />
  160. <meta name="color:Lightbox Background" content="#fff" />
  161. <meta name="color:Links" content="#619251" />
  162. <meta name="color:Text highlight" content="#d83e5c" />
  163. <meta name="color:Lollipop" content="#000000" />
  164. <meta name="color:Lollipop Hover" content="#b7512e" />
  165. <meta name="color:Hover" content="#b7512e" />
  166. <meta name="color:Scrollbar" content="#fed3f2" />
  167.  
  168. <meta name="font:Header Font" content="Arial" />
  169.  
  170.  
  171.  
  172.  
  173. <meta name="if:Captions" content="0" />
  174. <meta name="if:Fade" content="1" />
  175. <meta name="if:Head Space" content="1" />
  176. <meta name="if:Horizontal" content="0" />
  177. <meta name="if:Infinite Scroll" content="1" />
  178. <meta name="if:Manual Infinite Scroll" content="1" />
  179. <meta name="if:Masonry Horizontal" content="0" />
  180. <meta name="if:Sidebar" content="0" />
  181. <meta name="if:Stack Photoset" content="0" />
  182.  
  183.  
  184. <meta name="select:Content Width" content="30%" />
  185. <meta name="select:Content Width" content="40%" />
  186. <meta name="select:Content Width" content="50%" />
  187. <meta name="select:Content Width" content="60%" />
  188. <meta name="select:Content Width" content="70%" />
  189. <meta name="select:Content Width" content="80%" />
  190. <meta name="select:Content Width" content="90%" />
  191. <meta name="select:Content Width" content="100%" />
  192.  
  193.  
  194. <meta name="select:Fade Opacity" content="0.1" />
  195. <meta name="select:Fade Opacity" content="0.2" />
  196. <meta name="select:Fade Opacity" content="0.3" />
  197. <meta name="select:Fade Opacity" content="0.4" />
  198. <meta name="select:Fade Opacity" content="0.5" />
  199. <meta name="select:Fade Opacity" content="0.6" />
  200. <meta name="select:Fade Opacity" content="0.7" />
  201. <meta name="select:Fade Opacity" content="0.8" />
  202. <meta name="select:Fade Opacity" content="0.9" />
  203. <meta name="select:Fade Opacity" content="1.0" />
  204.  
  205. <meta name="select:Float" content="margin:auto" title="Align Center" />
  206. <meta name="select:Float" content="float:left" title="Align Left" />
  207. <meta name="select:Float" content="float:right" title="Align Right" />
  208.  
  209.  
  210.  
  211.  
  212. <meta name="select:SideFloat" content="left" title="Left Sidebar" />
  213. <meta name="select:SideFloat" content="right" title="Right Sidebar" />
  214.  
  215.  
  216. <meta name="select:Layout Type" content="cellsByColumn" title="Cells by Column" />
  217. <meta name="select:Layout Type" content="cellsByRow" title="Cells by Row" />
  218. <meta name="select:Layout Type" content="fitColumns" title="Fit Columns" />
  219. <meta name="select:Layout Type" content="fitRows" title="Fit Rows" />
  220. <meta name="select:Layout Type" content="horiz" title="Horizontal" />
  221. <meta name="select:Layout Type" content="masonry" title="Masonry" />
  222. <meta name="select:Layout Type" content="masonryHorizontal" title="Masonry Horizontal" />
  223. <meta name="select:Layout Type" content="vertical" title="Vertical" />
  224.  
  225.  
  226.  
  227.  
  228. <!--Post Width in relation to Content Width -->
  229. <meta name="select:Post Width" content="25%" />
  230. <meta name="select:Post Width" content="30%" />
  231. <meta name="select:Post Width" content="32%" />
  232. <meta name="select:Post Width" content="32.75%" />
  233. <meta name="select:Post Width" content="33.33%" />
  234. <meta name="select:Post Width" content="40%" />
  235. <meta name="select:Post Width" content="50%" />
  236. <meta name="select:Post Width" content="60%" />
  237. <meta name="select:Post Width" content="70%" />
  238. <meta name="select:Post Width" content="75%" />
  239. <meta name="select:Post Width" content="80%" />
  240. <meta name="select:Post Width" content="90%" />
  241. <meta name="select:Post Width" content="100%" />
  242.  
  243. <meta name="text:Body Font" content="Open Sans" />
  244. <meta name="text:Header Font" content="Open Sans"/>
  245. <meta name="text:Link Font" content="Open Sans" />
  246. <meta name="text:Gutter Width" content="0" />
  247.  
  248.  
  249. <!--fonts-->
  250. <link href='http://fonts.googleapis.com/css?family={text:Body Font}' rel='stylesheet' type='text/css'>
  251. <link href='http://fonts.googleapis.com/css?family={text:Header Font}' rel='stylesheet' type='text/css'>
  252. <link href='http://fonts.googleapis.com/css?family={text:Link Font}' rel='stylesheet' type='text/css'>
  253.  
  254.  
  255.  
  256.  
  257.  
  258. <link rel="shortcut icon" href="{Favicon}">
  259. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  260. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  261.  
  262.  
  263.  
  264.  
  265.  
  266. <style type="text/css">
  267. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  268. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  269. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  270. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  271.  
  272. @font-face {font-family:"Jellyka";src:url('http://static.tumblr.com/iuvoef7/mNnojgowh/jellyka_bees_antique_handwriting.ttf');}
  273. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  274.  
  275.  
  276. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  277. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  285. ::-webkit-scrollbar-thumb { background-color: {color:Scrollbar}; -webkit-border-radius: 2ex; }
  286. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  287. ::-moz-scrollbar-thumb { background-color: {color:Scrollbar}; -moz-border-radius: 2ex; }
  288. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  289. ::-o-scrollbar-thumb { background-color: {color:Scrollbar}; -o-border-radius: 2ex; }
  290.  
  291. {block:PermalinkPage}
  292. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  293. ::-webkit-scrollbar-thumb { background-color: {color:Background}; -webkit-border-radius: 2ex; }
  294. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  295. ::-moz-scrollbar-thumb { background-color: {color:Background}; -moz-border-radius: 2ex; }
  296. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  297. ::-o-scrollbar-thumb { background-color: {color:Background}; -o-border-radius: 2ex; }
  298. {block:PermalinkPage}
  299.  
  300.  
  301.  
  302.  
  303. ::selection {background: #d83e5c;color: #fff;}
  304. ::-moz-selection {background: #d83e5c;color: #fff;}
  305.  
  306.  
  307.  
  308.  
  309. html {
  310. width:100%;
  311. }
  312.  
  313.  
  314.  
  315. body {
  316. cursor:url(''), crosshair;
  317. background: {color:Background};
  318. width:100%;
  319. font-family:'{text:Body Font}';
  320.  
  321.  
  322. {block:PermalinkPage}
  323. height:100vh;
  324. overflow:hidden;
  325. {/block:PermalinkPage}
  326.  
  327. }
  328.  
  329.  
  330. {block:IfHeadSpace}
  331. .headspace{
  332. width:100%;
  333. height:21vh;
  334. padding-top:10vh;
  335. text-align:center;
  336. vertical-align:middle;
  337. font-size:50px;
  338. {/block:IfHeadSpace}
  339. font-family:{text:Header Font};
  340.  
  341.  
  342.  
  343. }
  344.  
  345. .header {
  346.  
  347. }
  348.  
  349.  
  350. #content {
  351. {block:IfNotHorizontal}
  352. width:{select:Content Width};
  353. {select:Float};
  354. {/block:IfNotHorizontal}
  355. {block:IfHorizontal}
  356. height:{select:Content Width};
  357. max-height:100vh;
  358. vertical-align:middle;
  359. {/block:IfHorizontal}
  360.  
  361. {block:PermalinkPage}
  362. width:100%;
  363. {/block:PermalinkPage}
  364.  
  365. }
  366.  
  367.  
  368.  
  369.  
  370.  
  371. a, a:hover, a:visited {
  372. cursor:inherit;
  373. text-decoration:none;
  374. color:inherit;
  375. }
  376.  
  377. ul {
  378. list-style-type: none;
  379. }
  380.  
  381.  
  382. #nav {
  383. float: left;
  384. margin-top: 20px;
  385. position: fixed;
  386. z-index:1000;
  387. right:0px;
  388. margin-right:auto;
  389. position:fixed;
  390. }
  391.  
  392. #nav a {
  393. text-decoration: none;
  394. font-size: 15px;
  395. line-height: 25px;
  396. color: #595959;
  397. }
  398.  
  399. #nav a:hover {
  400. color: #393939;
  401. }
  402.  
  403. #nav a:active {
  404. color: #151515;
  405. }
  406.  
  407.  
  408. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  409. #infscr-loading {display:none;}
  410. .navigation {display:none!important;}
  411.  
  412.  
  413.  
  414. .isotope-item {
  415. z-index: 2;
  416. }
  417.  
  418. .isotope-hidden.isotope-item {
  419. pointer-events: none;
  420. z-index: 1;
  421. }
  422.  
  423. .isotope,
  424. .isotope .isotope-item {
  425. /* change duration value to whatever you like */
  426. -webkit-transition-duration: 0.8s;
  427. -moz-transition-duration: 0.8s;
  428. transition-duration: 0.8s;
  429. }
  430.  
  431. .isotope {
  432. -webkit-transition-property: height, width;
  433. -moz-transition-property: height, width;
  434. transition-property: height, width;
  435. }
  436.  
  437. .isotope .isotope-item {
  438. -webkit-transition-property: -webkit-transform, opacity;
  439. -moz-transition-property: -moz-transform, opacity;
  440. transition-property: transform, opacity;
  441. }
  442.  
  443.  
  444.  
  445. .box {
  446. cursor:inherit;
  447. margin-bottom:{text:Gutter Width}px;
  448. font-family:'{text:Body Font}';
  449. font-size:10px;
  450. {block:IfNotHorizontal}
  451. float: left;
  452. width:{select:Post Width};
  453. {/block:IfNotHorizontal}
  454.  
  455. {block:IfHorizontal}
  456. width:400px;
  457. {/block:IfHorizontal}
  458.  
  459.  
  460. {block:IfFade}
  461. opacity:{select:Fade Opacity};
  462. -webkit-transition-duration: 0.8s;
  463. -moz-transition-duration: 0.8s;
  464. transition-duration: 0.8s;
  465. {/block:IfFade}
  466.  
  467. }
  468.  
  469.  
  470.  
  471. .box:hover {
  472. {block:IfFade}
  473. opacity:1.0;
  474. -webkit-transition-duration: 0.8s;
  475. -moz-transition-duration: 0.8s;
  476. transition-duration: 0.8s;
  477. {/block:IfFade}
  478. }
  479.  
  480.  
  481. .text {
  482. height: 50vh;
  483. display:block;
  484. text-overflow: ellipsis;
  485. -o-text-overflow: ellipsis;
  486. -ms-text-overflow: ellipsis;
  487. overflow: hidden;
  488. white-space: nowrap;
  489. }
  490.  
  491.  
  492. .permalink-post {
  493. background:yellow;
  494. font-size:1.3vh;
  495. height:50vh;
  496. text-align:center;
  497. /* position: relative;
  498. top: 50%;
  499. transform: translateY(-50%); to vertial align*/
  500.  
  501. }
  502.  
  503. .permalink-post .permalink-text {
  504. height: 100%;
  505. display:block;
  506. text-overflow: ellipsis;
  507. -o-text-overflow: ellipsis;
  508. -ms-text-overflow: ellipsis;
  509. overflow: scroll;
  510. white-space: nowrap;
  511. }
  512.  
  513.  
  514. /* note the :first-chile thing doesn't work even with the img: specifier*/
  515. .permalink-photoset {background:cyan; width:100%; height:100%;}
  516. .permalink-photoset img { transform:translateX(-50%); position:absolute; height:50vh; width:auto; max-width:60vw; overflow-x:visible;
  517. counter-increment:number;
  518. -webkit-transition:opacity .6s ease-in-out;
  519. transition:opacity .6s ease-in-out;
  520. opacity:0; z-index:0;}
  521. .permalink-photoset img:first-child{ opacity:1; z-index:1;}
  522. .opaque {opacity:1.0; }
  523.  
  524.  
  525. .photo {
  526.  
  527. }
  528.  
  529. .photoset{
  530.  
  531. }
  532.  
  533.  
  534.  
  535. {block:IfHorizontal}
  536. {block:ifStackPhotoset}
  537. .photoset-wrap {}
  538. .photoset-wrap img { display: none; width:100%; }
  539. .photoset-wrap img:first-child { display: block; width:100%; }
  540. {/block:ifStackPhotoset}
  541. {/block:IfHorizontal}
  542.  
  543. {block:ifStackPhotoset}
  544. .photoset-wrap {}
  545. .photoset-wrap img { display: none; width:100%; }
  546. .photoset-wrap img:first-child { display: block; width:100%; }
  547. {/block:ifStackPhotoset}
  548.  
  549. .photocount, .photocount a {
  550. right:0px;
  551. bottom:0px;
  552. position:absolute;
  553. font-size:10px;
  554. font-family:;
  555. color:{color:Background};
  556. }
  557.  
  558.  
  559.  
  560.  
  561.  
  562. #vignette, .vignette{opacity:0!important;}.lightbox-caption {color:#000;}
  563. #tumblr_lightbox,.tmblr-lightbox{background:rgba(255,255,255,0.8)!important;}
  564. #tumblr_lightbox img, .lightbox-image {box-shadow:none!important;border-radius:0px!important;}
  565.  
  566.  
  567.  
  568.  
  569.  
  570. .pagination {
  571. padding-top:5vh;
  572. height:20vh;
  573. width:100vw;
  574. bottom:0px;
  575. color:black;
  576. }
  577.  
  578. .load-more {
  579. font-family:'{text:Link Font}';
  580. left:50vw;
  581. margin-top:7vh;
  582. border:0;
  583. padding-top:2vh;
  584. padding-bottom:2vh;
  585. padding-left:10vw;
  586. padding-right:10vw;
  587. background:#f0f0f0;
  588. color:#9f9f9f;
  589. -webkit-transition-duration: 0.8s;
  590. -moz-transition-duration: 0.8s;
  591. transition-duration: 0.8s;
  592.  
  593. }
  594.  
  595.  
  596. .load-more:hover {
  597. background:{color:Links};
  598. color:{color:Background};
  599. -webkit-transition-duration: 0.8s;
  600. -moz-transition-duration: 0.8s;
  601. transition-duration: 0.8s;
  602. }
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611. {block:ifSidebar}
  612. {/block:ifSidebar}
  613. .sidebar {
  614. {select:SideFloat}:0px;
  615. float:{select:SideFloat};
  616. width:calc(100% - {select:Content Width} );
  617. background-color:cyan;
  618.  
  619. }
  620.  
  621.  
  622.  
  623.  
  624. .portrait {
  625. vertical-align:middle;
  626. border-radius:35px;
  627. opacity:0.7;
  628. -webkit-transition-duration: 0.8s;
  629. -moz-transition-duration: 0.8s;
  630. transition-duration: 0.8s;
  631. }
  632.  
  633.  
  634. .portrait:hover {
  635. opacity:1.0;
  636. border-radius:0px;
  637. -webkit-transition-duration: 0.8s;
  638. -moz-transition-duration: 0.8s;
  639. transition-duration: 0.8s;
  640.  
  641.  
  642. }
  643.  
  644.  
  645.  
  646. </style>
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657. </head>
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670. <body>
  671.  
  672.  
  673.  
  674.  
  675. {block:IfHeadSpace}
  676. <div class="headspace"><a href="{BlogURL}" class="header">{Title}</a></div>
  677. {/block:IfHeadSpace}
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684. <div id="content">
  685. {block:Posts}
  686.  
  687. {block:IndexPage}
  688.  
  689. {block:Text}
  690. <div class="box text">
  691. <u><a href="{Permalink}">{Title}</a></u>
  692. {Body}
  693. </div>
  694. {/block:Text}
  695.  
  696.  
  697.  
  698. {block:Photo}
  699.  
  700. <a href="#">
  701. <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" />
  702. </a>
  703. {/block:Photo}
  704.  
  705.  
  706. {block:Photoset}
  707. <div class="box">
  708.  
  709. {block:ifNotStackPhotoset}
  710. <!--preset code to abide by pxu -->
  711. <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">
  712.  
  713. {block:Photos}
  714. <div class="photo-data">
  715. <div class="pxu-photo">
  716. <img src="{PhotoURL-HighRes}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}">
  717. </div>
  718. <a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}">
  719. </a>
  720. </div>
  721. {/block:Photos}
  722. </div>
  723. {block:ifNotStackPhotoset}
  724.  
  725.  
  726.  
  727. {block:ifStackPhotoset}
  728. {block:IndexPage}
  729. <div class="photoset-wrap">
  730. {block:Photos}
  731. <!-- <a href="#"> for some reason loads all images in photoset-->
  732. <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" />
  733. <!-- </a> -->
  734.  
  735. {/block:Photos}
  736. <div class="photocount"><a href="{Permalink}">{PhotoCount}</a></div>
  737. </div>
  738. {/block:IndexPage}
  739. {/block:ifStackPhotoset}
  740.  
  741.  
  742.  
  743.  
  744. {block:ifCaptions}
  745. {Caption}
  746. {/block:ifCaptions}
  747.  
  748. </div>
  749. {/block:Photoset}
  750.  
  751. {/block:IndexPage}
  752.  
  753.  
  754.  
  755.  
  756. {block:PermalinkPage}
  757.  
  758.  
  759. <div class="permalink-post">
  760.  
  761. {block:Text}
  762. <div class="permalink-text">
  763. {Title}
  764. {Body}
  765. </div>
  766. {/block:Text}
  767.  
  768. {block:Photo}
  769. <img id ="{PhotoCount}" src="{PhotoURL-HighRes}" style="width:auto; height:100%; margin:auto"/>
  770. {block:Photo}
  771.  
  772. {block:Photoset}
  773. <div class="permalink-photoset" >
  774. {block:Photos}
  775. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}"
  776.  
  777. onClick="
  778. var $next = $(this).next('img');
  779. $(this).css('opacity','0');
  780. $(this).css('z-index','0');
  781. $next.css('opacity','1');
  782. $next.css('z-index','1');
  783.  
  784.  
  785.  
  786. "/>
  787.  
  788.  
  789. <!--
  790.  
  791.  
  792. var $next = $(this).next('img');
  793. if ($next.length != 0) {
  794. $(this).next('.photo').addClass('active');
  795. }
  796. else {
  797. $(this).parent('.post').find('.photo:first-child').addClass('active');
  798.  
  799.  
  800. -->
  801.  
  802. {/block:Photos}
  803. </div>
  804. <!-- <div style="width:300px; margin:auto;">{Photoset}</div> whole photoset-->
  805.  
  806. {block:Photoset}
  807.  
  808. </div>
  809.  
  810.  
  811. {/block:PermalinkPage}
  812.  
  813.  
  814.  
  815.  
  816. {/block:Posts}
  817. </div>
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833. {block:ifSidebar}
  834. {block:IndexPage}
  835. <div class="sidebar">
  836.  
  837. <center><img src="{PortraitURL-64}" class="portrait" /></center>
  838.  
  839. </div>
  840. {block:IndexPage}
  841. {/block:ifSidebar}
  842.  
  843.  
  844.  
  845. <div class="navigation">
  846. {block:Pagination}
  847. {block:NextPage}
  848. <p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>
  849. {/block:NextPage}
  850. {block:PreviousPage}
  851. <a style="float:left" href="{PreviousPage}">? Newer</a></p>
  852. {/block:PreviousPage}
  853. {/block:Pagination}
  854. </div>
  855.  
  856.  
  857. {block:ifManualInfiniteScroll}
  858. {block:Pagination}
  859. <div class="pagination">
  860. <center><button class="load-more">load more</button></center>
  861. </div>
  862. {/block:Pagination}
  863. {/block:ifManualInfiniteScroll}
  864.  
  865.  
  866.  
  867. {block:PermalinkPage}
  868. {block:PermalinkPagination}
  869. {block:PreviousPost} <a href="{PreviousPost}" style="float:right; right:0px; bottom:0px; position:fixed;"> Older </a>{/block:PreviousPost}
  870. {block:NextPost}<a href="{NextPost}" style="float:left; left:0px; bottom:0px; position:fixed;">Newer</a> {/block:NextPost}
  871. {/block:PermalinkPagination}
  872. {block:PermalinkPage}
  873.  
  874.  
  875.  
  876. </body>
  877. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement