Advertisement
yLii

Infinite Isotope 34 (give up on key press?)

Jan 12th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.32 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. font-family:{text:Header Font};
  381.  
  382.  
  383.  
  384. }
  385.  
  386. .header {
  387.  
  388. }
  389.  
  390.  
  391. #content {
  392. {block:IfNotHorizontal}
  393. width:{select:Content Width};
  394. {select:Float};
  395. {/block:IfNotHorizontal}
  396. {block:IfHorizontal}
  397. height:{select:Content Width};
  398. max-height:100vh;
  399. vertical-align:middle;
  400. {/block:IfHorizontal}
  401.  
  402. {block:PermalinkPage}
  403. width:100%;
  404. {/block:PermalinkPage}
  405.  
  406. }
  407.  
  408.  
  409.  
  410.  
  411.  
  412. a, a:hover, a:visited {
  413. cursor:inherit;
  414. text-decoration:none;
  415. color:inherit;
  416. }
  417.  
  418. ul {
  419. list-style-type: none;
  420. }
  421.  
  422.  
  423. #nav {
  424. float: left;
  425. margin-top: 20px;
  426. position: fixed;
  427. z-index:1000;
  428. right:0px;
  429. margin-right:auto;
  430. position:fixed;
  431. }
  432.  
  433. #nav a {
  434. text-decoration: none;
  435. font-size: 15px;
  436. line-height: 25px;
  437. color: #595959;
  438. }
  439.  
  440. #nav a:hover {
  441. color: #393939;
  442. }
  443.  
  444. #nav a:active {
  445. color: #151515;
  446. }
  447.  
  448.  
  449. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  450. #infscr-loading {display:none;}
  451. .navigation {display:none!important;}
  452.  
  453.  
  454.  
  455. .isotope-item {
  456. z-index: 2;
  457. }
  458.  
  459. .isotope-hidden.isotope-item {
  460. pointer-events: none;
  461. z-index: 1;
  462. }
  463.  
  464. .isotope,
  465. .isotope .isotope-item {
  466. /* change duration value to whatever you like */
  467. -webkit-transition-duration: 0.8s;
  468. -moz-transition-duration: 0.8s;
  469. transition-duration: 0.8s;
  470. }
  471.  
  472. .isotope {
  473. -webkit-transition-property: height, width;
  474. -moz-transition-property: height, width;
  475. transition-property: height, width;
  476. }
  477.  
  478. .isotope .isotope-item {
  479. -webkit-transition-property: -webkit-transform, opacity;
  480. -moz-transition-property: -moz-transform, opacity;
  481. transition-property: transform, opacity;
  482. }
  483.  
  484.  
  485.  
  486. .box {
  487. cursor:inherit;
  488. margin-bottom:{text:Gutter Width}px;
  489. font-family:'{text:Body Font}';
  490. font-size:10px;
  491. {block:IfNotHorizontal}
  492. float: left;
  493. width:{select:Post Width};
  494. {/block:IfNotHorizontal}
  495.  
  496. {block:IfHorizontal}
  497. width:400px;
  498. {/block:IfHorizontal}
  499.  
  500.  
  501. {block:IfFade}
  502. opacity:{select:Fade Opacity};
  503. -webkit-transition-duration: 0.8s;
  504. -moz-transition-duration: 0.8s;
  505. transition-duration: 0.8s;
  506. {/block:IfFade}
  507.  
  508. }
  509.  
  510.  
  511.  
  512. .box:hover {
  513. {block:IfFade}
  514. opacity:1.0;
  515. -webkit-transition-duration: 0.8s;
  516. -moz-transition-duration: 0.8s;
  517. transition-duration: 0.8s;
  518. {/block:IfFade}
  519. }
  520.  
  521.  
  522. .text {
  523. height: 50vh;
  524. display:block;
  525. text-overflow: ellipsis;
  526. -o-text-overflow: ellipsis;
  527. -ms-text-overflow: ellipsis;
  528. overflow: hidden;
  529. white-space: nowrap;
  530. }
  531.  
  532.  
  533. .permalink-post {
  534. background:yellow;
  535. font-size:1.3vh;
  536. height:50vh;
  537. text-align:center;
  538. /* position: relative;
  539. top: 50%;
  540. transform: translateY(-50%); to vertial align*/
  541.  
  542. }
  543.  
  544. .permalink-post .permalink-text {
  545. height: 100%;
  546. display:block;
  547. text-overflow: ellipsis;
  548. -o-text-overflow: ellipsis;
  549. -ms-text-overflow: ellipsis;
  550. overflow: scroll;
  551. white-space: nowrap;
  552. }
  553.  
  554.  
  555. /* note the :first-chile thing doesn't work even with the img: specifier*/
  556. .permalink-photoset {background:cyan; width:100%; height:100%;}
  557. .permalink-photoset img { transform:translateX(-50%); position:absolute; height:50vh; width:auto; max-width:60vw; overflow-x:visible;
  558. counter-increment:number;
  559. -webkit-transition:opacity .6s ease-in-out;
  560. transition:opacity .6s ease-in-out;
  561. opacity:0; z-index:0;}
  562. .permalink-photoset img:first-child{opacity:1; z-index:1; }
  563. .permalink-photoset img .active {opacity:1; z-index:1; }
  564. .permalink-photoset img #counter { content:counter(number); }
  565.  
  566. .photo {
  567.  
  568. }
  569.  
  570. .photoset{
  571.  
  572. }
  573.  
  574.  
  575.  
  576. {block:IfHorizontal}
  577. {block:ifStackPhotoset}
  578. .photoset-wrap {}
  579. .photoset-wrap img { display: none; width:100%; }
  580. .photoset-wrap img:first-child { display: block; width:100%; }
  581. {/block:ifStackPhotoset}
  582. {/block:IfHorizontal}
  583.  
  584. {block:ifStackPhotoset}
  585. .photoset-wrap {}
  586. .photoset-wrap img { display: none; width:100%; }
  587. .photoset-wrap img:first-child { display: block; width:100%; }
  588. {/block:ifStackPhotoset}
  589.  
  590. .photocount, .photocount a {
  591. right:0px;
  592. bottom:0px;
  593. position:absolute;
  594. font-size:10px;
  595. font-family:;
  596. color:{color:Background};
  597. }
  598.  
  599.  
  600.  
  601.  
  602.  
  603. #vignette, .vignette{opacity:0!important;}.lightbox-caption {color:#000;}
  604. #tumblr_lightbox,.tmblr-lightbox{background:rgba(255,255,255,0.8)!important;}
  605. #tumblr_lightbox img, .lightbox-image {box-shadow:none!important;border-radius:0px!important;}
  606.  
  607.  
  608.  
  609.  
  610.  
  611. .pagination {
  612. padding-top:5vh;
  613. height:20vh;
  614. width:100vw;
  615. bottom:0px;
  616. color:black;
  617. }
  618.  
  619. .load-more {
  620. font-family:'{text:Link Font}';
  621. left:50vw;
  622. margin-top:7vh;
  623. border:0;
  624. padding-top:2vh;
  625. padding-bottom:2vh;
  626. padding-left:10vw;
  627. padding-right:10vw;
  628. background:#f0f0f0;
  629. color:#9f9f9f;
  630. -webkit-transition-duration: 0.8s;
  631. -moz-transition-duration: 0.8s;
  632. transition-duration: 0.8s;
  633.  
  634. }
  635.  
  636.  
  637. .load-more:hover {
  638. background:{color:Links};
  639. color:{color:Background};
  640. -webkit-transition-duration: 0.8s;
  641. -moz-transition-duration: 0.8s;
  642. transition-duration: 0.8s;
  643. }
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652. {block:ifSidebar}
  653. {/block:ifSidebar}
  654. .sidebar {
  655. {select:SideFloat}:0px;
  656. float:{select:SideFloat};
  657. width:calc(100% - {select:Content Width} );
  658. background-color:cyan;
  659.  
  660. }
  661.  
  662.  
  663.  
  664.  
  665. .portrait {
  666. vertical-align:middle;
  667. border-radius:35px;
  668. opacity:0.7;
  669. -webkit-transition-duration: 0.8s;
  670. -moz-transition-duration: 0.8s;
  671. transition-duration: 0.8s;
  672. }
  673.  
  674.  
  675. .portrait:hover {
  676. opacity:1.0;
  677. border-radius:0px;
  678. -webkit-transition-duration: 0.8s;
  679. -moz-transition-duration: 0.8s;
  680. transition-duration: 0.8s;
  681.  
  682.  
  683. }
  684.  
  685.  
  686.  
  687. </style>
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698. </head>
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711. <body>
  712.  
  713.  
  714.  
  715.  
  716. {block:IfHeadSpace}
  717. <div class="headspace"><a href="{BlogURL}" class="header">{Title}</a></div>
  718. {/block:IfHeadSpace}
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725. <div id="content">
  726. {block:Posts}
  727.  
  728. {block:IndexPage}
  729.  
  730. {block:Text}
  731. <div class="box text">
  732. <u><a href="{Permalink}">{Title}</a></u>
  733. {Body}
  734. </div>
  735. {/block:Text}
  736.  
  737.  
  738.  
  739. {block:Photo}
  740.  
  741. <a href="#">
  742. <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" />
  743. </a>
  744. {/block:Photo}
  745.  
  746.  
  747. {block:Photoset}
  748. <div class="box">
  749.  
  750. {block:ifNotStackPhotoset}
  751. <!--preset code to abide by pxu -->
  752. <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">
  753.  
  754. {block:Photos}
  755. <div class="photo-data">
  756. <div class="pxu-photo">
  757. <img src="{PhotoURL-HighRes}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}">
  758. </div>
  759. <a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}">
  760. </a>
  761. </div>
  762. {/block:Photos}
  763. </div>
  764. {block:ifNotStackPhotoset}
  765.  
  766.  
  767.  
  768. {block:ifStackPhotoset}
  769. {block:IndexPage}
  770. <div class="photoset-wrap">
  771. {block:Photos}
  772. <!-- <a href="#"> for some reason loads all images in photoset-->
  773. <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" />
  774. <!-- </a> -->
  775.  
  776. {/block:Photos}
  777. <div class="photocount"><a href="{Permalink}">{PhotoCount}</a></div>
  778. </div>
  779. {/block:IndexPage}
  780. {/block:ifStackPhotoset}
  781.  
  782.  
  783.  
  784.  
  785. {block:ifCaptions}
  786. {Caption}
  787. {/block:ifCaptions}
  788.  
  789. </div>
  790. {/block:Photoset}
  791.  
  792. {/block:IndexPage}
  793.  
  794.  
  795.  
  796.  
  797. {block:PermalinkPage}
  798.  
  799.  
  800. <div class="permalink-post">
  801.  
  802. {block:Text}
  803. <div class="permalink-text">
  804. {Title}
  805. {Body}
  806. </div>
  807. {/block:Text}
  808.  
  809. {block:Photo}
  810. <img id ="{PhotoCount}" src="{PhotoURL-HighRes}" style="width:auto; height:100%; margin:auto"/>
  811. {block:Photo}
  812.  
  813. {block:Photoset}
  814. <div class="permalink-photoset" >
  815. {block:Photos}
  816. <img class="active" src="{PhotoURL-HighRes}" alt="{PhotoAlt}"
  817. id="counter"
  818. onClick="
  819.  
  820.  
  821. var $next = $(this).next('img');
  822. $(this).css('opacity','0');
  823. $(this).css('z-index','0');
  824. $next.css('opacity','1');
  825. $next.css('z-index','1');
  826. if ($next.length == 0) {
  827. $(this).parent().find('img:first-child').css('opacity','1');
  828. $(this).parent().find('img:first-child').css('z-index','1');
  829. };"
  830.  
  831. onkeydown="
  832.  
  833.  
  834. if (event.which == 37) {
  835. $(this).css('opacity','0');
  836. $(this).css('z-index','0');
  837. $prev.css('opacity','1');
  838. $prev.css('z-index','1');
  839. if ($prev.length == 0) {
  840. $(this).parent().find('img:last-child').css('opacity','1');
  841. $(this).parent().find('img:last-child').css('z-index','1');
  842. };
  843. };
  844.  
  845. if (event.which == 39) {
  846. var $next = $(this).next('img');
  847. $(this).css('opacity','0');
  848. $(this).css('z-index','0');
  849. $next.css('opacity','1');
  850. $next.css('z-index','1');
  851. if ($next.length == 0) {
  852. $(this).parent().find('img:first-child').css('opacity','1');
  853. $(this).parent().find('img:first-child').css('z-index','1');
  854. };
  855. };
  856.  
  857.  
  858.  
  859.  
  860. "
  861.  
  862. />
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869. <!--
  870.  
  871.  
  872. -->
  873.  
  874.  
  875.  
  876. {/block:Photos}
  877. </div>
  878. <!-- <div style="width:300px; margin:auto;">{Photoset}</div> whole photoset-->
  879.  
  880. {block:Photoset}
  881.  
  882. </div>
  883.  
  884.  
  885. {/block:PermalinkPage}
  886.  
  887.  
  888.  
  889.  
  890. {/block:Posts}
  891. </div>
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907. {block:ifSidebar}
  908. {block:IndexPage}
  909. <div class="sidebar">
  910.  
  911. <center><img src="{PortraitURL-64}" class="portrait" /></center>
  912.  
  913. </div>
  914. {block:IndexPage}
  915. {/block:ifSidebar}
  916.  
  917.  
  918.  
  919. <div class="navigation">
  920. {block:Pagination}
  921. {block:NextPage}
  922. <p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>
  923. {/block:NextPage}
  924. {block:PreviousPage}
  925. <a style="float:left" href="{PreviousPage}">? Newer</a></p>
  926. {/block:PreviousPage}
  927. {/block:Pagination}
  928. </div>
  929.  
  930.  
  931. {block:ifManualInfiniteScroll}
  932. {block:Pagination}
  933. <div class="pagination">
  934. <center><button class="load-more">load more</button></center>
  935. </div>
  936. {/block:Pagination}
  937. {/block:ifManualInfiniteScroll}
  938.  
  939.  
  940.  
  941. {block:PermalinkPage}
  942. {block:PermalinkPagination}
  943. {block:PreviousPost} <a href="{PreviousPost}" style="float:right; right:0px; bottom:0px; position:fixed;"> Older </a>{/block:PreviousPost}
  944. {block:NextPost}<a href="{NextPost}" style="float:left; left:0px; bottom:0px; position:fixed;">Newer</a> {/block:NextPost}
  945. {/block:PermalinkPagination}
  946. {block:PermalinkPage}
  947.  
  948.  
  949.  
  950. </body>
  951. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement