Advertisement
yLii

Infinite Isotope 37

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