feiinho

ingénu theme by ally

May 2nd, 2018
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.60 KB | None | 0 0
  1. <!------------------------------------------------------------------------
  2.  
  3.  
  4. /// ingénu theme by ally
  5.  
  6. © 2014 stahrfruits.tumblr.com
  7.  
  8.  
  9. -------------------------------------------------------------------------->
  10.  
  11. <!DOCTYPE html><html>
  12. <head>
  13.  
  14. <!------Meta Tags---------------------------------------------------->
  15.  
  16. <meta name="color:background" content="#ffffff" />
  17. <meta name="color:text" content="#000000" />
  18. <meta name="color:title" content="#000000" />
  19. <meta name="color:link" content="#000000" />
  20. <meta name="color:link hover" content="#000000" />
  21. <meta name="color:scrollbar" content="#000000" />
  22. <meta name="color:post background" content="#ffffff">
  23. <meta name="color:post border color" content="#000000">
  24.  
  25. <meta name="if:post background" content="0">
  26.  
  27. <meta name="text:home" content="home">
  28. <meta name="text:message" content="message">
  29. <meta name="text:ask link" content="/ask">
  30. <meta name="text:archive" content="past">
  31. <meta name="text:link 1 url" content="/">
  32. <meta name="text:link 2 url" content="/">
  33. <meta name="text:link 3 url" content="/">
  34. <meta name="text:link 1 title" content="link">
  35. <meta name="text:link 2 title" content="link">
  36. <meta name="text:link 3 title" content="link">
  37.  
  38. <meta name="image:background" content="" />
  39.  
  40. <!------Essential Scripts-------------------------------------------->
  41.  
  42. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  43.  
  44. <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
  45.  
  46. <script>
  47.  
  48. (function($){
  49.  
  50. $(document).ready(function(){
  51.  
  52. $("a[title]").style_my_tooltips({
  53.  
  54. tip_follows_cursor:true,
  55.  
  56. tip_delay_time:0,
  57.  
  58. tip_fade_speed:40,
  59.  
  60. attribute:"title"
  61.  
  62. });
  63.  
  64. });
  65.  
  66. })(jQuery);
  67.  
  68. </script>
  69.  
  70. <script>
  71. var IsOpen = "no";
  72. function ShowMenu()
  73. {
  74. if (IsOpen == "no")
  75. {
  76. $("#page_menu").slideDown("slow");
  77. document.getElementById('page_plus').innerHTML = ' - ';
  78. IsOpen="yes";
  79. }else
  80. {
  81. $("#page_menu").slideUp("slow");
  82. document.getElementById('page_plus').innerHTML = '+ ';
  83. IsOpen="no";
  84. }
  85. }
  86. </script>
  87. <script>
  88. var IsOpen2 = "no";
  89. function ShowMenu2()
  90. {
  91. if (IsOpen2 == "no")
  92. {
  93.  
  94. $("#header_menu").slideDown("slow");
  95. $("#page_menu").slideDown("slow");
  96.  
  97. document.getElementById('page_plus').innerHTML = '';
  98. IsOpen2="yes";
  99. }else
  100. {
  101. $("#header_menu").slideUp("slow");
  102. $("#page_menu").slideUp("slow");
  103. document.getElementById('page_plus').innerHTML = '';
  104. IsOpen2="no";
  105. }
  106. }
  107. </script>
  108. <script type="text/javascript">
  109. function changeText(){
  110.  
  111. }
  112. </script>
  113.  
  114.  
  115. <script>
  116. $(document).ready(function() {
  117. /* This is basic - uses default settings */
  118. $("a#single_image").fancybox();
  119. /* Using custom settings */
  120. $("a#inline").fancybox({
  121. 'hideOnContentClick': true
  122. });
  123.  
  124.  
  125. $(".various3").fancybox({
  126. 'width' : '50%',
  127. 'height' : '30%',
  128. 'autoScale' : false,
  129. 'transitionIn' : 'none',
  130. 'transitionOut' : 'none',
  131. 'type' : 'iframe'
  132. });
  133. });
  134. </script>
  135.  
  136. <script src="http://www.themecloud.co/themes/narnia/totop.js";
  137.  
  138. type="text/javascript"></script>
  139. <script type="text/javascript">
  140. $(document).ready(function() {
  141. /*
  142. var defaults = {
  143. containerID: 'moccaUItoTop', // fading element id
  144. containerHoverClass: 'moccaUIhover', // fading element
  145.  
  146. hover class
  147. scrollSpeed: 1200,
  148. easingType: 'linear'
  149. };
  150. */
  151.  
  152. $().UItoTop({ easingType: 'easeOutQuart' });
  153. });
  154. </script>
  155.  
  156. <title>{Title}</title>
  157. <link rel="shortcut icon" href="{Favicon}">
  158. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  159. {block:Description}
  160. <meta name="description" content="{MetaDescription}" />
  161. {/block:Description}
  162.  
  163. {block:IndexPage}
  164.  
  165. <script type="text/javascript"
  166. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  167.  
  168. <script type="text/javascript"
  169.  
  170. src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  171.  
  172. <script type="text/javascript"
  173.  
  174. src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  175. <script type="text/javascript">
  176. $(window).load(function () {
  177. var $content = $('#content');
  178. $content.masonry({itemSelector: '.entry'}),
  179. $content.infinitescroll({
  180. navSelector : 'div#pagination',
  181. nextSelector : 'div#pagination a#nextPage',
  182. itemSelector : '.entry',
  183. loading: {
  184. finishedMsg: '',
  185. img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif'
  186. },
  187. bufferPx : 600,
  188. debug : false,
  189. },
  190. // call masonry as a callback.
  191. function( newElements ) {
  192. var $newElems = $( newElements );
  193. $newElems.hide();
  194. // ensure that images load before adding to masonry layout
  195. $newElems.imagesLoaded(function(){
  196. $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(300);}
  197.  
  198. );});});});</script>
  199. {/block:IndexPage}
  200.  
  201. <!------Styling and Customization------------------------------------>
  202.  
  203. <style type="text/css">
  204.  
  205. .ttitle {
  206. background: #fff;
  207. padding: 5px;
  208. font-size: 12px;
  209. }
  210.  
  211. ::-webkit-scrollbar {width: 3px; height: 0px; background:{color:scrollbar};}
  212. ::-webkit-scrollbar-thumb {background: {color:scrollbar}; border-radius:10px;}
  213.  
  214. iframe#tumblr_controls {position:fixed; z-index:9999999999; top: 3px; margin: 0 0 0 0;
  215.  
  216. right:4px; -webkit-filter: invert(100%);}
  217.  
  218.  
  219. body {
  220. background-color: {color:background};
  221. background-image:url({image:Background});
  222. background-attachment: fixed;
  223. background-repeat: repeat;
  224. font-size:11px;
  225. font-family:arial;
  226. line-height:14px;
  227. text-transform:none;
  228. color: {color:text};
  229. }
  230.  
  231. #header{
  232. font-family:arial;
  233. position:absolute;
  234. top:85px;
  235. padding-top:7px;
  236. padding-bottom:12px;
  237. width:400px;
  238. align:center;
  239. width:100%;
  240. margin-left:30px;
  241. text-align:center;
  242. background-image:url('{image:header}');
  243. background-color:transparent;
  244. z-index:999;
  245. }
  246.  
  247. #nav{
  248. text-transform:none;
  249. }
  250.  
  251. #nav a{
  252. font-size:19px;
  253. line-height:23px;
  254. text-transform:none;
  255. display:inline;
  256. font-weight:300;
  257. -moz-transition: all 0.4s ease-in-out;
  258. -webkit-transition: all 0.4s ease-in-out;
  259. -o-transition: all 0.4s ease-in-out;
  260. -ms-transition: all 0.4s ease-in-out;
  261. transition: all 0.4s ease-in-out;
  262. }
  263.  
  264. .speclink{
  265. word-spacing:1px;
  266. }
  267.  
  268. .answer{
  269. }
  270. .answer img {
  271. width:230px;
  272. height:auto;
  273. {block:permalinkpage}
  274. width:auto;
  275. height:auto;
  276. {/block:permalinkpage}
  277. }
  278.  
  279. a {
  280. text-decoration:none;
  281. color:{color:link};
  282. -webkit-transition: all 0.4s linear;
  283. -moz-transition: all 0.4s linear;
  284. transition: all 0.4s linear;
  285. }
  286.  
  287. a:link, a:active, a:visited{
  288. color: {color:link};
  289. }
  290.  
  291. a:hover{
  292. color: {color:link hover};
  293. }
  294.  
  295. #content {
  296. position: absolute;
  297. width:900px;
  298. margin-left:-415px;
  299. left:50%;
  300. margin-top:46px;
  301. float:center;
  302. height:auto;
  303. }
  304.  
  305. .entry{
  306. margin:19px;
  307. float:left;
  308. height:auto;
  309. padding-top:3px;
  310. padding-left:3px;
  311. padding-right:3px;
  312. border:1px solid {color:post border color};
  313. {block:ifpostbackground}
  314. background-color: {color:post background};
  315. {/block:ifpostbackground}
  316. {block:IndexPage}
  317. width:240px;
  318. {/block:IndexPage}
  319. {block:PermalinkPage}
  320. margin-left:65px;
  321. width:500px;
  322. height:auto;
  323. {/block:PermalinkPage}
  324. }
  325.  
  326.  
  327. .entry img{
  328. {block:IndexPage}
  329. width:240px;
  330. height:auto;
  331. {block:iffourcolumns}
  332. width:210px;
  333. {/block:iffourcolumns}
  334. {block:ifthreecolumns}
  335. width:210px;
  336. {/block:ifthreecolumns}
  337. {/block:IndexPage}
  338. }
  339.  
  340. .title{
  341. font-family:arial;
  342. {block:iftitlefontone}
  343. font-family: Lobster Two;
  344. {/block:iftitlefontone}
  345. {block:iftitlefonttwo}
  346. font-family: satisfy;
  347. {/block:iftitlefonttwo}
  348. {block:iftitlefontthree}
  349. font-family: handlee;
  350. {/block:iftitlefontthree}
  351. font-size:11px;
  352. line-height:18px;
  353. text-transform:none;
  354. color: {color:text};
  355. }
  356.  
  357. blockquote{
  358. padding:0px 0px 0px 10px;
  359. margin:0px 0px 0px 2px;
  360. border-left: 1px solid #000;
  361. }
  362.  
  363. .creditstothistheme{
  364. font-family:
  365. this is a stahrfruits theme
  366. and you should probably abide
  367. by the rules because if i see
  368. this on your theme ill know
  369. its mine and ill report you if
  370. there isnt a credit;
  371. }
  372.  
  373. .perma{
  374. position:absolute;
  375. top:15px;
  376. left:7px;
  377. text-transform:uppercase;
  378. text-align:center;
  379. line-height:40px;
  380. overflow:hidden;
  381. overflow:hidden;
  382. opacity: 0;
  383. -webkit-transition: all 0.2s linear;
  384. -webkit-transition: all 0.2s linear;
  385. -moz-transition: all 0.2s linear;
  386. transition: all 0.2s linear;
  387. }
  388.  
  389. .perma img{
  390. border-radius:100%;
  391. margin-left:3px;
  392. height:35px;
  393. width:35px;
  394. }
  395.  
  396. .entry:hover .perma{
  397. opacity:1;
  398. top:10px;
  399. -webkit-transition: all 0.2s linear;
  400. -webkit-transition: all 0.2s linear;
  401. -moz-transition: all 0.2s linear;
  402. transition: all 0.2s linear;
  403. }
  404.  
  405. .my-like {
  406. background-image: url("http://static.tumblr.com/j1tjexd/aeQmam5ia/like1.png") !
  407.  
  408. important;
  409. height:35px;
  410. width:35px;
  411. cursor:pointer;
  412. display:inline-block;
  413. vertical-align:top;
  414. border-radius:100%;
  415. margin-left:3px;
  416. }
  417.  
  418. .my-like img{
  419. height:35px;
  420. width:35px;
  421. }
  422.  
  423. .my-liked, .my-like:hover {
  424. background-image: url("http://static.tumblr.com/j1tjexd/5YOmanh18/like2.png") !
  425.  
  426. important;
  427. height:35px;
  428. width:35px;
  429. cursor:pointer;
  430. display:inline-block;
  431. vertical-align:top;
  432. border-radius:100%;
  433. margin-left:3px;
  434. }
  435.  
  436. .entry:hover .permalink{
  437. line-height:10px;
  438. opacity:1;
  439. -webkit-transition: all 0.4s linear;
  440. -webkit-transition: all 0.4s linear;
  441. -moz-transition: all 0.4s linear;
  442. transition: all 0.4s linear;
  443. }
  444.  
  445. .permalink{
  446. font-family:arial;
  447. font-size:10px;
  448. line-height:0;
  449. text-transform:uppercase;
  450. text-align:center;
  451. opacity:0;
  452. -webkit-transition: all 0.4s linear;
  453. -webkit-transition: all 0.4s linear;
  454. -moz-transition: all 0.4s linear;
  455. transition: all 0.4s linear;
  456. }
  457.  
  458. .notess{
  459. position:absolute;
  460. left:600px;
  461. top:10px;
  462. height:400px;
  463. width:500px;
  464. overflow:scroll;
  465. }
  466.  
  467. .answerimg img{
  468. position:relative;
  469. top:5px;
  470. left:0px;
  471. height:30px;
  472. width:30px;
  473. border:1px solid #ccc;
  474. margin:2px;
  475. padding:3px;
  476. }
  477.  
  478. #february19th{
  479. font-family:arial;
  480. text-transform:none;
  481. font-style:italic;
  482. font-size:20px;
  483. margin-top:-75px;
  484. margin-left:277px;
  485. }
  486.  
  487. #description{
  488. font-family:arial;
  489. margin-left:280px;
  490. margin-top:5px;
  491. width:600px;
  492. height:auto;
  493. }
  494.  
  495. #s-m-t-tooltip {
  496.  
  497. max-width:300px;
  498. background-color:#ffffff;
  499. border:1px solid #000000;
  500. font-size: 11px;
  501. font-family:arial, monospace;
  502. color:#000000;
  503. text-transform:lowercase;
  504. padding:3px;
  505. margin:19px 0px 0px 10px;
  506. z-index:9999999999999999999999;
  507. }
  508.  
  509. .zzz{
  510. top:70px;
  511. margin-left:186px;
  512. height:auto;
  513. width:1000px;
  514. }
  515.  
  516. .asterisk{
  517. margin-top:-32px;
  518. font-family:arial;
  519. font-size:20px;
  520. margin-left:254px;
  521. }
  522.  
  523. {CustomCSS}
  524. </style>
  525.  
  526. <script type="text/javascript" src="http://kryogenix.org/code/browser/smoothscroll/smoothscroll.js"></script>
  527.  
  528. </head>
  529.  
  530. <!------Blog Appearance---------------------------------------------->
  531.  
  532. <body onkeydown="return false">
  533.  
  534. <div class="zzz"><center><br><br><br><br><br><img src="http://i62.tinypic.com/1judtf.gif" width="826" height="8"></center></div>
  535.  
  536.  
  537. <!------Header Links------------------------------------------------->
  538.  
  539. <header id="header">
  540. <span id="nav">
  541. <a href="/" title="{text:home}">⌂</a>
  542. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  543. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  544. <a href="{text:ask link}" title="{text:message}">✉</a>
  545. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  546. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  547. <a href="/archive" title="{text:archive}">♥</a>
  548. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  549. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  550. <a href="{text:link 1 url}" title="{text:link 1 title}">✍</a>
  551. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  552. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  553. <a href="{text:link 2 url}" title="{text:link 2 title}">☺</a>
  554. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  555. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  556. <a href="{text:link 3 url}" title="{text:link 3 title}">⌨</a>
  557. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  558. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  559. <a href="http://stahrfruits.tumblr.com/" title="theme">+</a>
  560. </span>
  561. </header><br><br>
  562.  
  563. <!------Description & Title ----------------------------------------->
  564.  
  565. <div id="february19th">
  566. {Title}
  567. </div>
  568.  
  569. <div id="description">
  570. {Description}
  571. </div>
  572.  
  573. <div class="asterisk">
  574. </div>
  575.  
  576. <!------Blog Posts--------------------------------------------------->
  577.  
  578. <div id="content">
  579. {block:Posts}
  580.  
  581. {block:ContentSource}
  582. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
  583. width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
  584. {/block:SourceLogo}
  585. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  586. {/block:ContentSource}
  587.  
  588. <div class="entry">
  589.  
  590. {block:Text}
  591. {block:Title}<center><span class="title">{Title}</span></center>{/block:Title}<div
  592.  
  593. class="answer">
  594. <div style="margin-left:1px;">{Body}</div></div>
  595. <div class="permalink"><a href="{ReblogUrl}">Purchase</a>&nbsp;for&nbsp;<a
  596.  
  597. href="{permalink}">${NoteCount}</a></div>
  598. {/block:Text}
  599.  
  600. {block:Link}
  601. <center><a href="{URL}"><span class="title">{Name}</span></a></center>
  602. <div style="margin-left:3px;">{block:Description}{Description}{/block:Description}</div>
  603. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  604.  
  605. href="{permalink}">{NoteCountwithLabel}</a></div>
  606. {block:Link}
  607.  
  608. {block:Photo}
  609. {block:IndexPage}{LinkOpenTag}<div class="photo"><a href="{permalink}"><img
  610.  
  611. src="{PhotoURL-500}" alt="{PhotoAlt}" /></a></div>{LinkCloseTag}
  612. <div class="perma">
  613. <a href="{reblogurl}"><img
  614.  
  615. src="http://static.tumblr.com/j1tjexd/nGmmam5hg/reblog.png"></a>
  616. <div class="my-like" data-reblog="{ReblogURL}" data-id="{PostID}"></div>
  617. </div>
  618. {/block:IndexPage}{block:PermalinkPage}{LinkOpenTag}<img src="{PhotoURL-500}"
  619.  
  620. alt="{PhotoAlt}"width=450px/>{LinkCloseTag}{/block:PermalinkPage}
  621. {/block:Photo}
  622.  
  623. {block:Photoset}
  624. <center>
  625. {block:IndexPage}{Photoset-250}{/block:IndexPage}
  626. {block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}
  627. </center>
  628. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  629.  
  630. href="{permalink}">{NoteCountwithLabel}</a></div>
  631. {/block:IndexPage}
  632. {/block:Photoset}
  633.  
  634. {block:Quote}
  635. <div style="margin-left:3px;">
  636. <span class="title">{Quote}</span><br>{Source}
  637. </div>
  638. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  639.  
  640. href="{permalink}">{NoteCountwithLabel}</a></div>
  641. {/block:Quote}
  642.  
  643. {block:Chat}
  644. <div style="margin-left:3px;">
  645. {block:Title}<span class="title">{Title}</span>{/block:Title}
  646. <ul class="chat">
  647. {block:Lines}
  648. <li class="user_{UserNumber}">
  649. {block:Label}
  650. <span class="label">{Label}</span>
  651. {/block:Label}
  652. {Line}
  653. </li>
  654. {/block:Lines}
  655. </ul>
  656. </div>
  657. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  658.  
  659. href="{permalink}">{NoteCountwithLabel}</a></div>
  660. {/block:Chat}
  661.  
  662. {block:Audio}<div style="height:0px;background-
  663.  
  664. color:black;opacity:0.1;width:100%;margin-top:10px;margin-bottom:5px;"></div>
  665. <center>{AudioPlayerBlack}
  666. {block:Caption}{Caption}{/block:Caption}</center>
  667. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  668.  
  669. href="{permalink}">{NoteCountwithLabel}</a></div>
  670. {/block:Audio}
  671.  
  672. {block:Answer}<span class="answerimg"><p align="right"><img src="{AskerPortraitURL-30}"
  673.  
  674. align="right"></p></span> {Asker} inquired: <i>{Question}</i><div class="answer">
  675.  
  676. {Answer}</div>
  677. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;for&nbsp;<a
  678.  
  679. href="{permalink}">${NoteCount}</a></div>
  680. {/block:Answer}
  681.  
  682. {block:Video}
  683. {block:IndexPage}
  684. <center>
  685. {Video-250}</center>
  686. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  687.  
  688. href="{permalink}">{NoteCountwithLabel}</a></div>
  689. {/block:IndexPage}
  690. {block:PermalinkPage}
  691. <center>
  692. {Video-500}</center>
  693. {/block:PermalinkPage}
  694. {block:Video}
  695.  
  696. {block:PermalinkPage}
  697. {block:HasTags} &middot; {block:Tags}<a href="TagURL"> #{Tag}</a> {/block:Tags}
  698.  
  699. {/block:hasTags}
  700. {/block:PermalinkPage}
  701.  
  702. {block:PostNotes}
  703. <div class="notess">{block:Caption}{Caption}{/block:Caption}
  704. {block:NoteCount}{NoteCountWithLabel}{/block:NoteCount}
  705. <br>{PostNotes}</div>
  706. {/block:PostNotes}
  707. </div>
  708.  
  709. {/block:Posts}
  710.  
  711. {block:IndexPage}
  712. {block:Pagination}
  713. <div id="pagination">
  714. {block:NextPage}
  715. <a id="nextPage" href="{NextPage}"></a>
  716. {/block:NextPage}
  717. {block:PreviousPage}
  718. <a href="{PreviousPage}"></a>
  719. {/block:PreviousPage}
  720. </div>
  721. {/block:Pagination}
  722. {/block:IndexPage}
  723. </div>
  724.  
  725. <script>
  726. window.onload = function () {
  727. document.body.insertAdjacentHTML( 'beforeEnd', '<iframe id="my-like-frame"
  728.  
  729. style="display:none;"></iframe>' );
  730. document.addEventListener( 'click', function ( event ) {
  731. var myLikeLink = event.target;
  732. if( myLikeLink.className.indexOf( 'my-like' ) > -1 ) {
  733. var myLikeFrame = document.getElementById( 'my-like-frame' ),
  734. liked = ( myLikeLink.className == 'my-liked' ),
  735. command = liked ? 'unlike' : 'like',
  736. reblog = myLikeLink.getAttribute( 'data-reblog' ),
  737. postId = myLikeLink.getAttribute( 'data-id' ),
  738. oauth = reblog.slice( -8 ),
  739. likeUrl = 'http://www.tumblr.com/' + command + '/' + oauth + '?id=' + postId;
  740. myLikeFrame.src = likeUrl;
  741. liked ? myLikeLink.className = 'my-like'
  742. : myLikeLink.className = 'my-liked';
  743. };
  744. }, false );
  745. };
  746. </script>
  747. <a style="position:fixed;bottom:10px;right:10px;" href="#top">back to top</a>
  748. </body></html>
Add Comment
Please, Sign In to add comment