Advertisement
themesbyjames

Infinity

Apr 6th, 2012
434,000
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.95 KB | None | 0 0
  1. <!---------------------------------------------------------------------------------
  2.  
  3. 8888888 888b 888 8888888888 8888888 888b 888 8888888 88888888888 Y88b d88P
  4. 888 8888b 888 888 888 8888b 888 888 888 Y88b d88P
  5. 888 88888b 888 888 888 88888b 888 888 888 Y88o88P
  6. 888 888Y88b 888 8888888 888 888Y88b 888 888 888 Y888P
  7. 888 888 Y88b888 888 888 888 Y88b888 888 888 888
  8. 888 888 Y88888 888 888 888 Y88888 888 888 888
  9. 888 888 Y8888 888 888 888 Y8888 888 888 888
  10. 8888888 888 Y888 888 8888888 888 Y888 8888888 888 888
  11.  
  12. THEME BY JAMES, UPDATED JULY 2013 - HTTP://THEMESBYJAMES.TUMBLR.COM
  13. FOR AN LIST OF CREDITS FOR THIS THEME PLEASE GO TO /CREDITS
  14.  
  15. --------------------------------------------------------------------------------->
  16.  
  17. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  18. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><html><head>
  19.  
  20. <title>{title}</title>
  21. <meta name="description" content="{MetaDescription}" />
  22. <link rel="shortcut icon" href="{Favicon}">
  23. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  24. <link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}" />
  25. <meta name="viewport" content="width=1220" />
  26.  
  27. <!-- DEFAULT VARIABLES -->
  28. <meta name="color:Background" content="#FFFFFF" />
  29. <meta name="color:Center" content="#FFFFFF" />
  30. <meta name="color:Text" content="#000000" />
  31. <meta name="color:Link" content="#5c5c5c"/>
  32. <meta name="color:Link Hover" content="#5c5c5c" />
  33. <meta name="color:Sidebar Link Background" content="#cfcfcf" />
  34. <meta name="color:Blog Title" content="#5c5c5c" />
  35. <meta name="color:Scrollbar" content="#7e817e"/>
  36. <meta name="image:Background" content="" />
  37. <meta name="image:Sidebar" content="" />
  38. <meta name="if:2 Columns" content="0"/>
  39. <meta name="if:3 Columns" content="1"/>
  40. <meta name="if:Rounded Photos" content="0"/>
  41. <meta name="if:Show Blog Title" content="1"/>
  42. <meta name="if:Blog Title A" content="1"/>
  43. <meta name="if:Blog Title B" content="0"/>
  44. <meta name="if:Blog Title C" content="0"/>
  45. <meta name="if:Link Style 1" content="0"/>
  46. <meta name="if:Link Style 2" content="1"/>
  47. <meta name="if:Show Photo Permalinks" content="1"/>
  48. <meta name="if:Post Border" content="0"/>
  49. <meta name="if:Post Shadow" content="0"/>
  50. <meta name="if:Post Shadow on Hover" content="1"/>
  51. <meta name="text:Ask Title" content="Message" />
  52. <meta name="text:Link One" content="" />
  53. <meta name="text:Link One Title" content="" />
  54. <meta name="text:Link Two" content="" />
  55. <meta name="text:Link Two Title" content="" />
  56. <meta name="text:Link Three" content="" />
  57. <meta name="text:Link Three Title" content="" />
  58. <meta name="text:Link Four" content="" />
  59. <meta name="text:link Four Title" content="" />
  60. <meta name="text:link Five" content="" />
  61. <meta name="text:link Five Title" content="" />
  62. <!--- STYLESHEETS & STATIC UPLOADS --->
  63. <link href="http://static.tumblr.com/ek9ly4s/emomovvhc/animate-custom.css" rel="stylesheet">
  64. <link href="http://static.tumblr.com/6jwx45k/0bMmpcsel/style.css" rel="stylesheet">
  65. <script type="text/javascript"
  66. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  67. <link href='http://fonts.googleapis.com/css?family=Ubuntu|Open+Sans|Lekton|Pacifico|Gloria+Hallelujah|Viga' rel='stylesheet' type='text/css'>
  68.  
  69. <script src="http://static.tumblr.com/6jwx45k/qnrmqhe43/ifie1.js"></script>
  70. <script src="http://static.tumblr.com/6jwx45k/QcKmqhe47/ifie2.js"></script>
  71.  
  72. <style type="text/css">
  73. html{
  74. {block:indexpage}
  75. {block:if3columns}margin-left:300px;{/block:if3columns}
  76. {block:if2columns}margin-left:200px;{/block:if2columns}{/block:indexpage}
  77. {block:permalinkpage}margin-left:100px;{/block:permalinkpage}
  78. cursor:crosshair;
  79. height:103%;}
  80.  
  81. body, p {
  82. font-family:Ubuntu;
  83. font-size:12px;
  84. font-style: normal;
  85. padding: 0px;
  86. margin: 0px;
  87. color:{color:text};}
  88.  
  89. body {
  90. cursor:crosshair;
  91. background-color:{color:background};
  92. background-image:url({image:Background});
  93. background-attachment: fixed;
  94. background-repeat: repeat;}
  95.  
  96. a {
  97. text-decoration:none;
  98. color:{color:text};
  99. -webkit-transition: all 0.4s linear;
  100. -moz-transition: all 0.4s linear;
  101. transition: all 0.4s linear;}
  102.  
  103. a:link, a:active, a:visited{
  104. color: {color:Link};
  105. text-decoration: none;
  106. -webkit-transition: all 0.6s ease-out;-moz-transition: all 0.6s ease-out;-o-transition: all 0.6s ease-out;transition: all 0.6s ease-out;}
  107.  
  108. a:hover{
  109. color:{color:link hover};}
  110.  
  111. img {{block:ifRoundedPhotos}border-radius:5px;{/block:ifroundedphotos}}
  112. img:hover{opacity:1.0;-webkit-transition: all 0.6s ease-out;-moz-transition: all 0.6s ease-out;-o-transition: all 0.6s ease-out;transition: all 0.6s ease-out;cursor:crosshair;}
  113.  
  114. #wrapper {
  115. position: relative;
  116. width: 100%;
  117. text-align: center;}
  118.  
  119. .clear {
  120. text-align:left;clear: both;}
  121.  
  122. #entry.masonry-brick {
  123. top: 0 !important;
  124. left: 0 !important;}
  125.  
  126. #infscr-loading {
  127. position: absolute!important;
  128. width: 16px!important;
  129. height: 11px!important;
  130. bottom: 0px!important;
  131. left: 48.5%!important;
  132. margin-top: 10px!important;
  133. margin-bottom: 5px!important;}
  134.  
  135. .supreme{text-align:right;margin-top:10px;}
  136.  
  137. .title{
  138. text-align:center;
  139. font-size:14px;
  140. line-height:16px;}
  141.  
  142. blockquote{
  143. padding:0px 0px 2px 1px;
  144. margin:0px 0px 2px 1px;
  145. border-left: 1px dotted #555555;}
  146.  
  147. .blogtitle{font-size:40px;line-height:40px;text-align:center;letter-spacing:1px;
  148. padding-top:3px;
  149. {block:ifBlogTitleA}font-family:Pacifico;padding-bottom:13px;{/block:ifBlogTitleA}
  150. {block:ifBlogTitleB}font-family:courier new;letter-spacing:3px;
  151. text-transform:uppercase;;{/block:ifBlogTitleB}
  152. {block:ifBlogTitleC}font-family:'Gloria Hallelujah', cursive;padding-bottom:8px;{/block:ifBlogTitleC}}
  153. .blogtitle a{color:{color:Blog Title};text-transfrom:uppercase;}
  154.  
  155. .description{margin-top:7px;margin-bottom:7px;text-align:center;}
  156.  
  157. #content{
  158. margin:auto;position:relative;
  159. {block:IndexPage}
  160. {block:if3columns}width:945px;{/block:if3columns}
  161. {block:if2columns}width:630px;{/block:if2columns}
  162. {/block:IndexPage}
  163. {block:PermalinkPage}width:500px;{/block:PermalinkPage}}
  164.  
  165. .sidebar{width:240px;background-color:{color:center};
  166. {block:ifpostborder}
  167. border:1px solid #ccc;
  168. {/block:ifpostborder}
  169. padding:5px;
  170. margin-left:-256px;
  171. position:fixed;
  172. z-index:100;
  173. margin-top:35px;
  174. font-size:12px;
  175. {block:indexpage}
  176. {block:IfPostShadow}box-shadow: 0px 1px 7px #a3a3a3;
  177. -moz-transition: all 0.4s ease-in-out;
  178. -webkit-transition: all 0.4s ease-in-out;
  179. -o-transition: all 0.4s ease-in-out;
  180. -ms-transition: all 0.4s ease-in-out;
  181. transition: all 0.4s ease-in-out;}{/block:IfPostShadow}
  182. {/block:indexpage}}
  183.  
  184. .text{{block:indexpage}width:248px;{/block:indexpage}
  185. {block:permalinkpage}width:500px;{/block:permalinkpage}}
  186. .photoset{{block:indexpage}width:248px;overflow:hidden;{/block:indexpage}
  187. {block:permalinkpage}width:500px;{/block:permalinkpage}}
  188. .photo{width:250px;height:auto;background-color:{color:center};}
  189. .photo img{width:250px;-webkit-transition: 0.3s ease-in;{block:ifRoundedPhotos}border-radius:5px;{/block:ifroundedPhotos}}
  190. .photo img:hover{-webkit-transition: 0.3s ease-in;}
  191. .photobig{width:500px;height:auto;background-color:{color:center};}
  192. .photobig img{width:500px;-webkit-transition: 0.3s ease-in;{block:ifRoundedPhotos}border-radius:5px;{/block:ifroundedPhotos}}
  193. .photobig img:hover{-webkit-transition: 0.3s ease-in;}
  194.  
  195. .entry{
  196. margin:5px 5px 5px 6px;
  197. padding:3px 3px 0px 3px;
  198. background-color:{color:center};
  199. {block:IndexPage}
  200. width:250px;
  201. overflow:hidden;
  202. {block:ifpostborder}
  203. border:1px solid #ccc;
  204. {/block:ifpostborder}
  205. {block:IfPostShadow}
  206. box-shadow: 0px 1px 7px #a3a3a3;
  207. -moz-transition: all 0.4s ease-in-out;
  208. -webkit-transition: all 0.4s ease-in-out;
  209. -o-transition: all 0.4s ease-in-out;
  210. -ms-transition: all 0.4s ease-in-out;
  211. transition: all 0.4s ease-in-out;}
  212. {/block:IfPostShadow}
  213. {/block:IndexPage}
  214. {block:PermalinkPage}
  215. width:500px;
  216. height:auto;
  217. {/block:PermalinkPage}}
  218.  
  219. {block:IfPostShadowonHover}
  220. .entry:hover, .sidebar:hover{
  221. box-shadow: 0px 1px 7px #a3a3a3;
  222. -moz-transition: all 0.4s ease-in-out;
  223. -webkit-transition: all 0.4s ease-in-out;
  224. -o-transition: all 0.4s ease-in-out;
  225. -ms-transition: all 0.4s ease-in-out;
  226. transition: all 0.4s ease-in-out;}
  227. {/block:IfPostShadowonHover}
  228.  
  229.  
  230. /* SCROLL BAR APPEARANCE */
  231. ::-webkit-scrollbar-thumb:vertical {
  232. background-color:{color:scrollbar};
  233. height:10px;width:10px;opacity:1;
  234. -webkit-border-radius:0px;border:3px {color:background} solid;}
  235.  
  236. ::-webkit-scrollbar-thumb:horizontal {
  237. background-color:#4c4f50;opacity:1;
  238. height:10px !important;border:3px {color:background} solid;
  239. -webkit-border-radius:0px;}
  240.  
  241. ::-webkit-scrollbar {
  242. height:10px;
  243. width:10px;
  244. background-color:{color:background};
  245. -webkit-border-radius:0px;}
  246.  
  247. ::-webkit-scrollbar-corner {
  248. background-color:{color:background};}
  249.  
  250. ::-webkit-resizer {
  251. background-color:{color:background};}
  252. .clearfix:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.clearfix{display:inline-block}html[xmlns] .clearfix{display:block}* html .clearfix{height:1%}
  253. .tumblrAutoPager_page_info,
  254. .tumblrAutoPager_page_separator {display:none;}
  255.  
  256. {block:ifLinkStyle1}
  257. .nav a {
  258. overflow:hidden;
  259. padding:3px;
  260. padding-top:4px;
  261. margin-left:-1px;
  262. margin-top:2px;
  263. display:block;
  264. font-family:'Viga', arial, sans-serif;
  265. font-size:14px;
  266. text-align: left;
  267. text-transform:uppercase;
  268. text-decoration:none;
  269. color: #000;
  270. background-color:#EEEBEB;
  271. -webkit-transition: all 0.5s ease-out;
  272. -moz-transition: all 0.5s ease-out;
  273. transition: all 0.5s ease-out;}
  274.  
  275. .nav a:hover{
  276. border-radius:0px;
  277. background-color:#cdcdcd;
  278. border-right:62px solid black;
  279. -webkit-transition: all 0.4s ease-out;
  280. -moz-transition: all 0.4s ease-out;
  281. transition: all 0.4s ease-out;
  282. text-decoration:none;}{/block:ifLinkStyle1}
  283.  
  284. {block:ifLinkStyle2}
  285. .nav a{
  286. font-size:10px;
  287. line-height:24px;
  288. padding:3px;
  289. letter-spacing:3.2px;
  290. text-transform:uppercase;
  291. padding-left:6px;
  292. color:white;
  293. background-color:{color:Sidebar Link Background};}
  294. .nav a:hover{
  295. background-color:{color:link hover};} {/block:ifLinkStyle2}
  296. {CustomCSS}
  297. </style>
  298.  
  299. <!-- INFINTE SCROLL SCRIPT -->
  300. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  301. <script type="text/javascript" src="http://static.tumblr.com/ek9ly4s/M6Zmozr72/infintescroll3-1.js"></script>
  302. <script type="text/javascript" src="http://static.tumblr.com/j1tjexd/WYwm8ed44/like_script.js"></script>
  303. <script type="text/javascript">
  304. $(window).load(function () {
  305. var $content = $('#content');
  306. $content.masonry({itemSelector: '.entry', columnWidth:0
  307. });
  308. $content.infinitescroll({
  309. navSelector : 'div#pagination',
  310. nextSelector : 'div#pagination a#nextPage',
  311. itemSelector : '.entry',
  312. loading: {/*Loading...*/
  313. finishedMsg: '',
  314. img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif'
  315. },
  316. bufferPx :600,
  317. debug : false,
  318. },
  319. // call masonry as a callback.
  320. function( newElements ) {
  321. window.n = window.n || 0;
  322. Tumblr.LikeButton.get_status_by_page(++window.n);
  323. var $newElems = $( newElements );
  324. $newElems.hide();
  325. // ensure that images load before adding to masonry layout
  326. $newElems.imagesLoaded(function(){
  327. $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(1500);} );
  328. });
  329. });
  330. });
  331. </script>
  332.  
  333. {block:IndexPage}
  334. {block:Pagination}
  335. <div id="pagination">
  336. {block:NextPage}
  337. <a id="nextPage" href="{NextPage}"></a>
  338. {/block:NextPage}
  339. {block:PreviousPage}
  340. <a href="{PreviousPage}"></a>
  341. {/block:PreviousPage}
  342. </div>
  343. {/block:Pagination}
  344. {/block:IndexPage}
  345. </head><body>
  346.  
  347. <div id="content" class="infinite-scroll">
  348. <div class="sidebar">
  349. <center>
  350.  
  351. {block:ifshowblogtitle}<div class="blogtitle">
  352. <a href="/">{title}</a>
  353. </div>{/block:ifshowblogtitle}
  354.  
  355. {block:ifsidebarimage}<center><a href="/"><img src="{image:sidebar}" style="width:100%;" class="img"></a></center>{/block:ifsidebarimage}
  356.  
  357. <div class="description">{description}</div>
  358.  
  359. <div style="margin-top:4px;"></div>
  360. <span class="nav">
  361. <a href="/">Home</a>
  362. {block:AskEnabled}<a href="/ask">{text:ask title}</a>{/block:AskEnabled}
  363. {block:ifLinkOneTitle}
  364. <a href="{text:Link One}">{text:Link One Title}</a>{/block:ifLinkOneTitle}
  365. {block:ifLinkTwoTitle}
  366. <a href="{text:Link Two}">{text:Link Two Title}</a>{/block:ifLinkTwoTitle}
  367. {block:ifLinkThreeTitle}
  368. <a href="{text:Link Three}">{text:Link Three Title}</a>{/block:ifLinkThreeTitle}
  369. {block:ifLinkFourTitle}
  370. <a href="{text:Link Four}">{text:Link Four Title}</a>{/block:ifLinkFourTitle}
  371. {block:ifLinkFiveTitle}
  372. <a href="{text:Link Five}">{text:Link Five Title}</a>{/block:ifLinkFiveTitle}
  373. {block:ifLinkSixTitle}
  374. <a href="{text:Link Six}">{text:Link Six Title}</a>{/block:ifLinkSixTitle}
  375. {block:ifLinkSevenTitle}
  376. <a href="{text:Link Seven}">{text:Link Seven Title}</a>{/block:ifLinkSevenTitle}
  377. {block:ifLinkEightTitle}
  378. <a href="{text:Link Eight}">{text:Link Eight Title}{/block:ifLinkEightTitle}
  379. {block:HasPages}{block:Pages}<a href="{URL}">{Label}</a>{/block:Pages} {/block:HasPages}
  380. <a href="/archive">Archive</a>
  381. <!-- DO NOT REMOVE CREDITS KEEP MY THEMES FREE -->
  382. <a href="http://final-stand.tumblr.com" target="blank">Theme</a></center>
  383. </span></div>
  384.  
  385. {block:Posts}
  386. <div id="content" class="infinite-scroll">
  387. <div class="entry">
  388.  
  389. {block:Photo}
  390. {block:IndexPage}
  391. <div class="photo">{LinkOpenTag}<a href="{Permalink}"><img src="{PhotoURL-500}" alt="{PhotoAlt}"/> </a>{LinkCloseTag}</div>
  392.  
  393. {block:ifshowphotopermalinks}
  394. <div class="permalinks">
  395. <ul class="buttons">
  396. <li>{ReblogButton color="gray" size="16"}</li>
  397. <div class="noteslabel"><a href="{Permalink}">{TimeAgo}</a></div>
  398. <div class="noteslabel"><a href="{Permalink}">{NoteCount}</a></div>
  399. </ul>
  400. </div>{/block:ifshowphotopermalinks}
  401. {/block:IndexPage}
  402. {block:PermalinkPage}<div class="photobig"><img src="{PhotoURL-500}" alt="{PhotoAlt}" width="500px"/></div>
  403. {/block:PermalinkPage}
  404. {/block:Photo}
  405.  
  406.  
  407. {block:Photoset}
  408. <center>
  409. <div class="photoset">
  410. {block:IndexPage}{Photoset-250}{block:ifshowphotopermalinks}
  411. <div class="permalinks">
  412. <ul class="buttons">
  413. <li>{ReblogButton color="gray" size="16"}</li>
  414. <div class="noteslabel"><a href="{Permalink}">{TimeAgo}</a></div>
  415. <div class="noteslabel"><a href="{Permalink}">{NoteCount}</a></div>
  416. </ul>
  417. </div>{/block:ifshowphotopermalinks}{/block:IndexPage}
  418. {block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}
  419. </center>
  420. {/block:Photoset}
  421.  
  422. {block:Text}
  423. <div class="text"><div style="padding:10px;">
  424. <span class="title">{Title}</span>
  425. {Body}
  426. {block:IndexPage}
  427. <a href="{Permalink}"><div class="supreme">{NoteCountwithLabel}</div></a></div></div>
  428. {/block:IndexPage}
  429. {/block:Text}
  430.  
  431. {block:Link}
  432. <div class="text"><div style="padding:10px;">
  433. <center><a href="{URL}"><span class="title">{Name}</span></a></center>
  434. <div style="margin-left:3px;">{block:Description}{Description}{/block:Description}</div>
  435. {block:IndexPage}
  436. <a href="{Permalink}"><div class="supreme">{NoteCountwithLabel}</div></a></div></div>
  437. {/block:IndexPage}
  438. {block:Link}
  439.  
  440. {block:Quote}
  441. <div class="text"><div style="padding:10px;">
  442. <div style="margin-left:3px;">
  443. {Quote}</span>
  444. {block:Source}<strong>{Source}</strong>{/block:Source}
  445. </div>
  446. {block:IndexPage}
  447. <a href="{Permalink}"><div class="supreme">{NoteCountwithLabel}</div></a></div></div>
  448. {/block:IndexPage}
  449. {/block:Quote}
  450.  
  451. {block:Chat}
  452. <div class="text"><div style="padding:10px;">
  453. <div style="margin-left:3px;">
  454. {block:Title}<span class="title">{title}</span>{/block:Title}
  455. <ul class="chat">
  456. {block:Lines}
  457. <li class="user_{UserNumber}">
  458. {block:Label}
  459. <span class="label">{Label}</span>
  460. {/block:Label}
  461. {Line}
  462. </li>
  463. {/block:Lines}
  464. </ul>
  465. </div>
  466. {block:IndexPage}
  467. <a href="{Permalink}"><div class="supreme">{NoteCountwithLabel}</div></a></div></div>
  468. {/block:IndexPage}
  469. {/block:Chat}
  470.  
  471. {block:Audio}
  472. <div class="audio_text">
  473. {block:AlbumArt} <a href="{Permalink}"><img src="{AlbumArtURL}" alt="{PhotoAlt}" style="{block:indexpage}width:250px;height:250px;{/block:indexpage}{block:permalinkpage}width:500px;height:500px;{/block:permalinkpage}"/>
  474. {/block:AlbumArt}
  475. <div style="margin-top:-4px;background-color:black;height:30px;padding-top:7px;padding-bottom:5px;border-bottom:3px solid {color:center};
  476. {block:indexpage}width:250px;{/block:indexpage}">
  477. {AudioPlayerBlack}</div></center>
  478. {/block:Audio}
  479.  
  480. {block:Answer}
  481. <div class="text"><div style="padding:10px;">
  482. <b>Q</b>: {Question}
  483. <br><br>
  484. {Answer}<br><i>asked by {Asker}</i></p>
  485. {block:IndexPage}
  486. <a href="{Permalink}"><div class="supreme">{NoteCountwithLabel}</div></a>
  487. {/block:IndexPage}</div></div>{/block:Answer}
  488.  
  489. {block:Video}
  490. {block:IndexPage}
  491. <div class="photoset">
  492. <center>
  493. {Video-250}</center>
  494. <a href="{Permalink}"><div class="supreme">{NoteCountwithLabel}</div></a>
  495. </div>
  496. {/block:IndexPage}
  497. {block:PermalinkPage}
  498. <center>
  499. {Video-500}</center>
  500. {/block:PermalinkPage}
  501. {block:Video}
  502.  
  503. {block:PermalinkPage}
  504. {block:HasTags} &middot; {block:Tags}<a href="TagURL"> #{Tag}</a> {/block:Tags}{/block:hasTags}
  505. {/block:PermalinkPage}
  506.  
  507. {block:PostNotes}
  508. <div class="notess">{block:Caption}{Caption}{/block:Caption}
  509. {block:NoteCount}{NoteCountWithLabel}{/block:NoteCount}
  510. <br>{PostNotes}</div>
  511. {/block:PostNotes}
  512. </div>
  513. </div>
  514. {/block:Posts}
  515.  
  516. {block:Pagination}
  517. <div id="pagination">
  518. {block:NextPage}
  519. <a id="nextPage" href="{NextPage}"></a>
  520. {/block:NextPage}
  521. {block:PreviousPage}
  522. <a href="{PreviousPage}"></a>
  523. {/block:PreviousPage}
  524. </div>
  525. {/block:Pagination}
  526. {/block:IndexPage}
  527. </div>
  528.  
  529. <script>
  530. window.onload = function () {
  531. document.body.insertAdjacentHTML( 'beforeEnd', '<iframe id="my-like-frame" style="display:none;"></iframe>' );
  532. document.addEventListener( 'click', function ( event ) {
  533. var myLikeLink = event.target;
  534. if( myLikeLink.className.indexOf( 'my-like' ) > -1 ) {
  535. var myLikeFrame = document.getElementById( 'my-like-frame' ),
  536. liked = ( myLikeLink.className == 'my-liked' ),
  537. command = liked ? 'unlike' : 'like',
  538. reblog = myLikeLink.getAttribute( 'data-reblog' ),
  539. postId = myLikeLink.getAttribute( 'data-id' ),
  540. oauth = reblog.slice( -8 ),
  541. likeUrl = 'http://www.tumblr.com/' + command + '/' + oauth + '?id=' + postId;
  542. myLikeFrame.src = likeUrl;
  543. liked ? myLikeLink.className = 'my-like'
  544. : myLikeLink.className = 'my-liked';
  545. };
  546. }, false );
  547. };
  548. </script>
  549.  
  550. </body></html><!-- END OF THEME -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement