Advertisement
purethought-s

Theme #33: Lost Stars

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