Advertisement
yLii

Infinite Isotope 35

Jan 15th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.86 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. {block:PermalinkPage}
  152. <script> //permalink page photoset carousel
  153. $(window).keydown(function(event){
  154.  
  155. var $pic = document.getElementById('counter');
  156. var $prev = $pic.prev('img');
  157. var $next = $pic.next('img');
  158.  
  159. if (event.which == 37) {
  160. // left arrow; go back
  161. $('.permalink-photoset img').css('opacity','0');
  162. $('.permalink-photoset img').css('z-index','0');
  163.  
  164.  
  165. $prev.css('opacity','0.5');
  166. $prev.css('z-index','1');
  167.  
  168.  
  169.  
  170. /* if ($prev.length == 0) {
  171. $('.permalink-photoset img').parent().find('img:last-child').css('opacity','1');
  172. $('.permalink-photoset img').parent().find('img:first-child').css('z-index','1');
  173. }; */
  174. };
  175.  
  176. /* if (event.which == 39) { //right arrow
  177. $('.permalink-photoset img').css('opacity','0');
  178. $('.permalink-photoset img').css('z-index','0');
  179. $next.css('opacity','1');
  180. $next.css('z-index','1');
  181. if ($next.length == 0) {
  182. $('.permalink-photoset img').parent().find('img:last-child').css('opacity','1');
  183. $('.permalink-photoset img').parent().find('img:last-child').css('z-index','1');
  184. };
  185. }; */
  186.  
  187.  
  188. });
  189.  
  190. </script>
  191. {/block:PermalinkPage}
  192.  
  193.  
  194.  
  195. <meta name="image:Background" content="" />
  196. <meta name="image:Lollipop Background" content="" />
  197. <meta name="image:Quote Background" content="" />
  198. <meta name="image:HeaderBackground" content="" />
  199.  
  200. <meta name="color:Background" content="#ffffff" />
  201. <meta name="color:Lightbox Background" content="#fff" />
  202. <meta name="color:Links" content="#619251" />
  203. <meta name="color:Text highlight" content="#d83e5c" />
  204. <meta name="color:Lollipop" content="#000000" />
  205. <meta name="color:Lollipop Hover" content="#b7512e" />
  206. <meta name="color:Hover" content="#b7512e" />
  207. <meta name="color:Scrollbar" content="#fed3f2" />
  208.  
  209. <meta name="font:Header Font" content="Arial" />
  210.  
  211.  
  212.  
  213.  
  214. <meta name="if:Captions" content="0" />
  215. <meta name="if:Fade" content="1" />
  216. <meta name="if:Head Space" content="1" />
  217. <meta name="if:Horizontal" content="0" />
  218. <meta name="if:Infinite Scroll" content="1" />
  219. <meta name="if:Manual Infinite Scroll" content="1" />
  220. <meta name="if:Masonry Horizontal" content="0" />
  221. <meta name="if:Sidebar" content="0" />
  222. <meta name="if:Stack Photoset" content="0" />
  223.  
  224.  
  225. <meta name="select:Content Width" content="30%" />
  226. <meta name="select:Content Width" content="40%" />
  227. <meta name="select:Content Width" content="50%" />
  228. <meta name="select:Content Width" content="60%" />
  229. <meta name="select:Content Width" content="70%" />
  230. <meta name="select:Content Width" content="80%" />
  231. <meta name="select:Content Width" content="90%" />
  232. <meta name="select:Content Width" content="100%" />
  233.  
  234.  
  235. <meta name="select:Fade Opacity" content="0.1" />
  236. <meta name="select:Fade Opacity" content="0.2" />
  237. <meta name="select:Fade Opacity" content="0.3" />
  238. <meta name="select:Fade Opacity" content="0.4" />
  239. <meta name="select:Fade Opacity" content="0.5" />
  240. <meta name="select:Fade Opacity" content="0.6" />
  241. <meta name="select:Fade Opacity" content="0.7" />
  242. <meta name="select:Fade Opacity" content="0.8" />
  243. <meta name="select:Fade Opacity" content="0.9" />
  244. <meta name="select:Fade Opacity" content="1.0" />
  245.  
  246. <meta name="select:Float" content="margin:auto" title="Align Center" />
  247. <meta name="select:Float" content="float:left" title="Align Left" />
  248. <meta name="select:Float" content="float:right" title="Align Right" />
  249.  
  250.  
  251.  
  252.  
  253. <meta name="select:SideFloat" content="left" title="Left Sidebar" />
  254. <meta name="select:SideFloat" content="right" title="Right Sidebar" />
  255.  
  256.  
  257. <meta name="select:Layout Type" content="cellsByColumn" title="Cells by Column" />
  258. <meta name="select:Layout Type" content="cellsByRow" title="Cells by Row" />
  259. <meta name="select:Layout Type" content="fitColumns" title="Fit Columns" />
  260. <meta name="select:Layout Type" content="fitRows" title="Fit Rows" />
  261. <meta name="select:Layout Type" content="horiz" title="Horizontal" />
  262. <meta name="select:Layout Type" content="masonry" title="Masonry" />
  263. <meta name="select:Layout Type" content="masonryHorizontal" title="Masonry Horizontal" />
  264. <meta name="select:Layout Type" content="vertical" title="Vertical" />
  265.  
  266.  
  267.  
  268.  
  269. <!--Post Width in relation to Content Width -->
  270. <meta name="select:Post Width" content="25%" />
  271. <meta name="select:Post Width" content="30%" />
  272. <meta name="select:Post Width" content="32%" />
  273. <meta name="select:Post Width" content="32.75%" />
  274. <meta name="select:Post Width" content="33.33%" />
  275. <meta name="select:Post Width" content="40%" />
  276. <meta name="select:Post Width" content="50%" />
  277. <meta name="select:Post Width" content="60%" />
  278. <meta name="select:Post Width" content="70%" />
  279. <meta name="select:Post Width" content="75%" />
  280. <meta name="select:Post Width" content="80%" />
  281. <meta name="select:Post Width" content="90%" />
  282. <meta name="select:Post Width" content="100%" />
  283.  
  284. <meta name="text:Body Font" content="Open Sans" />
  285. <meta name="text:Header Font" content="Open Sans"/>
  286. <meta name="text:Link Font" content="Open Sans" />
  287. <meta name="text:Gutter Width" content="0" />
  288.  
  289.  
  290. <!--fonts-->
  291. <link href='http://fonts.googleapis.com/css?family={text:Body Font}' rel='stylesheet' type='text/css'>
  292. <link href='http://fonts.googleapis.com/css?family={text:Header Font}' rel='stylesheet' type='text/css'>
  293. <link href='http://fonts.googleapis.com/css?family={text:Link Font}' rel='stylesheet' type='text/css'>
  294.  
  295.  
  296.  
  297.  
  298.  
  299. <link rel="shortcut icon" href="{Favicon}">
  300. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  301. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  302.  
  303.  
  304.  
  305.  
  306.  
  307. <style type="text/css">
  308. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  309. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  310. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  311. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  312.  
  313. @font-face {font-family:"Jellyka";src:url('http://static.tumblr.com/iuvoef7/mNnojgowh/jellyka_bees_antique_handwriting.ttf');}
  314. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  315.  
  316.  
  317. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  318. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  326. ::-webkit-scrollbar-thumb { background-color: {color:Scrollbar}; -webkit-border-radius: 2ex; }
  327. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  328. ::-moz-scrollbar-thumb { background-color: {color:Scrollbar}; -moz-border-radius: 2ex; }
  329. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  330. ::-o-scrollbar-thumb { background-color: {color:Scrollbar}; -o-border-radius: 2ex; }
  331.  
  332. {block:PermalinkPage}
  333. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  334. ::-webkit-scrollbar-thumb { background-color: {color:Background}; -webkit-border-radius: 2ex; }
  335. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  336. ::-moz-scrollbar-thumb { background-color: {color:Background}; -moz-border-radius: 2ex; }
  337. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  338. ::-o-scrollbar-thumb { background-color: {color:Background}; -o-border-radius: 2ex; }
  339. {block:PermalinkPage}
  340.  
  341.  
  342.  
  343.  
  344. ::selection {background: #d83e5c;color: #fff;}
  345. ::-moz-selection {background: #d83e5c;color: #fff;}
  346.  
  347.  
  348.  
  349.  
  350. html {
  351. width:100%;
  352. }
  353.  
  354.  
  355.  
  356. body {
  357. cursor:url(''), crosshair;
  358. background: {color:Background};
  359. width:100%;
  360. font-family:'{text:Body Font}';
  361.  
  362.  
  363. {block:PermalinkPage}
  364. height:100vh;
  365. overflow:hidden;
  366. {/block:PermalinkPage}
  367.  
  368. }
  369.  
  370.  
  371. {block:IfHeadSpace}
  372. .headspace{
  373. width:100%;
  374. height:21vh;
  375. padding-top:10vh;
  376. text-align:center;
  377. vertical-align:middle;
  378. font-size:50px;
  379. {/block:IfHeadSpace}
  380. position:fixed;
  381. font-family:{text:Header Font};
  382.  
  383.  
  384.  
  385. }
  386.  
  387. .header {
  388.  
  389. }
  390.  
  391.  
  392. #content {
  393. {block:IfNotHorizontal}
  394. width:{select:Content Width};
  395. {select:Float};
  396. {/block:IfNotHorizontal}
  397. {block:IfHorizontal}
  398. height:{select:Content Width};
  399. max-height:100vh;
  400. vertical-align:middle;
  401.  
  402. position: relative;
  403. top: 35vh;
  404. transform: translateY(-50%);
  405. {/block:IfHorizontal}
  406.  
  407. {block:PermalinkPage}
  408. width:100%;
  409. {/block:PermalinkPage}
  410.  
  411. }
  412.  
  413.  
  414.  
  415.  
  416.  
  417. a, a:hover, a:visited {
  418. cursor:inherit;
  419. text-decoration:none;
  420. color:inherit;
  421. }
  422.  
  423. ul {
  424. list-style-type: none;
  425. }
  426.  
  427.  
  428. #nav {
  429. float: left;
  430. margin-top: 20px;
  431. position: fixed;
  432. z-index:1000;
  433. right:0px;
  434. margin-right:auto;
  435. position:fixed;
  436. }
  437.  
  438. #nav a {
  439. text-decoration: none;
  440. font-size: 15px;
  441. line-height: 25px;
  442. color: #595959;
  443. }
  444.  
  445. #nav a:hover {
  446. color: #393939;
  447. }
  448.  
  449. #nav a:active {
  450. color: #151515;
  451. }
  452.  
  453.  
  454. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  455. #infscr-loading {display:none;}
  456. .navigation {display:none!important;}
  457.  
  458.  
  459.  
  460. .isotope-item {
  461. z-index: 2;
  462. }
  463.  
  464. .isotope-hidden.isotope-item {
  465. pointer-events: none;
  466. z-index: 1;
  467. }
  468.  
  469. .isotope,
  470. .isotope .isotope-item {
  471. /* change duration value to whatever you like */
  472. -webkit-transition-duration: 0.8s;
  473. -moz-transition-duration: 0.8s;
  474. transition-duration: 0.8s;
  475. }
  476.  
  477. .isotope {
  478. -webkit-transition-property: height, width;
  479. -moz-transition-property: height, width;
  480. transition-property: height, width;
  481. }
  482.  
  483. .isotope .isotope-item {
  484. -webkit-transition-property: -webkit-transform, opacity;
  485. -moz-transition-property: -moz-transform, opacity;
  486. transition-property: transform, opacity;
  487. }
  488.  
  489.  
  490.  
  491. .box {
  492. cursor:inherit;
  493. margin-bottom:{text:Gutter Width}px;
  494. font-family:'{text:Body Font}';
  495. font-size:10px;
  496. {block:IfNotHorizontal}
  497. float: left;
  498. width:{select:Post Width};
  499. {/block:IfNotHorizontal}
  500.  
  501. {block:IfHorizontal}
  502. width:600px;
  503. {/block:IfHorizontal}
  504.  
  505.  
  506. {block:IfFade}
  507. opacity:{select:Fade Opacity};
  508. -webkit-transition-duration: 0.8s;
  509. -moz-transition-duration: 0.8s;
  510. transition-duration: 0.8s;
  511. {/block:IfFade}
  512.  
  513. }
  514.  
  515.  
  516.  
  517. .box:hover {
  518. {block:IfFade}
  519. opacity:1.0;
  520. -webkit-transition-duration: 0.8s;
  521. -moz-transition-duration: 0.8s;
  522. transition-duration: 0.8s;
  523. {/block:IfFade}
  524. }
  525.  
  526.  
  527. .text {
  528. height: 50vh;
  529. display:block;
  530. text-overflow: ellipsis;
  531. -o-text-overflow: ellipsis;
  532. -ms-text-overflow: ellipsis;
  533. overflow: hidden;
  534. white-space: nowrap;
  535. }
  536.  
  537. .panorama {
  538.  
  539. }
  540.  
  541.  
  542. .permalink-post {
  543. background:yellow;
  544. font-size:1.3vh;
  545. height:50vh;
  546. text-align:center;
  547. /* position: relative;
  548. top: 50%;
  549. transform: translateY(-50%); to vertial align*/
  550.  
  551. }
  552.  
  553. .permalink-post .permalink-text {
  554. height: 100%;
  555. display:block;
  556. text-overflow: ellipsis;
  557. -o-text-overflow: ellipsis;
  558. -ms-text-overflow: ellipsis;
  559. overflow: scroll;
  560. white-space: nowrap;
  561. }
  562.  
  563.  
  564. /* note the :first-chile thing doesn't work even with the img: specifier*/
  565. .permalink-photoset {background:cyan; width:100%; height:100%;}
  566. .permalink-photoset img { transform:translateX(-50%); position:absolute; height:50vh; width:auto; max-width:60vw; overflow-x:visible;
  567. counter-increment:number;
  568. -webkit-transition:opacity .6s ease-in-out;
  569. transition:opacity .6s ease-in-out;
  570. opacity:0; z-index:0;}
  571. .permalink-photoset img:first-child{opacity:1; z-index:1; }
  572. .permalink-photoset img .active {opacity:1; z-index:1; }
  573. .permalink-photoset img #counter { content:counter(number); }
  574.  
  575. .photo {
  576.  
  577. }
  578.  
  579. .photoset{
  580.  
  581. }
  582.  
  583.  
  584.  
  585. {block:IfHorizontal}
  586. {block:ifStackPhotoset}
  587. .photoset-wrap {}
  588. .photoset-wrap img { display: none; width:100%; }
  589. .photoset-wrap img:first-child { display: block; width:100%; }
  590. {/block:ifStackPhotoset}
  591. {/block:IfHorizontal}
  592.  
  593. {block:ifStackPhotoset}
  594. .photoset-wrap {}
  595. .photoset-wrap img { display: none; width:100%; }
  596. .photoset-wrap img:first-child { display: block; width:100%; }
  597. {/block:ifStackPhotoset}
  598.  
  599. .photocount, .photocount a {
  600. right:0px;
  601. bottom:0px;
  602. position:absolute;
  603. font-size:10px;
  604. font-family:;
  605. color:{color:Background};
  606. }
  607.  
  608.  
  609.  
  610.  
  611.  
  612. #vignette, .vignette{opacity:0!important;}.lightbox-caption {color:#000;}
  613. #tumblr_lightbox,.tmblr-lightbox{background:rgba(255,255,255,0.8)!important;}
  614. #tumblr_lightbox img, .lightbox-image {box-shadow:none!important;border-radius:0px!important;}
  615.  
  616.  
  617.  
  618.  
  619.  
  620. .pagination {
  621. padding-top:5vh;
  622. height:20vh;
  623. width:100vw;
  624. bottom:0px;
  625. color:black;
  626. }
  627.  
  628. .load-more {
  629. font-family:'{text:Link Font}';
  630. left:50vw;
  631. margin-top:7vh;
  632. border:0;
  633. padding-top:2vh;
  634. padding-bottom:2vh;
  635. padding-left:10vw;
  636. padding-right:10vw;
  637. background:#f0f0f0;
  638. color:#9f9f9f;
  639. -webkit-transition-duration: 0.8s;
  640. -moz-transition-duration: 0.8s;
  641. transition-duration: 0.8s;
  642.  
  643. }
  644.  
  645.  
  646. .load-more:hover {
  647. background:{color:Links};
  648. color:{color:Background};
  649. -webkit-transition-duration: 0.8s;
  650. -moz-transition-duration: 0.8s;
  651. transition-duration: 0.8s;
  652. }
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661. {block:ifSidebar}
  662. {/block:ifSidebar}
  663. .sidebar {
  664. {select:SideFloat}:0px;
  665. float:{select:SideFloat};
  666. width:calc(100% - {select:Content Width} );
  667. background-color:cyan;
  668.  
  669. }
  670.  
  671.  
  672.  
  673.  
  674. .portrait {
  675. vertical-align:middle;
  676. border-radius:35px;
  677. opacity:0.7;
  678. -webkit-transition-duration: 0.8s;
  679. -moz-transition-duration: 0.8s;
  680. transition-duration: 0.8s;
  681. }
  682.  
  683.  
  684. .portrait:hover {
  685. opacity:1.0;
  686. border-radius:0px;
  687. -webkit-transition-duration: 0.8s;
  688. -moz-transition-duration: 0.8s;
  689. transition-duration: 0.8s;
  690.  
  691.  
  692. }
  693.  
  694.  
  695.  
  696. </style>
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707. </head>
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720. <body>
  721.  
  722.  
  723.  
  724.  
  725. {block:IfHeadSpace}
  726. <div class="headspace"><a href="{BlogURL}" class="header">{Title}</a></div>
  727. {/block:IfHeadSpace}
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734. <div id="content">
  735. {block:Posts}
  736.  
  737. {block:IndexPage}
  738.  
  739. {block:Text}
  740. <div class="box text">
  741. <u><a href="{Permalink}">{Title}</a></u>
  742. {Body}
  743. </div>
  744. {/block:Text}
  745.  
  746.  
  747.  
  748. {block:Photo}
  749.  
  750. <a href="#">
  751. <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" />
  752. </a>
  753. {/block:Photo}
  754.  
  755.  
  756. {block:Photoset}
  757. <div class="box">
  758.  
  759. {block:ifNotStackPhotoset}
  760. <!--preset code to abide by pxu -->
  761. <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">
  762.  
  763. {block:Photos}
  764. <div class="photo-data">
  765. <div class="pxu-photo">
  766. <img src="{PhotoURL-HighRes}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}">
  767. </div>
  768. <a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}">
  769. </a>
  770. </div>
  771. {/block:Photos}
  772. </div>
  773. {block:ifNotStackPhotoset}
  774.  
  775.  
  776.  
  777. {block:ifStackPhotoset}
  778. {block:IndexPage}
  779. <div class="photoset-wrap">
  780. {block:Photos}
  781. <!-- <a href="#"> for some reason loads all images in photoset-->
  782. <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" />
  783. <!-- </a> -->
  784.  
  785. {/block:Photos}
  786. <div class="photocount"><a href="{Permalink}">{PhotoCount}</a></div>
  787. </div>
  788. {/block:IndexPage}
  789. {/block:ifStackPhotoset}
  790.  
  791.  
  792.  
  793.  
  794. {block:ifCaptions}
  795. {Caption}
  796. {/block:ifCaptions}
  797.  
  798. </div>
  799. {/block:Photoset}
  800.  
  801.  
  802.  
  803.  
  804. {block:Panorama}
  805. <a href="#">
  806. <img src="{PhotoURL-Panorama}" alt="{PhotoAlt}" class="box photo" onclick="Tumblr.Lightbox.init([{ width: {PhotoWidth-Panorama}, height: {PhotoHeight-Panorama}, low_res: '{PhotoURL-500}', high_res: '{PhotoURL-HighRes}' }]); $('body').toggleClass('tumblr_lightbox_active'); return false" />
  807. </a>
  808. {/block:Panorama}
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817. {/block:IndexPage}
  818.  
  819.  
  820. {block:PermalinkPage}
  821.  
  822.  
  823. <div class="permalink-post">
  824.  
  825. {block:Text}
  826. <div class="permalink-text">
  827. {Title}
  828. {Body}
  829. </div>
  830. {/block:Text}
  831.  
  832. {block:Photo}
  833. <img id ="{PhotoCount}" src="{PhotoURL-HighRes}" style="width:auto; height:100%; margin:auto"/>
  834. {block:Photo}
  835.  
  836. {block:Photoset}
  837. <div class="permalink-photoset" >
  838. {block:Photos}
  839. <img class="active" src="{PhotoURL-HighRes}" alt="{PhotoAlt}"
  840. id="counter"
  841. onClick="
  842.  
  843.  
  844. var $next = $(this).next('img');
  845. $(this).css('opacity','0');
  846. $(this).css('z-index','0');
  847. $next.css('opacity','1');
  848. $next.css('z-index','1');
  849. if ($next.length == 0) {
  850. $(this).parent().find('img:first-child').css('opacity','1');
  851. $(this).parent().find('img:first-child').css('z-index','1');
  852. };"
  853.  
  854. onkeydown="
  855.  
  856.  
  857. if (event.which == 37) {
  858. $(this).css('opacity','0');
  859. $(this).css('z-index','0');
  860. $prev.css('opacity','1');
  861. $prev.css('z-index','1');
  862. if ($prev.length == 0) {
  863. $(this).parent().find('img:last-child').css('opacity','1');
  864. $(this).parent().find('img:last-child').css('z-index','1');
  865. };
  866. };
  867.  
  868. if (event.which == 39) {
  869. var $next = $(this).next('img');
  870. $(this).css('opacity','0');
  871. $(this).css('z-index','0');
  872. $next.css('opacity','1');
  873. $next.css('z-index','1');
  874. if ($next.length == 0) {
  875. $(this).parent().find('img:first-child').css('opacity','1');
  876. $(this).parent().find('img:first-child').css('z-index','1');
  877. };
  878. };
  879.  
  880.  
  881.  
  882.  
  883. "
  884.  
  885. />
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892. <!--
  893.  
  894.  
  895. -->
  896.  
  897.  
  898.  
  899. {/block:Photos}
  900. </div>
  901. <!-- <div style="width:300px; margin:auto;">{Photoset}</div> whole photoset-->
  902.  
  903. {block:Photoset}
  904.  
  905. </div>
  906.  
  907.  
  908. {/block:PermalinkPage}
  909.  
  910.  
  911.  
  912.  
  913. {/block:Posts}
  914. </div>
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930. {block:ifSidebar}
  931. {block:IndexPage}
  932. <div class="sidebar">
  933.  
  934. <center><img src="{PortraitURL-64}" class="portrait" /></center>
  935.  
  936. </div>
  937. {block:IndexPage}
  938. {/block:ifSidebar}
  939.  
  940.  
  941.  
  942. <div class="navigation">
  943. {block:Pagination}
  944. {block:NextPage}
  945. <p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>
  946. {/block:NextPage}
  947. {block:PreviousPage}
  948. <a style="float:left" href="{PreviousPage}">? Newer</a></p>
  949. {/block:PreviousPage}
  950. {/block:Pagination}
  951. </div>
  952.  
  953.  
  954. {block:ifManualInfiniteScroll}
  955. {block:Pagination}
  956. <div class="pagination">
  957. <center><button class="load-more">load more</button></center>
  958. </div>
  959. {/block:Pagination}
  960. {/block:ifManualInfiniteScroll}
  961.  
  962.  
  963.  
  964. {block:PermalinkPage}
  965. {block:PermalinkPagination}
  966. {block:PreviousPost} <a href="{PreviousPost}" style="float:right; right:0px; bottom:0px; position:fixed;"> Older </a>{/block:PreviousPost}
  967. {block:NextPost}<a href="{NextPost}" style="float:left; left:0px; bottom:0px; position:fixed;">Newer</a> {/block:NextPost}
  968. {/block:PermalinkPagination}
  969. {block:PermalinkPage}
  970.  
  971.  
  972.  
  973. </body>
  974. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement