purethought-s

Theme #32: Hungry Ghosts

Aug 6th, 2014
1,699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.85 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. <!--Sleephy Theme #32:Hungry Ghosts
  6. features:
  7. - infinite scroll
  8. - 6 custom links/2 custom link headers
  9. - back to top button
  10. - clean, simple design
  11. - lots of description room
  12. - all colours/images are customizable
  13. - roman numeral note count on permalink pages
  14.  
  15.  
  16.  
  17. Enjoy this theme, thankyou for using it :)
  18. xo
  19. -->
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  33. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  34.  
  35.  
  36. <head>
  37.  
  38.  
  39. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  40. <script type="text/javascript">//** jQuery Scroll to Top Control script- (c) I made this script myself (Kyle Monk) and it is hosted on my personal site so would appreciate if you followed my blog at kylemonk.tumblr.com if you use it or for details on how to change the location.
  41. //** Graphic originally from tumbler dashboard, for details on how to change graphic colour, contact me at kylemonk.tumblr.com
  42. //** v1.1 (April 7th, 10'):
  43. //** 1) Adds ability to scroll to an absolute position (from top of page) or specific element on the page instead.
  44. //** 2) Fixes scroll animation not working in Opera.
  45.  
  46.  
  47. var scrolltotop={
  48. //startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control
  49. //scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top).
  50. setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
  51. controlHTML: '<img src="https://cdn0.iconfinder.com/data/icons/arrows-android-l-lollipop-icon-pack/24/collapse2-24.png" style="filter:alpha(opacity=70); opacity:0.6;" width="20"/>', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
  52. controlattrs: {offsetx:35, offsety:60}, //offset of control relative to right/ bottom of window corner
  53. anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links
  54.  
  55. state: {isvisible:false, shouldvisible:false},
  56.  
  57. scrollup:function(){
  58. if (!this.cssfixedsupport) //if control is positioned using JavaScript
  59. this.$control.css({opacity:0}) //hide control immediately after clicking it
  60. var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
  61. if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists
  62. dest=jQuery('#'+dest).offset().top
  63. else
  64. dest=0
  65. this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
  66. },
  67.  
  68. keepfixed:function(){
  69. var $window=jQuery(window)
  70. var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
  71. var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
  72. this.$control.css({left:controlx+'px', top:controly+'px'})
  73. },
  74.  
  75. togglecontrol:function(){
  76. var scrolltop=jQuery(window).scrollTop()
  77. if (!this.cssfixedsupport)
  78. this.keepfixed()
  79. this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
  80. if (this.state.shouldvisible && !this.state.isvisible){
  81. this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
  82. this.state.isvisible=true
  83. }
  84. else if (this.state.shouldvisible==false && this.state.isvisible){
  85. this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
  86. this.state.isvisible=false
  87. }
  88. },
  89.  
  90. init:function(){
  91. jQuery(document).ready(function($){
  92. var mainobj=scrolltotop
  93. var iebrws=document.all
  94. mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
  95. mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
  96. mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
  97. .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
  98. .attr({title:'back to top'})
  99. .click(function(){mainobj.scrollup(); return false})
  100. .appendTo('body')
  101. if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
  102. mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
  103. mainobj.togglecontrol()
  104. $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
  105. mainobj.scrollup()
  106. return false
  107. })
  108. $(window).bind('scroll resize', function(e){
  109. mainobj.togglecontrol()
  110. })
  111. })
  112. }
  113. }
  114.  
  115. scrolltotop.init()</script>
  116.  
  117.  
  118.  
  119.  
  120.  
  121. <title>{Title}</title>
  122. <link rel="shortcut icon" href="{Favicon}">
  123. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  124. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  125.  
  126.  
  127. <meta name="color:Background" content="#ffffff"/>
  128. <meta name="color:Text" content="#a8a8a8"/>
  129. <meta name="color:Sidebar Links" content="#b8b8b8"/>
  130. <meta name="color:Hover" content="#f2f2f2"/>
  131. <meta name="color:Post Links" content="#c0bfbf"/>
  132. <meta name="color:Answer Backg" content="#000000"/>
  133. <meta name="image:Header Background" content=""/>
  134. <meta name="colour:Header Background" content="#000000"/>
  135. <meta name="text:LinkBox1Title" content="more" />
  136. <meta name="text:LinkBox2Title" content="general" />
  137. <meta name="text:Link1" content="/tags" />
  138. <meta name="text:Link1Title" content="navigation" />
  139. <meta name="text:Link2" content="http://sleephythemes.co.vu" />
  140. <meta name="text:Link2Title" content="themes" />
  141. <meta name="text:Link3" content="/tagged/wishlist" />
  142. <meta name="text:Link3Title" content="wishlist" />
  143. <meta name="text:Link4" content="/" />
  144. <meta name="text:Link4Title" content="refresh" />
  145. <meta name="text:Link5" content="/ask" />
  146. <meta name="text:Link5Title" content="message" />
  147. <meta name="text:Link6" content="/archive" />
  148. <meta name="text:Link6Title" content="archive" />
  149.  
  150. <script type="text/javascript"
  151. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  152. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  153.  
  154. <style type="text/css">
  155.  
  156. @font-face{font-family:Callie; src: url(http://static.tumblr.com/xrmodho/c2cn9vpkz/theanomodern-regular.ttf);}
  157.  
  158.  
  159. ::-webkit-scrollbar-thumb {
  160. height:auto;
  161. background-image:url('{image:Header Background}');
  162. }
  163.  
  164. ::-webkit-scrollbar {
  165. height:9px;
  166. width:6px;
  167. background-color:{color:Background};
  168. }
  169.  
  170. body {
  171. background:{color:background};
  172. margin:0px;
  173. color:{color:text};
  174. font: normal 12px 'calibri', Times, FreeSerif, serif;
  175. line-height:100%;
  176. letter-spacing:0px;
  177. text-align:justify;
  178. }
  179.  
  180.  
  181. a {
  182. text-decoration:none;
  183. outline:none;
  184. -moz-outline-style:none;
  185. color:{color:Post Links};
  186. }
  187.  
  188. img {
  189. border:none;
  190. }
  191.  
  192. blockquote {
  193. padding-left:5px;
  194. border-left:2px solid;
  195. }
  196.  
  197. blockquote blockquote {
  198. padding-left:5px;
  199. border-left:2px solid;
  200. }
  201.  
  202. h1 {
  203.  
  204. font: normal 15px 'Times New Roman', Times, FreeSerif, serif;
  205. letter-spacing:3px;
  206. font-style:none;
  207. line-height:10px;
  208. text-align:left;
  209. padding:2px;
  210. }
  211.  
  212. a:hover {
  213. color:#000000;
  214. -moz-transition-duration:0.3s;
  215. -webkit-transition-duration:0.3s;
  216. -o-transition-duration:0.3s;
  217. }
  218.  
  219.  
  220. /*ENTRIES*/
  221.  
  222. #entries {
  223. padding:0px;
  224. width:775px;
  225. margin-left:315px;
  226. margin-top:7px;
  227. font: normal 11px 'calibri', Times, FreeSerif, serif;
  228. letter-spacing:0px;
  229. }
  230.  
  231. #post {
  232. {block:IndexPage}width:250px;{/block:IndexPage}
  233. {block:PermalinkPage}width:500px;{/block:PermalinkPage}
  234. padding:4px;
  235.  
  236. }
  237.  
  238. .perma
  239. {
  240. opacity: 0.0;
  241. filter: alpha(opacity = 0);
  242. letter-spacing:2px;
  243. width: auto;
  244. background-color:{color:background};
  245. line-height:12px;
  246. text-transform:uppercase;
  247. font-family:calibri;
  248. padding:4px;
  249. margin-left:232px;
  250. margin-top:0px;
  251. font-size: 8px;
  252. position:absolute;
  253. text-align: center;
  254. display:block;
  255.  
  256. color: {color:perma text};
  257. -webkit-transition: opacity 0.4s linear;
  258. -moz-transition: all 0.4s linear;
  259. transition: all 0.4s linear;
  260.  
  261. }
  262. #post:hover .perma {
  263.  
  264. -webkit-transition: opacity 0.4s linear;
  265. opacity: .95;
  266.  
  267. -moz-transition: all 0.4s linear;
  268. transition: all 0.4s linear;
  269. filter: alpha(opacity = 100);
  270.  
  271. }
  272.  
  273.  
  274.  
  275. iframe#tumblr_controls { white-space:nowrap; -webkit-filter: invert(100%); -moz-filter: invert(100%); -o-filter: invert(100%); -ms-filter: invert(100%); filter: invert(100%); opacity:.5;}
  276.  
  277. /*SIDEBAR*/
  278.  
  279. #headerr{
  280. position:absolute;
  281. width:100%;
  282. top:0px;
  283. left:0px;
  284. height:34px;
  285. z-index:999999999999;
  286. background-image:url('{image:Header Background}');
  287. background-color:{color:Header Background};
  288. }
  289.  
  290. #sidebar {
  291. position:static;
  292. margin-top:40px;
  293. margin-left:320px;
  294. width:765px;
  295. height:150px;
  296. background:#fff;
  297. border-bottom:1px solid #ccc;
  298. }
  299.  
  300. #sidebarimage {
  301. width:245px;
  302. position:absolute;
  303. text-align:center;
  304. margin-left:244px;
  305. line-height:40px;
  306. margin-top:25px;
  307. padding:20px;
  308. font-family:callie;
  309. font-size:33px;
  310. letter-spacing:8px;
  311. color:{color:Text};
  312. text-transform:uppercase;
  313. }
  314.  
  315. #sidebarimage a{
  316. color:{color:Text};
  317. }
  318.  
  319.  
  320.  
  321. .links {
  322. width:132px;
  323. font: normal 15px 'Times New Roman', Times, FreeSerif, serif;
  324. padding: 7px;
  325. letter-spacing:3px;
  326. color:#000;
  327. text-align:center;
  328. text-transform:lowercase;
  329. position:absolute;
  330. margin-top:35px;
  331. margin-left:10px;
  332. }
  333.  
  334. .links a {
  335. padding:13px;
  336. color:{color:Sidebar Links};
  337. }
  338.  
  339. .links a:hover {
  340. color:{color:Hover};
  341. }
  342.  
  343. .links2 {
  344. width:132px;
  345. font: normal 15px 'Times New Roman', Times, FreeSerif, serif;
  346. padding: 7px;
  347. letter-spacing:3px;
  348. color:#000;
  349. text-align:center;
  350. text-transform:lowercase;
  351. position:absolute;
  352. margin-top:35px;
  353. margin-left:120px;
  354. }
  355.  
  356. .links2 a {
  357. padding:13px;
  358. color:{color:Sidebar Links};
  359. }
  360.  
  361. .links2 a:hover {
  362. color:{color:Hover};
  363. }
  364.  
  365. .links3 {
  366. width:262px;
  367. font: normal 13px 'Times New Roman', Times, FreeSerif, serif;
  368. padding: 7px;
  369. letter-spacing:3px;
  370. color:#000;
  371. text-align:justify;
  372. text-transform:lowercase;
  373. position:absolute;
  374. margin-top:35px;
  375. margin-left:510px;
  376. }
  377.  
  378. .links3 a {
  379. padding:13px;
  380. color:{color:Sidebar Links};
  381. }
  382.  
  383. .links3 a:hover {
  384. color:{color:Hover};
  385. }
  386.  
  387. .links4 {
  388. width:132px;
  389. font: normal 15px 'Times New Roman', Times, FreeSerif, serif;
  390. padding: 7px;
  391. letter-spacing:3px;
  392. color:#000;
  393. text-align:center;
  394. text-transform:lowercase;
  395. position:absolute;
  396. margin-top:35px;
  397. margin-left:620px;
  398. }
  399.  
  400. .links4 a {
  401. padding:13px;
  402. color:{color:Sidebar Links};
  403. }
  404.  
  405. .links4 a:hover {
  406. color:{color:Hover};
  407. }
  408.  
  409.  
  410. #audio {
  411. margin-bottom:5px;
  412. width:250px;
  413. height:105px;
  414. }
  415.  
  416. .albumart {
  417. width:100px;
  418. height:100px;
  419. position:absolute;
  420. }
  421.  
  422. .albumart img {
  423. width:100px;
  424. height:100px;
  425. float:left;
  426. }
  427. .playercontainer {
  428. opacity: .2;
  429. display:block;
  430. width:100px;
  431. height:100px;
  432. background:#fff;
  433. position:absolute;
  434. -webkit-transition:all 0.5s ease-in-out;
  435. -moz-transition:all 0.5s ease-in-out;
  436. -o-transition:all 0.5s ease-in-out;
  437. -ms-transition: all 0.5s ease-in-out;
  438. transition:all 0.5s ease-in-out;
  439. }
  440.  
  441. .playercontainer:hover {
  442. opacity:.7;
  443. position:absolute;
  444. -webkit-transition:all 0.5s ease-in-out;
  445. -moz-transition:all 0.5s ease-in-out;
  446. -o-transition:all 0.5s ease-in-out;
  447. -ms-transition: all 0.5s ease-in-out;
  448. transition:all 0.5s ease-in-out;
  449. }
  450.  
  451. .player {
  452. margin-left:36px;
  453. margin-top:36px;
  454. width:25px;
  455. height:25px;
  456. overflow:hidden;
  457. position:absolute;
  458. background:#fff;
  459. }
  460.  
  461. .audioinfo {
  462. margin-left:110px;
  463. float:left;
  464. color:{color:Permalink Color 2};
  465.  
  466. font-family:calibri;
  467. letter-spacing:1px;
  468. font-size:8px;
  469. text-transform:uppercase;
  470. width:136px;
  471. padding:2px;
  472. margin-top:3px;
  473. }
  474.  
  475. .audioinfo b {
  476. font-family:calibri;
  477. letter-spacing:1px;
  478. font-size:8px;
  479. text-transform:uppercase;
  480. color:{color:Permalink Color 1};
  481. background:{color:Permalink Color 2};
  482. padding:3px 4px 3px 4px;
  483. font-weight:normal;
  484. margin-right:5px;
  485. }
  486.  
  487. /*QUESTION*/
  488.  
  489. #asker {
  490. color:#fcfcfc;
  491. padding:14px;
  492. font-family:arial;
  493. font-size:11px;
  494. letter-spacing:0px;
  495. text-align:left;
  496. margin-top:0px;
  497. text-transform:lowercase;
  498. line-height:100%;
  499. background-color:{color:Answer Backg}
  500. }
  501.  
  502. #postnotes{ width: 260px;padding: 5px; top: 235px;text-align:left;font-family:calibri; border-right:1px solid #ccc;position:absolute;
  503. margin-left:495px; max-height:500px;overflow:auto;
  504.  
  505.  
  506.  
  507. }
  508. #postnotes li{
  509. list-style-type: lower-roman;
  510. padding:5px;
  511. }
  512.  
  513.  
  514.  
  515. #postnotes img {
  516. display:none;
  517. }
  518.  
  519. #swag{
  520. text-align:right;
  521. padding:5px;
  522. color:gray;
  523. font-family:Times New Roman;
  524. font-size:10px;
  525. }
  526.  
  527. #swag a{
  528. color:gray;
  529. font-size:11px;
  530. font-family:calibri;
  531. text-transform:lowercase;
  532. color:black;
  533. }
  534.  
  535. {CustomCSS}
  536.  
  537.  
  538.  
  539. </style> <script type="text/javascript" src="http://static.tumblr.com/xrmodho/zoUmtvm6l/jquery.js"></script>
  540.  
  541.  
  542.  
  543.  
  544.  
  545. </head><body>
  546.  
  547. <div id="headerr"></div>
  548.  
  549. <div id="sidebar">
  550.  
  551. <div id="sidebarimage">
  552. <a href="/">
  553. {Title}
  554. </a>
  555. </div>
  556.  
  557. <div class="links">
  558. <i>{text:LinkBox1Title}</i><br><br>
  559. <a href="{text:Link1}">{text:Link1Title}</a><br>
  560. <a href="{text:Link2}">{text:Link2Title}</a><br>
  561. <a href="{text:Link3}">{text:Link3Title}</a>
  562. </div>
  563. <div class="links2">
  564. <i>{text:LinkBox2Title}</i><br><br>
  565. <a href="{text:Link4}">{text:Link4Title}</a><br>
  566. <a href="{text:Link5}">{text:Link5Title}</a><br>
  567. <a href="{text:Link6}">{text:Link6Title}</a><br>
  568.  
  569. </div>
  570.  
  571. <div class="links3">
  572. <i>{description}</i>
  573.  
  574. </div>
  575.  
  576.  
  577.  
  578.  
  579. </div>
  580.  
  581. <div id="entries">
  582. {block:Posts}
  583. <div id="post">
  584.  
  585. {block:Text}
  586. <h1><i>{block:Title}{Title}{/block:Title}</i></h1>
  587. {Body}{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Text}
  588.  
  589. {block:Photo}{block:IndexPage}
  590. <div class="perma" ><a href="{reblogurl}"><img src="http://cdn5.iconfinder.com/data/icons/TWG_Retina_Icons/64/arrow_circle_left.png" width="10px"></a></div>{LinkOpenTag}<a href="{Permalink}"><img src="{PhotoURL-500}" width="250"></a>{LinkCloseTag}{/block:IndexPage}
  591. {block:PermalinkPage}<center><img src="{PhotoURL-500}" width="500">
  592. {block:Caption}{Caption}{/block:Caption}
  593. </center>
  594. {/block:PermalinkPage}
  595. {/block:Photo}
  596.  
  597. {block:Photoset}{Photoset-250}{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Photoset}
  598.  
  599. {block:Quote}<h1><big><i>"{Quote}"</big></i></h1>
  600. {block:Source}<div class="qsource">{Source}</div>{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}
  601. {/block:Source}{/block:Quote}
  602.  
  603. {block:Link}<h1><i><a href="{URL}" {Target}>{Name}</a></i></h1>{block:Description}{Description}{/block:Description}{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Link}
  604.  
  605. {block:Chat}{block:Title}{Title}{/block:Title}{block:Lines}{block:Label}<b>{Label}</b>{/block:Label} {Line}<br>{/block:Lines}{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Chat}
  606.  
  607. {block:Audio}
  608. <div id="audio">
  609. <div class="albumart"><img src="http://static.tumblr.com/4wyqgof/Dyvm2qmp1/default.jpg" width="100px" height="100px"></div>{block:AlbumArt}<div class="albumart"><img src="{AlbumArtURL}" width="100px" height="100px"></div>{/block:AlbumArt}<div class="playercontainer"><div class="player">{AudioPlayerwhite}</div></div>
  610.  
  611. {block:TrackName}<div class="audioinfo"><b>Title</b> {TrackName}</div><br>{/block:TrackName}
  612. {block:Artist}<div class="audioinfo"><b>Artist</b> {Artist}</div><br>{/block:Artist}
  613. {block:Album}<div class="audioinfo"><b>Album</b> {Album}</div>{/block:Album}
  614. {block:PlayCount}<div class="audioinfo"><b>Played</b> {FormattedPlayCount} times</div> {/block:PlayCount}
  615. </div>{block:Caption}{Caption}{/block:Caption}
  616. {block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Audio}
  617.  
  618. {block:Video}{Video-250}{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Video}
  619.  
  620. {block:Answer}<div id="asker">{Question} —<span style="text-align:lowercase; color:#fcfcfc;font-style:italic; "><b><i>{Asker}</i></b><br></span> </div><left><div style="padding:4px;margin-top:3px;font-size:11px;"><font face="arial">{Answer}</font></div>{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Answer}
  621.  
  622.  
  623. </div>
  624. {/block:Posts}
  625. <br><br>{block:PostNotes}<div id="postnotes"><left>{PostNotes}</div>{/block:PostNotes}
  626. {/block:Posts}</div></div></div>
  627. <br><br><br><br>
  628.  
  629.  
  630. </div>
  631.  
  632. <script>
  633. window.onload = function () {
  634. document.body.insertAdjacentHTML( 'beforeEnd', '<iframe id="my-like-frame" style="display:none;"></iframe>' );
  635. document.addEventListener( 'click', function ( event ) {
  636. var myLikeLink = event.target;
  637. if( myLikeLink.className.indexOf( 'my-like' ) > -1 ) {
  638. var myLikeFrame = document.getElementById( 'my-like-frame' ),
  639. liked = ( myLikeLink.className == 'my-liked' ),
  640. command = liked ? 'unlike' : 'like',
  641. reblog = myLikeLink.getAttribute( 'data-reblog' ),
  642. postId = myLikeLink.getAttribute( 'data-id' ),
  643. oauth = reblog.slice( -8 ),
  644. likeUrl = 'http://tumblr.com/' + command + '/' + oauth + '?id=' + postId;
  645. myLikeFrame.src = likeUrl;
  646. liked ? myLikeLink.className = 'my-like'
  647. : myLikeLink.className = 'my-liked';
  648. };
  649. }, false );
  650. };
  651. </script>
  652.  
  653. {block:indexpage}
  654. {block:NextPage}<div id="nav"><a href="{NextPage}"></a></div>{/block:NextPage}
  655. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
  656. <script type="text/javascript" src="http://static.tumblr.com/iddq6cw/ldLmtikn2/mdrns.js"></script>
  657.  
  658.  
  659. <script type="text/javascript">
  660. $(window).load(function () {
  661. var $content = $('#entries');
  662. $content.masonry({itemSelector: '#post'}),
  663. $content.infinitescroll({
  664. navSelector : '#nav',
  665. nextSelector : '#nav a',
  666. itemSelector : '#post',
  667. loading: {
  668. finishedMsg: '',
  669. },
  670. bufferPx : 600,
  671. debug : false,
  672. },
  673. // call masonry as a callback.
  674. function( newElements ) {
  675. var $newElems = $( newElements );
  676. $newElems.hide();
  677. // ensure that images load before adding to masonry layout
  678. $newElems.imagesLoaded(function(){
  679. $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(300);} );
  680.  
  681.  
  682. });
  683. });
  684. });
  685. </script>
  686.  
  687. <script type="text/javascript">
  688. $(window).load(function(){
  689. $("p").remove(":contains('(Source:')");
  690. $("p").remove(":contains('(source:')");
  691. $("p").remove(":contains('(via ')");
  692. });
  693. </script>
  694. {/block:indexpage}
  695.  
  696. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment