Advertisement
yLii

Infinite Isotope 36

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