Advertisement
rasperries

defector edit

Apr 21st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.21 KB | None | 0 0
  1. <!--
  2.  
  3.  
  4. theme: defector // updated 25.6.2017
  5. - sorrism -
  6.  
  7.  
  8. -->
  9.  
  10. <!DOCTYPE html>
  11. <head>
  12.  
  13. <title>{block:TagPage}#{Tag} : {/block:TagPage} {block:PostSummary}{PostSummary} : {/block:PostSummary}{Title}</title>
  14.  
  15. <link rel="shortcut icon" href="{favicon}">
  16.  
  17. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  18. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  19.  
  20. <!--Default Variables-->
  21.  
  22. <meta name="color:Background" content="#ffffff"/>
  23. <meta name="color:Text" content="#cccccc"/>
  24. <meta name="color:Link" content="#a7a7a7"/>
  25. <meta name="color:Title" content="#000000"/>
  26. <meta name="color:Scrollbar" content="#d5d5d5" />
  27. <meta name="color:Borders" content="#dfdfdf"/>
  28. <meta name="color:Accents" content="#fbfbfb"/>
  29.  
  30. <meta name="if:Infinite Scroll" content="1"/>
  31. <meta name="if:Manual Load" content="0"/>
  32. <meta name="if:Hide Captions" content="0"/>
  33. <meta name="if:Back To Top Link" content="1"/>
  34.  
  35. <meta name="text:Link 1 URL" content=""/>
  36. <meta name="text:Link 1" content=""/>
  37. <meta name="text:Link 2 URL" content=""/>
  38. <meta name="text:Link 2" content=""/>
  39. <meta name="text:Link 3 URL" content=""/>
  40. <meta name="text:Link 3" content=""/>
  41.  
  42. <meta name="text:Ask Title" content="inbox"/>
  43. <meta name="text:Archive Title" content="archive"/>
  44.  
  45. <meta name="select:Post Width" content="300" title="300px"/>
  46. <meta name="select:Post Width" content="325" title="325px"/>
  47. <meta name="select:Post Width" content="350" title="350px"/>
  48. <meta name="select:Post Width" content="400" title="400px"/>
  49. <meta name="select:Post Width" content="450" title="450px"/>
  50. <meta name="select:Post Width" content="500" title="500px"/>
  51. <meta name="select:Post Width" content="540" title="540px"/>
  52.  
  53. <link href='//static.tumblr.com/sas2ex2/HFinqriui/photoset.css' rel='stylesheet' type='text/css'>
  54.  
  55. <script src="//use.edgefonts.net/source-sans-pro:n4,i4,n6.js"></script>
  56.  
  57. <!--CSS customization here. -->
  58.  
  59. <style type="text/css">
  60.  
  61. /*tumblr controls and lightbox*/
  62.  
  63. .tmblr-lightbox {background:rgba({RGBcolor:background}, .95)!important;}
  64.  
  65. .tmblr-lightbox img {opacity:0;}
  66.  
  67. .lightbox-caption {
  68. color:{color:title}!important;
  69. font-family:inherit!important;
  70. font-size:1em!important;
  71. font-weight:normal!important;
  72. text-shadow:none!important;
  73. }
  74.  
  75. .lightbox-image {
  76. -moz-box-shadow:none!important;
  77. -webkit-box-shadow:none!important;
  78. box-shadow:none!important;
  79. -moz-border-radius:0px!important;
  80. -webkit-border-radius:0px!important;
  81. border-radius:0px!important;
  82. padding:3px!important;
  83. border:1px solid {color:borders}!important;
  84. margin-top:-4px!important;
  85. margin-left:-4px!important;
  86. opacity:1!important;
  87. }
  88.  
  89. .vignette {opacity:0!Important;}
  90.  
  91. .iframe-controls--desktop {
  92. white-space:nowrap!important;
  93. -webkit-filter:invert(100%)!important;
  94. -moz-filter:invert(100%)!important;
  95. -ms-filter:invert(100%)!important;
  96. -o-filter:invert(100%)!important;
  97. filter:invert(100%)!important;
  98. top:5px!important;
  99. right:5px!important;
  100. opacity:.4!important;
  101. position:fixed!important;
  102. }
  103.  
  104. /*tooltip*/
  105.  
  106. .ui-tooltip {
  107. position:Absolute;
  108. z-index:9999;
  109. padding-top:15px;
  110. }
  111.  
  112. .ui-tooltip-content {
  113. background:{color:background};
  114. padding:2px 3px;
  115. border:1px solid {color:borders};
  116. font-size:1em;
  117. text-transform:lowercase;
  118. }
  119.  
  120. /*scrollbar*/
  121.  
  122. ::-webkit-scrollbar{
  123. height:3px;
  124. width:3px;
  125. background:inherit;
  126. }
  127.  
  128. ::-webkit-scrollbar-thumb {background:{color:scrollbar};}
  129.  
  130.  
  131. /*general*/
  132.  
  133. body {
  134. background:{color:background};
  135. color:{color:text};
  136. font:10px/1.5em source-sans-pro, helvetica, arial;
  137. -moz-osx-font-smoothing:grayscale;
  138. -webkit-font-smoothing:antialiased;
  139. font-smoothing:antialiased;
  140. word-wrap:break-word;
  141. text-align:left;
  142. margin:0;
  143. }
  144.  
  145. a {
  146. color:{color:text};
  147. text-decoration:none;
  148. transition:all .4s linear;
  149. -webkit-transition:all .4s linear;
  150. -o-transition:all .4s linear;
  151. -moz-transition:all .4s linear;
  152. }
  153.  
  154. a, a img {cursor:pointer;}
  155.  
  156. a:hover {
  157. color:{color:link};
  158. text-decoration:none;
  159. }
  160.  
  161. .tex a, .a a, .caption a, .title a {border-bottom:1px solid {color:borders};}
  162.  
  163. .tex a:hover, .a a:hover, .caption a:hover, .title a:hover {border-color:{color:Link};}
  164.  
  165. img {
  166. opacity:1;
  167. border:0;
  168. text-decoration:none;
  169. max-width:100%;
  170. height:auto;
  171. display:block;
  172. }
  173.  
  174. blockquote {
  175. border-left:1px solid {color:borders};
  176. padding:.25em 0 .25em 15px;
  177. margin:1.25em 0;
  178. }
  179.  
  180. pre {
  181. padding:0;
  182. margin:0;
  183. line-height:inherit!important;
  184. background:transparent;
  185. font-family:inherit!Important;
  186. font-size:inherit!important;
  187. white-space:pre-wrap;
  188. white-space:-moz-pre-wrap;
  189. white-space:-pre-wrap;
  190. white-space:-o-pre-wrap;
  191. word-wrap:break-word;
  192. }
  193.  
  194. p {margin:.5em 0;}
  195.  
  196. p:first-of-type {margin-top:0!important}
  197.  
  198. p:last-of-type {margin-bottom:0!important}
  199.  
  200. b, strong {
  201. color:{color:title};
  202. font-weight:600;
  203. }
  204.  
  205. ol, ul {
  206. list-style:none;
  207. padding:.25em 0 .25em 15px;
  208. }
  209.  
  210. li {
  211. padding-left:15px;
  212. position:relative;
  213. }
  214.  
  215. article li {margin:.25em 0;}
  216.  
  217. article li:before {
  218. left:-15px;
  219. top:0;
  220. position:absolute;
  221. content:'';
  222. width:20px;
  223. height:1px;
  224. background:{color:borders};
  225. display:block;
  226. margin-top:.75em;
  227. }
  228.  
  229. small, big, sub, pre {
  230. font-size:1em!important;
  231. line-height:1.5em!important;
  232. vertical-align:baseline!important;
  233. }
  234.  
  235. h1, h2, h3, h4 {
  236. font-size:1.1em;
  237. line-height:1.5em;
  238. margin:0;
  239. padding:15px 0;
  240. color:{color:title};
  241. }
  242.  
  243. .posts > h1:first-child, .posts > h2:first-child, .posts > h3:first-child, .posts > h4:first-child {padding:0 0 15px 0;}
  244.  
  245. hr {
  246. border:none;
  247. box-shadow:0;
  248. margin:1.5em 25%;
  249. border-top:1px solid {color:borders};
  250. }
  251.  
  252. header, article, footer, .player {
  253. -webkit-animation-name: fade-in;
  254. -webkit-animation-duration: 1.5s;
  255. }
  256.  
  257. .player {-webkit-animation-duration: 3s;}
  258.  
  259. /*header*/
  260.  
  261. header {
  262. position:relative;
  263. margin:150px auto 50px auto;
  264. width:{select:post width}px;
  265. }
  266.  
  267. #d, nav {
  268. display:inline-block;
  269. width:50%;
  270. vertical-align:top;
  271. }
  272.  
  273. .tai {
  274. display:block;
  275. line-height:15px;
  276. font-size:15px;
  277. font-weight:600;
  278. color:{color:title};
  279. }
  280.  
  281. nav a:not(.tai) {
  282. margin-right:5px;
  283. text-transform:lowercase;
  284. color:{color:text};
  285. }
  286.  
  287. nav a:last-of-type {margin-right:0!important;}
  288.  
  289. nav a:hover {color:{color:link};}
  290.  
  291. /*pagination*/
  292.  
  293. footer {
  294. {block:ifinfinitescroll}
  295. {block:ifnotmanualload}
  296. display:none;
  297. {/block:ifnotmanualload}
  298. {/block:ifinfinitescroll}
  299. width:{select:post width}px;
  300. margin:0 auto 100px auto;
  301. text-align:right;
  302. text-transform:lowercase;
  303. }
  304.  
  305. .load {
  306. font-weight:600;
  307. color:{color:title};
  308. }
  309.  
  310. footer a {display:inline-block;}
  311.  
  312. #infscr-loading {display:none!important;}
  313.  
  314. {block:ifinfinitescroll}
  315. #pagination {display:none;}
  316. {/block:ifinfinitescroll}
  317.  
  318. /*posts*/
  319.  
  320. #entries {
  321. margin:0 auto;
  322. width:{select:post width}px;
  323. }
  324.  
  325. .posts {
  326. width:{select:post width}px;
  327. margin-bottom:100px;
  328. {block:permalinkpage}
  329. margin-bottom:25px;
  330. {/block:permalinkpage}
  331. counter-increment:post;
  332. }
  333.  
  334. .posts:last-of-type {margin-bottom:50px;}
  335.  
  336. .ph {
  337. position:relative;
  338. overflow:hidden;
  339. padding:3px;
  340. border:1px solid {color:borders};
  341. }
  342.  
  343. .ph img {
  344. width:100%;
  345. display:block;
  346. }
  347.  
  348. .video * {
  349. display:block;
  350. min-width:100%;
  351. }
  352.  
  353. /*text and captions*/
  354.  
  355. .title {
  356. font-weight:600;
  357. color:{color:title};
  358. font-size:1.2em;
  359. line-height:1.5em;
  360. }
  361.  
  362. .title a {color:{color:title};}
  363.  
  364. .title a:hover {color:{color:link};}
  365.  
  366. .ted {margin-top:15px;}
  367.  
  368. .quote {
  369. font-size:1.2em;
  370. padding:10px;
  371. background:{color:accents};
  372. margin-bottom:15px;
  373. }
  374.  
  375. .posts img, .posts li, .posts blockquote, .tex img {max-width:100%;}
  376.  
  377. .comment {
  378. margin:10px 0 5px 0;
  379. padding:0;
  380. border:0;
  381. clear:both!important;
  382. }
  383.  
  384. .comment > p:first-of-type {
  385. margin:0;
  386. display:inline;
  387. }
  388.  
  389. .commented > p:first-of-type:before {content: '\00a0';}
  390.  
  391. .comment > p:last-of-type {margin:0;}
  392.  
  393. .comment:last-of-type {margin-bottom:0px;}
  394.  
  395. .tumblr_blog {
  396. display:inline;
  397. margin-bottom:-1px;
  398. float:left;
  399. font-weight:600;
  400. border:0!important;
  401. color:{color:title}!important;
  402. }
  403.  
  404. .tumblr_blog:hover {color:{color:link}!important;}
  405.  
  406. /*audio*/
  407.  
  408. .player {
  409. width:25px;
  410. height:24px;
  411. position:absolute;
  412. left:10px;
  413. top:calc(50% - 12px);
  414. display:block;
  415. overflow:hidden;
  416. }
  417.  
  418. .hold {
  419. background:{color:accents};
  420. position:relative;
  421. display:block;
  422. min-height:24px;
  423. padding:10px;
  424. }
  425.  
  426. .audio_info {
  427. vertical-align:middle;
  428. margin-left:50%;
  429. max-width:calc(50% - 10px);
  430. }
  431.  
  432. .audio_info span {
  433. white-space:nowrap;
  434. overflow:hidden;
  435. text-overflow:ellipsis;
  436. display:block;
  437. }
  438.  
  439. .hold .track {
  440. font-weight:600;
  441. color:{color:title};
  442. }
  443.  
  444. /*asks*/
  445.  
  446. .q {
  447. padding:10px;
  448. background:{color:accents};
  449. }
  450.  
  451. .as:before {
  452. content:'';
  453. display:inline-block;
  454. vertical-align:middle;
  455. width:15px;
  456. height:1px;
  457. background:rgba({RGBcolor:text},.3);
  458. margin-right:5px;
  459. }
  460.  
  461. .as {
  462. margin:15px 0 0 50%;
  463. text-transform:lowercase;
  464. }
  465.  
  466. .as span {font-weight:600;}
  467.  
  468. .as span, .as span a {color:{color:title}!important;}
  469.  
  470. .a {margin-top:15px}
  471.  
  472. /*chats*/
  473.  
  474. .chat {
  475. margin:0;
  476. padding:0;
  477. list-style:none;
  478. text-align:left;
  479. }
  480.  
  481. .chat li:before {display:none;}
  482.  
  483. .l {
  484. border-bottom:1px solid {color:borders};
  485. padding:0 0 5px 0;
  486. margin-bottom:5px;
  487. }
  488.  
  489. .l:last-of-type {
  490. margin:0;
  491. padding:0;
  492. border:0;
  493. }
  494.  
  495. .label {
  496. font-weight:600;
  497. color:{color:title};
  498. display:inline-block;
  499. }
  500.  
  501. /*permalink and notes*/
  502.  
  503. .when {
  504. text-transform:lowercase;
  505. margin-top:5px;
  506. clear:both!important;
  507. }
  508.  
  509. .when span {display:block;}
  510.  
  511. {block:indexpage}.when a:first-of-type:before {
  512. content:'entry # ' counter(post) '\00a0';
  513. display:inline-block;
  514. }{/block:indexpage}
  515.  
  516. .when a {display:inline-block;}
  517.  
  518. .r:before {
  519. content:'';
  520. display:inline-block;
  521. vertical-align:middle;
  522. width:10px;
  523. height:1px;
  524. background:rgba({RGBcolor:text},.3);
  525. margin-right:5px;
  526. }
  527.  
  528. .when div {
  529. display:inline-block;
  530. vertical-align:top;
  531. width:50%;
  532. }
  533.  
  534. .tags a {display:inline;}
  535.  
  536. .pagenotes {
  537. padding-top:25px;
  538. border-top:1px solid {color:borders};
  539. text-transform:lowercase;
  540. }
  541.  
  542. .pagenotes ol {margin:0;}
  543.  
  544. ol.notes {
  545. list-style-type:none;
  546. padding:0px;
  547. }
  548.  
  549. ol.notes li.note {
  550. display:block;
  551. padding-left:0;
  552. margin-bottom:5px;
  553. }
  554.  
  555. ol.notes li:before {display:none;}
  556.  
  557. ol.notes blockquote {margin:5px 0;}
  558.  
  559. ol.notes li.note img.avatar {display:none!important;}
  560.  
  561. .more_notes_link {
  562. display:block;
  563. font-weight:600;
  564. text-align:left!important;
  565. color:{color:title};
  566. }
  567.  
  568. .backe {
  569. float:left;
  570. text-align:left;
  571. visibility:hidden;
  572. opacity:0;
  573. transition:visibility 0s ease-in-out 0.4s, opacity 0.4s ease-in-out;
  574. -webkit-transition:visibility 0s ease-in-out 0.4s, opacity 0.4s ease-in-out;
  575. -moz-transition:visibility 0s ease-in-out 0.4s, opacity 0.4s ease-in-out;
  576. }
  577.  
  578. .backe a {
  579. font-weight:600;
  580. color:{color:title};
  581. }
  582.  
  583. .stick .backe {
  584. visibility:visible;
  585. opacity:1;
  586. transition-delay:.4s;
  587. -webkit-transition-delay:.4s;
  588. -moz-transition-delay:.4s;
  589. }
  590.  
  591. .nice {
  592. position:fixed;
  593. right:15px;
  594. bottom:15px;
  595. }
  596.  
  597. {CustomCSS}
  598.  
  599. </style>
  600. </head>
  601.  
  602. <body>
  603.  
  604. <header><nav><a href="/" class="tai">{title}</a><a href="/ask">{text:ask title}</a>{block:ifLink1}<a href="{text:Link 1 URL}">{text:Link 1}</a>{/block:ifLink1}{block:ifLink2}<a href="{text:Link 2 URL}">{text:Link 2}</a>{/block:ifLink2}{block:ifLink3}<a href="{text:Link 3 URL}">{text:Link 3}</a>{/block:ifLink3}<a href="/archive">{text:archive title}</a></nav><div id="d">{description}</div></header>
  605.  
  606. <section id="entries">
  607.  
  608. {block:Posts}
  609.  
  610. <article class="posts">
  611.  
  612. {block:Quote}<div class="title quote">{Quote}</div>
  613. {block:Source}<div class="source">{Source}</div>{/block:Source}{/block:Quote}
  614.  
  615. {block:Text}{block:Title}<div class="title">{Title}</div>{/block:Title}
  616. <div class="tex {block:title}ted{/block:title}">{Body}</div>
  617. {/block:Text}
  618.  
  619. {block:Link}<div class="title"><a href="{URL}">{Name}</a></div>
  620. {block:Description}<div class="tex ted">{Description}</div>{/block:Description}{/block:Link}
  621.  
  622. {block:Chat}{block:Title}<div class="title">{Title}</div>{/block:Title}
  623. <ol class="chat {block:title}ted{/block:title}">{block:Lines}<li class="l {Alt}">{block:Label}<span class="label">{Label}</span>{/block:Label} {Line}</li>{/block:Lines}</ol>{/block:Chat}
  624.  
  625. {block:Photo}<div class="ph">{LinkOpenTag}<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}"/>{LinkCloseTag}</div>{/block:Photo}
  626.  
  627. {block:Photoset}<div class="ph"><div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">{block:Photos}<div class="photo-data"><div class="pxu-photo"><img alt="{PhotoAlt}" src="{PhotoURL-500}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}"></div><a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}"></a></div>{/block:Photos}</div></div>{/block:Photoset}
  628.  
  629. {block:Video}<div class="ph"><div class="video">{Video-500}</div></div>{/block:Video}
  630.  
  631. {block:Answer}<div class="q">{Question}</div><div class="as">sent by <span>{Asker}</span></div><div class="a">{Answer}</div>{/block:Answer}
  632.  
  633. {block:Audio}{block:AudioPlayer}<div class="hold"><div class="player">{AudioPlayerWhite}</div><div class="audio_info">{block:TrackName}<span class="track">{TrackName}</span>{/block:TrackName}{block:Artist}<span class="artist">{Artist}</span>{/block:Artist}</div></div>{/block:AudioPlayer}{/block:Audio}
  634.  
  635. {block:Caption}<div class="tex">{Caption}</div>{/block:Caption}
  636.  
  637. {block:Date}<div class="when">{block:indexpage}<span><a href="{Permalink}" target="_blank">on {dayofweek}</a><br>{block:notecount}<a href="{permalink}">{notecountwithlabel} </a>{/block:notecount}<a href="{ReblogURL}" target="_blank" class="r">reblog</a></span>{/block:indexpage}{block:permalinkpage}<div><span>Posted on {month} {dayofmonth}{dayofmonthsuffix} at {12hour}:{minutes}{ampm}</span>{block:RebloggedFrom}<span>Via <a href="{ReblogParentURL}">{ReblogParentName}</a>{block:ContentSource} (<a href="{ReblogRootURL}" title="{ReblogRootName}">source</a>){/block:ContentSource}</span>{/block:RebloggedFrom}</div>{block:HasTags}<div class="tags">{block:Tags}<a href="{TagUrl}">#{Tag}</a> {/block:Tags}</div>{/block:HasTags}{/block:permalinkpage}</div>{/block:Date}
  638. </article>
  639.  
  640. {block:PostNotes} <article class="posts pagenotes"><a class="title">{NoteCountWithLabel}</a>{PostNotes}</article>{/block:PostNotes}
  641.  
  642. {/block:Posts}
  643.  
  644. </section>
  645.  
  646. {block:Pagination}<footer>{block:ifinfinitescroll}{block:ifmanualload}{block:NextPage}<div class="pag">{block:ifbacktotoplink}<span class="backe"><a class="up">back to top</a></span>{/block:ifbacktotoplink}<a class="load">load more</a></div>{/block:NextPage}{/block:ifmanualload}{/block:ifinfinitescroll}<div id="pagination" class="pag">{block:ifbacktotoplink}<span class="backe"><a class="up">back to top</a></span>{/block:ifbacktotoplink} {block:PreviousPage}<a href="{PreviousPage}">previous page</a>{block:nextpage}<a style="margin-left:5px;">/</a>{/block:nextpage}{/block:PreviousPage}{block:NextPage}<a href="{NextPage}"{block:PreviousPage}style="margin-left:5px;"{/block:PreviousPage} class="load">next page</a>{/block:NextPage}</div></footer>{/block:pagination}
  647.  
  648. <!-- jquery -->
  649.  
  650. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script><script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>{block:indexpage}{block:ifinfinitescroll}<script src="//static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>{/block:ifinfinitescroll}{/block:indexpage}<script src="//static.tumblr.com/sas2ex2/np7obx1w7/cap.js"></script><script src ="//static.tumblr.com/fwgzvyf/Oj1o08f6h/shythemes.vr.js"></script><script src="//static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
  651.  
  652. <script>
  653. $(document).ready(function() {
  654. $('body').tooltip({track:true});
  655. $('.photo-slideshow').pxuPhotoset({
  656. lightbox: true,
  657. rounded: false,
  658. gutter: '2px',
  659. photoset: '.photo-slideshow',
  660. photoWrap: '.photo-data',
  661. photo: '.pxu-photo'
  662. });
  663. $('article').unnest({
  664. yourCaption: ".tex",
  665. wrapName: ".comment",
  666. {block:date}{block:rebloggedfrom}newCaptionUsername: true,
  667. originalPostCaptionUsername: true,{/block:rebloggedfrom}{/block:date}
  668. tumblrAvatars: false,
  669. usernameColon: true
  670. });
  671. $('.comment').each(function() {
  672. if ($(this).find('.tumblr_blog').length) {
  673. $(this).addClass('commented');
  674. }
  675. });
  676. $('p').filter(function (){return $.trim(this.innerHTML) == ""}).remove();
  677. $('iframe.tumblr_audio_player').load( function() {
  678. $('iframe.tumblr_audio_player').contents().find("head").append($("<style type='text/css'> .audio-player{background:{color:accents} !important} </style>"));
  679. });
  680. var $container = $('section');
  681. {block:indexpage}{block:ifbacktotoplink}
  682. var pageH = window.innerHeight;
  683. $(document).scroll(function(){
  684. var scrolled = $(document).scrollTop();
  685. if (scrolled < pageH) {$('body').removeClass('stick');}
  686. if (scrolled > pageH) {$('body').addClass('stick');}
  687. });
  688. $('.up').click(function() {$('body, html').animate({scrollTop:0},1000);});
  689. {/block:ifbacktotoplink}{block:ifinfinitescroll}
  690. $container.infinitescroll({
  691. itemSelector: 'article',
  692. navSelector: '#pagination',
  693. nextSelector: '#pagination a',
  694. loadingImg: '',
  695. loadingText: '<em></em>',
  696. errorCallback: function(){ $('.load').text('no more posts').parent('footer').delay(4000).slideUp(400); },
  697. bufferPx: 3000
  698. },
  699. function( newElements ) {
  700. var $newElems = $( newElements );
  701. $newElems.find('.photo-slideshow').pxuPhotoset({
  702. lightbox: true,
  703. rounded: false,
  704. gutter: '2px',
  705. photoset: '.photo-slideshow',
  706. photoWrap: '.photo-data',
  707. photo: '.pxu-photo'
  708. });
  709. resizeVideos();
  710. $newElems.unnest({
  711. yourCaption: ".tex",
  712. wrapName: ".comment",
  713. {block:rebloggedfrom}newCaptionUsername: true,
  714. originalPostCaptionUsername: true,{/block:rebloggedfrom}
  715. tumblrAvatars: false,
  716. usernameColon: true
  717. });
  718. $newElems.find('.comment').each(function() {
  719. if ($(this).find('.tumblr_blog').length) {
  720. $(this).addClass('commented');
  721. }
  722. });
  723. $newElems.find('iframe.tumblr_audio_player').load(function(){
  724. $('iframe.tumblr_audio_player').contents().find("head").append($("<style type='text/css'> .audio-player{background:{color:accents}!important} </style>"));
  725. });
  726. });
  727. {block:ifmanualload}
  728. $(window).unbind('.infscr');
  729. $('.load').click(function(){
  730. $('footer').fadeTo("400", 0);
  731. $container.delay(400).infinitescroll('retrieve').parent('body').find('.pag').parent().delay(400).fadeTo("400", 1);
  732. });
  733. {/block:ifmanualload}{/block:ifinfinitescroll}{/block:indexpage}
  734. });
  735. </script>
  736.  
  737.  
  738. <a href="http://sorrism.tumblr.com" class="nice" target="_blank">s.</a>
  739. {block:ContentSource}
  740. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
  741. width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
  742. {/block:SourceLogo}
  743. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  744. {/block:ContentSource}
  745. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement