Advertisement
Guest User

for lenni

a guest
Sep 25th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.19 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--
  3. High Res Theme 1.1.9 -- 26 September 2012
  4. (c) 2011-2012 Justin Ouellette, all rights reserved
  5. http://highrestheme.tumblr.com/
  6. -->
  7. <html>
  8. <head>
  9. <title>{Title}{block:PostSummary} - {PostSummary}{/block:PostSummary}</title>
  10. <meta name="tumblr-theme" content="30257" />
  11. <meta name="warning" content="HC SVNT DRACONES" />
  12. <meta name="viewport" content="width = device-width" id="viewport" />
  13. <meta http-equiv="imagetoolbar" content="no" />
  14. <link rel="icon" href="{Favicon}" />
  15. <link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}" />
  16. <link rel="stylesheet" href="http://static.tumblr.com/lpiibdu/NEJljwkzi/reset.2.8.1.yui.css">
  17. <meta name="color:Text" content="#333333" />
  18. <meta name="color:Link" content="#111111" /> <!-- 1.1 -->
  19. <meta name="color:Link Hover" content="#111111" /> <!-- 1.1 -->
  20. <meta name="color:Tag" content="#666666" />
  21. <meta name="color:Date" content="#999999" />
  22. <meta name="color:Background" content="#ffffff" />
  23. <meta name="image:Header" content="" />
  24. <meta name="if:Fixed Position Header Image" content="0" /> <!-- 1.1 -->
  25. <meta name="if:Infinite Scrolling" content="0" />
  26. <meta name="if:Show Blog Title" content="1" />
  27. <meta name="if:Show Blog Description" content="0" />
  28. <meta name="if:Show Headers In Bold" content="0" />
  29. <meta name="if:Show Headers In Caps" content="1" />
  30. <meta name="if:Show Album Art" content="1" />
  31. <meta name="if:Show Tags" content="1" />
  32. <meta name="if:Show Dates" content="1" />
  33. <meta name="if:Show Note Counts" content="0" />
  34. <meta name="if:Show Notes On Permalink Pages" content="0" />
  35. <meta name="if:Show Footer Text" content="0" />
  36. <meta name="if:Show Followed Tumblrs" content="0" /> <!-- 1.1 -->
  37. <meta name="if:Hide Ask Link" content="0" /> <!-- 1.1.1 -->
  38. <meta name="if:Hide Submit Link" content="0" /> <!-- 1.1.1 -->
  39. <meta name="if:Center Text Posts" content="0" /> <!-- 1.1 -->
  40. <meta name="if:Center Link Captions" content="0" /> <!-- 1.1 -->
  41. <meta name="if:Center Photo Captions" content="1" />
  42. <meta name="if:Center Quotes" content="1" /> <!-- 1.1 -->
  43. <meta name="if:Center Chats" content="1" /> <!-- 1.1 -->
  44. <meta name="if:Center Audio Captions" content="1" />
  45. <meta name="if:Center Video Captions" content="1" />
  46. <meta name="if:Use Time Ago For Date" content="0" />
  47. <meta name="if:Drop Shadows On Photos" content="0" />
  48. <meta name="if:Large Title" content="0" />
  49. <meta name="if:Helvetica" content="0" />
  50. <meta name="if:Force Video Resize" content="1" />
  51. <meta name="if:Scale Photos To Window Width" content="1" />
  52. <meta name="text:Forced Video Width" content="500" />
  53. <meta name="text:Column Width" content="500" />
  54. <meta name="text:Vertical Spacing" content="64" />
  55. <meta name="text:Min Image Width" content="0" />
  56. <meta name="text:Max Image Width" content="1280" />
  57. <meta name="text:Font Family" content="menlo,'andale mono','courier new',sans-serif" /> <!-- 1.1 -->
  58. <meta name="text:Font Size In Pixels" content="11" /> <!-- 1.1 -->
  59. <meta name="text:Line Height In Percent" content="155" /> <!-- 1.1 -->
  60. <meta name="text:Footer Text" content='<a href="http://highrestheme.tumblr.com/">high res theme</a> by <a href="http://jstn.cc/">jstn</a>' />
  61. <meta name="text:Disqus Shortname" content="" /> <!-- 1.1 -->
  62. <meta name="text:Google Analytics Web Property ID" content="" /> <!-- 1.1 -->
  63. {block:Description}
  64. <meta name="description" content="{MetaDescription}" />
  65. {/block:Description}
  66. <style type="text/css">
  67. html,body { background: {color:Background}; color: {color:Text}; }
  68. {block:IfHelvetica}
  69. html, body { font: normal 12px helvetica,sans-serif; line-height: 150%; }
  70. {/block:IfHelvetica}
  71. {block:IfNotHelvetica}
  72. html, body { font: normal {text:Font Size In Pixels}px {text:Font Family}; line-height: {text:Line Height In Percent}%; }
  73. {/block:IfNotHelvetica}
  74.  
  75. a { color: {color:Link}; }
  76. a:hover { text-decoration: none; color: {color:Link Hover}; }
  77. strong, b { font-weight: bold; }
  78. em, i { font-style: italic; }
  79. q:before { content: '“'; }
  80. q:after { content: '”'; }
  81.  
  82. div.regular_body, div.quote_body, div.caption, div.conversation_line, ul#following, #disqus, .tumblr_video_container, #post_notes { width: {text:Column Width}px; margin: 0 auto; }
  83. div.regular_body, div.quote_body, div.caption, div.conversation_line { text-align: left; }
  84. h1, h2, ul#posts, ul#pages, div#pagers, #header_image_div, div#footer, div#post_notes, ul#following, div.quote div.caption { text-align: center; }
  85. {block:IfCenterTextPosts}
  86. div.regular_body { text-align: center; }
  87. {/block:IfCenterTextPosts}
  88. {block:IfCenterPhotoCaptions}
  89. div.photo div.caption { text-align: center; }
  90. div.photoset div.caption { text-align: center; }
  91. {/block:IfCenterPhotoCaptions}
  92. {block:IfCenterQuotes}
  93. div.quote_body { text-align: center; }
  94. {/block:IfCenterQuotes}
  95. {block:IfCenterLinkCaptions}
  96. div.link div.caption { text-align: center; }
  97. {/block:IfCenterLinkCaptions}
  98. {block:IfCenterChats}
  99. div.conversation_line { text-align: center; }
  100. {/block:IfCenterChats}
  101. {block:IfCenterVideoCaptions}
  102. div.video div.caption { text-align: center; }
  103. {/block:IfCenterVideoCaptions}
  104. {block:IfCenterAudioCaptions}
  105. div.audio div.caption { text-align: center; }
  106. {/block:IfCenterAudioCaptions}
  107.  
  108. h1, h2, div.content, ul#pages, ul#following, #header_image_div, li.post, div#pagers, div#footer, #disqus { margin-top: {text:Vertical Spacing}px; }
  109. div#container { margin-bottom: {text:Vertical Spacing}px; }
  110. h1 a { text-decoration: none; }
  111. div.date, div#post_notes, div.caption, ul.tags { margin-top: 1.5em; }
  112. h3, div.content p { margin-bottom: 1.5em; }
  113. div.photo_div, div.photoset_div, div.html_photoset, #header_image_div, div.album_art_div { line-height: 0; }
  114.  
  115. img.photo_img { margin-bottom: 0.4em; min-width: {text:Min Image Width}px; }
  116. div.photoset_div { margin-top: 1.5em; }
  117. div.photoset { margin-top: -1.5em; }
  118. {block:IfScalePhotosToWindowWidth}
  119. html { padding-left: {text:Vertical Spacing}px; padding-right: {text:Vertical Spacing}px; }
  120. img.photo_img { max-width: 100%; }
  121. {block:IfNotFixedPositionHeaderImage}
  122. #header_image, #header_image_div { max-width: 100%; }
  123. {/block:IfNotFixedPositionHeaderImage}
  124. {/block:IfScalePhotosToWindowWidth}
  125. {block:IfNotScalePhotosToWindowWidth}
  126. img.photo_img { max-width: {text:Max Image Width}px; }
  127. {/block:IfNotScalePhotosToWindowWidth}
  128.  
  129. div.date a { color: {color:Date}; text-decoration: none; }
  130. div.date a:hover { text-decoration: underline; }
  131. img.album_art_img { width: 207px; }
  132. blockquote { border-left: 1px solid #999; margin-left: 1em; padding-left: 1em; margin-bottom: 1em; }
  133. li.tag { display: inline; margin: 0 1em; }
  134. li.tag a { text-decoration: none; color: {color:Tag}; }
  135. #post_notes ol.notes li.tag { margin: 0; }
  136. div.no_results { font-style: italic; }
  137. img.asker_portrait { position: relative; bottom: -6px; height: 20px; width: 20px; }
  138. li.page { display: inline; margin: 0 2em; }
  139. div#post_notes img.avatar { position: relative; bottom: -4px; }
  140.  
  141. li.followed { display: inline; line-height: 0; }
  142. li.followed a { line-height: 0; }
  143. li.followed img { width: 24px; height: 24px; margin: 2px; vertical-align: middle; }
  144.  
  145. li.post ul li { list-style-type: disc; list-style-position: outside; }
  146. li.post ol li { list-style-type: decimal; list-style-position: outside; }
  147.  
  148. {block:IfDropShadowsOnPhotos}
  149. img.photo_img {
  150. -webkit-box-shadow: 0px 2px 8px rgba(0,0,0,0.33);
  151. -moz-box-shadow: 0px 2px 8px rgba(0,0,0,0.33);
  152. box-shadow: 0px 2px 8px rgba(0,0,0,0.33);
  153. }
  154. {/block:IfDropShadowsOnPhotos}
  155.  
  156. {block:IfShowHeadersInBold}
  157. h1,h3,span.conversation_label { font-weight: bold; }
  158. {/block:IfShowHeadersInBold}
  159.  
  160. {block:IfShowHeadersInCaps}
  161. h1,h3,span.conversation_label { text-transform: uppercase; }
  162. {/block:IfShowHeadersInCaps}
  163.  
  164. {block:IfLargeTitle}
  165. h1 { font-size: 64px; line-height: 72px; }
  166. {/block:IfLargeTitle}
  167.  
  168. {CustomCSS}
  169. </style>
  170. <script type="text/javascript">
  171. var analytics_code = '{text:Google Analytics Web Property ID}'.trim();
  172. if (analytics_code.length) {
  173. var _gaq = _gaq || [];
  174. _gaq.push(['_setAccount', analytics_code]);
  175. _gaq.push(['_trackPageview']);
  176.  
  177. (function() {
  178. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  179. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  180. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  181. })();
  182. }
  183. </script>
  184. </head>
  185. <body>
  186. <!-- Tumblr Theme #30257 -->
  187. <div id="container">
  188. {block:IfHeaderImage}
  189. <div id="header_image_div">
  190. <a href="/"><img src="{image:Header}" id="header_image" alt="{Title}" /></a>
  191. </div>
  192. {/block:IfHeaderImage}
  193.  
  194. {block:IfShowBlogTitle}
  195. <h1 id="blog_title"><a href="/">{Title}</a></h1>
  196. {/block:IfShowBlogTitle}
  197.  
  198. {block:IfShowBlogDescription}
  199. {block:Description}
  200. <h2 id="blog_description">{Description}</h2>
  201. {/block:Description}
  202. {/block:IfShowBlogDescription}
  203.  
  204. {block:HasPages}
  205. <ul id="pages">
  206. {block:Pages}
  207. <li class="page"><a href="{URL}">{Label}</a></li>
  208. {/block:Pages}
  209. </ul>
  210. {/block:HasPages}
  211.  
  212. {block:AskEnabled}
  213. {block:IfNotHideAskLink}
  214. <h2 id="ask_link"><a href="/ask">{AskLabel}</a></h2>
  215. {/block:IfNotHideAskLink}
  216. {/block:AskEnabled}
  217.  
  218. {block:SubmissionsEnabled}
  219. {block:IfNotHideSubmitLink}
  220. <h2 id="submit_link"><a href="/submit">{SubmitLabel}</a></h2>
  221. {/block:IfNotHideSubmitLink}
  222. {/block:SubmissionsEnabled}
  223.  
  224. <ul id="posts">
  225. {block:NoSearchResults}
  226. <li class="post">
  227. <div class="no_results">{lang:No results for SearchQuery}</div>
  228. </li>
  229. {/block:NoSearchResults}
  230.  
  231. {block:Posts}
  232. <li class="post" id="post_{PostID}">
  233. {block:Text}
  234. <div class="regular content">
  235. {block:Title}<h3>{Title}</h3>{/block:Title}
  236. <div class="regular_body">{Body}</div>
  237. </div>
  238. {/block:Text}
  239.  
  240. {block:Answer}
  241. <div class="answer content">
  242. <div class="regular_body">
  243. <p><img src="{AskerPortraitURL-24}" alt="{PlaintextAsker}" class="asker_portrait" /> {lang:Asker asked}:</p>
  244. <p><blockquote>{Question}</blockquote></p>
  245. <p>{Answer}</p>
  246. </div>
  247. </div>
  248. {/block:Answer}
  249.  
  250. {block:Link}
  251. <div class="link content">
  252. <h3><a href="{URL}" title="{Name}" {Target}>{Name}</a></h3>
  253. {block:Description}<div class="caption">{Description}</div>{/block:Description}
  254. </div>
  255. {/block:Link}
  256.  
  257. {block:Photo}
  258. <div class="photo content">
  259. <div class="photo_div">
  260. {LinkOpenTag}<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" title="{Permalink}" class="photo_img" />{LinkCloseTag}
  261. </div>
  262.  
  263. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  264. </div>
  265. {/block:Photo}
  266.  
  267. <!-- 1.2 -->
  268.  
  269. {block:Photoset}
  270. <div class="photoset content">
  271. {block:Photos}
  272. {block:Photo1}
  273. <!-- firsty -->
  274. {/block:Photo1}
  275. <div class="photoset_div">
  276. <img src="{PhotoURL-HighRes}" class="photo_img" />
  277. </div>
  278. <!--
  279. {block:Exif}
  280. {block:Camera}
  281. Camera: {Camera}
  282. {/block:Camera}
  283.  
  284. {block:Aperture}
  285. Aperture: {Aperture}
  286. {/block:Aperture}
  287.  
  288. {block:Exposure}
  289. Exposure: {Exposure}
  290. {/block:Exposure}
  291.  
  292. {block:FocalLength}
  293. Focal Length: {FocalLength}
  294. {/block:FocalLength}
  295. {/block:Exif}
  296. -->
  297. {/block:Photos}
  298.  
  299. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  300. </div>
  301. {/block:Photoset}
  302.  
  303. <!-- /1.2 -->
  304.  
  305. {block:Video}
  306. <div class="video content">
  307. {Video-500}
  308. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  309. </div>
  310. {/block:Video}
  311.  
  312. {block:Audio}
  313. <div class="audio content">
  314. {block:IfShowAlbumArt}
  315. {block:AlbumArt}
  316. <div class="album_art_div">
  317. <img src="{AlbumArtURL}" class="album_art_img" />
  318. </div>
  319. {/block:AlbumArt}
  320. {/block:IfShowAlbumArt}
  321. {AudioPlayerGrey}
  322. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  323. </div>
  324. {/block:Audio}
  325.  
  326. {block:Quote}
  327. <div class="quote content">
  328. <div class="quote_body">
  329. <q>{Quote}</q>
  330. </div>
  331. {block:Source}<div class="caption">{Source}</div>{/block:Source}
  332. </div>
  333. {/block:Quote}
  334.  
  335. {block:Chat}
  336. <div class="conversation content">
  337. {block:Title}<h3>{Title}</h3>{/block:Title}
  338. {block:Lines}
  339. <div class="conversation_line">{block:Label}<span class="conversation_label">{Label}</span> {/block:Label}&ldquo;{Line}&rdquo;</div>
  340. {/block:Lines}
  341. </div>
  342. {/block:Chat}
  343.  
  344. {block:IfShowTags}
  345. {block:HasTags}
  346. <ul class="tags">
  347. {block:Tags}
  348. <li class="tag">
  349. <a href="{TagURL}">#{Tag}</a>
  350. </li>
  351. {/block:Tags}
  352. </ul>
  353. {/block:HasTags}
  354. {/block:IfShowTags}
  355.  
  356. {block:IfShowDates}
  357. {block:Date}
  358. <div class="date">
  359. <a href="{Permalink}">
  360. {block:IfUseTimeAgoForDate}
  361. {TimeAgo}
  362. {/block:IfUseTimeAgoForDate}
  363. {block:IfNotUseTimeAgoForDate}
  364. {DayOfMonth} {ShortMonth} {Year}
  365. {/block:IfNotUseTimeAgoForDate}
  366.  
  367. {block:NoteCount}
  368. {block:IfShowNoteCounts}
  369. / {NoteCountWithLabel}
  370. {/block:IfShowNoteCounts}
  371. {/block:NoteCount}
  372. </a>
  373. </div>
  374. {/block:Date}
  375. {/block:IfShowDates}
  376.  
  377. {block:NoteCount}
  378. {block:IfNotShowDates}
  379. {block:IfShowNoteCounts}
  380. <div class="date">
  381. <a href="{Permalink}">{NoteCountWithLabel}</a>
  382. </div>
  383. {/block:IfShowNoteCounts}
  384. {/block:IfNotShowDates}
  385. {/block:NoteCount}
  386. </li>
  387. {/block:Posts}
  388. </ul>
  389.  
  390. <div id="disqus">
  391. <script type="text/javascript">
  392. var disqus_shortname = '{text:Disqus Shortname}'.trim();
  393. var disqus = disqus_shortname.length ? true : false;
  394. var disqus_url = "{Permalink}";
  395. var disqus_title = "{block:PostTitle}{PostTitle}{/block:PostTitle}";
  396. </script>
  397.  
  398. {block:Permalink}
  399. <div id="disqus_thread"></div>
  400. <script type="text/javascript">
  401. if (disqus) {
  402. var disqus_identifier = {JSPostID};
  403. (function() {
  404. var dsq = document.createElement('script');
  405. dsq.type = 'text/javascript';
  406. dsq.async = true;
  407. dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
  408. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  409. })();
  410. }
  411. </script>
  412. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript={text:Disqus Shortname}">comments powered by Disqus.</a></noscript>
  413. <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
  414. {/block:Permalink}
  415.  
  416. <script type="text/javascript">
  417. if (disqus) {
  418. (function () {
  419. var s = document.createElement('script'); s.async = true;
  420. s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
  421. (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
  422. }());
  423. }
  424. </script>
  425. </div>
  426.  
  427. {block:PostNotes}
  428. {block:IfShowNotesOnPermalinkPages}
  429. <div id="post_notes">{PostNotes}</div>
  430. {/block:IfShowNotesOnPermalinkPages}
  431. {/block:PostNotes}
  432.  
  433. {block:IfInfiniteScrolling}
  434. <div id="pagers">
  435. <p onclick="more()">loading&hellip;</p>
  436. </div>
  437. {/block:IfInfiniteScrolling}
  438.  
  439. {block:IfShowFollowedTumblrs}
  440. {block:IndexPage}
  441. {block:Following}
  442. <ul id="following">
  443. {block:Followed}<li class="followed"><a href="{FollowedURL}" title="{FollowedName} - {FollowedTitle}"><img src="{FollowedPortraitURL-24}" alt="{FollowedName} - {FollowedTitle}" /></a></li>{/block:Followed}
  444. </ul>
  445. {/block:Following}
  446. {/block:IndexPage}
  447. {/block:IfShowFollowedTumblrs}
  448.  
  449. {block:IfNotInfiniteScrolling}
  450. {block:Pagination}
  451. <div id="pagers">
  452. <p>{lang:Page CurrentPage of TotalPages}</p>
  453. {block:NextPage}
  454. <p><a href="{NextPage}">{lang:Next}</a></p>
  455. {/block:NextPage}
  456. {block:PreviousPage}
  457. <p><a href="{PreviousPage}">{lang:Previous}</a></p>
  458. {/block:PreviousPage}
  459. </div>
  460. {/block:Pagination}
  461. {/block:IfNotInfiniteScrolling}
  462.  
  463. {block:IfShowFooterText}
  464. <div id="footer">
  465. {text:Footer Text}
  466. </div>
  467. {/block:IfShowFooterText}
  468. </div>
  469. <script type="text/javascript" src="http://assets.tumblr.com/javascript/tumblelog.js?676"></script>
  470. <script type="text/javascript" src="http://static.tumblr.com/lpiibdu/GgVljwkyh/mootools.1.2.3.yui.js"></script>
  471. <script type="text/javascript">
  472. var permalink_page = false;
  473. {block:PermalinkPage}
  474. permalink_page = true;
  475. {/block:PermalinkPage}
  476.  
  477. var tag = '';
  478. var tag_page = false;
  479. {block:TagPage}
  480. tag = {JSURLSafeTag};
  481. tag_page = true;
  482. {/block:TagPage}
  483.  
  484. function resize_video(v) {
  485. if (!v)
  486. return;
  487.  
  488. try {
  489. var video_width = parseInt({text:Forced Video Width});
  490. v.height = Math.floor( video_width / (v.width / v.height) );
  491. v.width = video_width;
  492. } catch(e) {
  493. console.log(e);
  494. }
  495. }
  496.  
  497. function fix_highres_image(img) {
  498. if (!img)
  499. return;
  500.  
  501. try {
  502. var a = img.getParent();
  503. if (a && a.href && a.href.indexOf(document.domain + '/image/') != -1) {
  504. a.href = img.title;
  505. img.title = img.alt;
  506. }
  507. } catch(e) {
  508. console.log(e);
  509. }
  510. }
  511.  
  512. function adjust_ios_viewport() {
  513. var w1 = parseInt({text:Column Width});
  514. var w2 = parseInt({text:Max Image Width});
  515. var w3 = parseInt({text:Forced Video Width});
  516.  
  517. var widest = w1 > w2 ? w1 : w2;
  518. widest = w3 > widest ? w3 : widest;
  519.  
  520. var margin = parseInt({text:Vertical Spacing});
  521. var viewport_width = margin + widest + margin;
  522. if (viewport_width > 768) {
  523. try {
  524. $('viewport').setProperty('content','width = ' + viewport_width);
  525. } catch(e) {
  526. console.log(e);
  527. }
  528. }
  529. }
  530.  
  531. adjust_ios_viewport();
  532.  
  533. if (!disqus) {
  534. try {
  535. $('disqus').destroy();
  536. } catch(e) {
  537. console.log(e);
  538. }
  539. }
  540.  
  541. if (!permalink_page)
  542. $$('img.photo_img').each(fix_highres_image);
  543.  
  544. {block:IfFixedPositionHeaderImage}
  545. {block:IfHeaderImage}
  546. $(window).addEvent('load', function() {
  547. try {
  548. var new_top_padding = $('header_image').getSize().y + parseInt({text:Vertical Spacing});
  549. $('container').setStyle('padding-top', new_top_padding.toString() + 'px');
  550. $('header_image_div').setStyles({
  551. 'position': 'fixed',
  552. 'top': '0px',
  553. 'left': '50%',
  554. 'margin-left': '-' + ($('header_image').getSize().x / 2).toString() + 'px'
  555. });
  556. } catch(e) {
  557. console.log(e);
  558. }
  559. });
  560. {/block:IfHeaderImage}
  561. {/block:IfFixedPositionHeaderImage}
  562.  
  563. {block:IfForceVideoResize}
  564. $$('.video object').each(resize_video);
  565. $$('.video embed').each(resize_video);
  566. $$('.video iframe').each(resize_video);
  567. {/block:IfForceVideoResize}
  568.  
  569. {block:IfInfiniteScrolling}
  570. var current_page = {CurrentPage};
  571. var total_pages = {TotalPages};
  572. var locked = false;
  573.  
  574. if (current_page == total_pages || total_pages == 0)
  575. $('pagers').dispose();
  576.  
  577. var loaded_posts = [];
  578. $$('li.post').each(function(li) {
  579. loaded_posts.push(li.id);
  580. });
  581.  
  582. function fix_flash_audio(js) {
  583. if (!js)
  584. return;
  585.  
  586. var lines = [];
  587. try {
  588. var newline = eval('\"\\' + 'n\"');
  589. lines = js.split(newline);
  590. } catch(e) {
  591. console.log(e);
  592. }
  593.  
  594. for (var i = 0; i < lines.length; i++) {
  595. if (lines[i].contains('replace'+'If'+'Flash'))
  596. eval(lines[i]);
  597. }
  598. }
  599.  
  600. var ajax = new Request.HTML({
  601. evalScripts: false,
  602. onFailure: function() {
  603. locked = false;
  604. },
  605. onSuccess: function(tree,elements,html,js) {
  606. elements.each(function(el) {
  607. if(el.tagName == 'LI' && el.hasClass('post') && !loaded_posts.contains(el.id)) {
  608. $('posts').adopt(el);
  609. loaded_posts.push(el.id);
  610.  
  611. el.getElements('img.photo_img').each(fix_highres_image);
  612.  
  613. {block:IfForceVideoResize}
  614. el.getElements('.video object').each(resize_video);
  615. el.getElements('.video embed').each(resize_video);
  616. el.getElements('.video iframe').each(resize_video);
  617. {/block:IfForceVideoResize}
  618. }
  619.  
  620. });
  621.  
  622. try {
  623. fix_flash_audio(js);
  624. } catch(e) {
  625. console.log(e);
  626. }
  627.  
  628. current_page++;
  629. locked = false;
  630.  
  631. if (current_page == total_pages)
  632. $('pagers').dispose();
  633. }
  634. });
  635.  
  636. function more() {
  637. if (!locked && current_page != total_pages && total_pages > 0) {
  638. locked = true;
  639. url = (tag_page ? '/tagged/' + tag : '') + '/page/' + (current_page + 1).toString();
  640. return ajax.get(url);
  641. }
  642. }
  643.  
  644. function prox() {
  645. var window_height = $(window).getSize().y;
  646. var document_height = $(window).getScrollSize().y;
  647. var scroll_position = $(window).getScroll().y;
  648.  
  649. if ( document_height - (window_height + scroll_position) < 1600 ) {
  650. more();
  651. } else {
  652. locked = false;
  653. }
  654. }
  655.  
  656. $(window).addEvent('resize',prox);
  657. $(window).addEvent('scroll',prox);
  658. {/block:IfInfiniteScrolling}
  659. </script>
  660. <!--
  661. This Tumblr Theme and all of its CSS, Javascript,
  662. and media assets are subject to Tumblr's Terms of Service:
  663.  
  664. http://www.tumblr.com/terms_of_service
  665. -->
  666. </body>
  667. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement