Advertisement
str-wrs

Notus

Sep 18th, 2015
17,569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.40 KB | None | 0 0
  1. <!--
  2.  
  3. THEME: NOTUS
  4. by acuite
  5.  
  6. - super requested, so here u go!!
  7. - don't steal this pls
  8. - enjoy, ilu (ノ◕ヮ◕)ノ*:・゚✧
  9.  
  10. - @acuite for more themes
  11.  
  12. -->
  13.  
  14. <html>
  15. <head>
  16.  
  17. <title>{Title}</title>
  18. <link rel="shortcut icon" href="{Favicon}">
  19. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  20. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  21.  
  22. <meta name="image:Sidebar" content=""/>
  23.  
  24. <meta name="color:Background" content="#f8f8f8"/>
  25. <meta name="color:Text" content="#555"/>
  26. <meta name="color:Link" content="#999"/>
  27. <meta name="color:Hover" content="#89adc3"/>
  28.  
  29. <meta name="if:Load More" content=""/>
  30. <meta name="if:Paginate" content=""/>
  31. <meta name="if:Link Icons" content=""/>
  32. <meta name="if:Drop Links" content=""/>
  33. <meta name="if:Captions" content=""/>
  34. <meta name="if:Tags" content=""/>
  35.  
  36. <meta name="text:Post" content="350"/>
  37. <meta name="text:Sidebar" content="100"/>
  38. <meta name="text:Margin" content="75"/>
  39.  
  40. <meta name="text:Link 1" content="/"/>
  41. <meta name="text:Link 1 Title" content="one"/>
  42. <meta name="text:Link 2" content="/" />
  43. <meta name="text:Link 2 Title" content="two"/>
  44. <meta name="text:Link 3" content="/" />
  45. <meta name="text:Link 3 Title" content="three"/>
  46. <meta name="text:Link 4" content="/" />
  47. <meta name="text:Link 4 Title" content="four"/>
  48.  
  49. <link href="http://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
  50. <link href='http://static.tumblr.com/8pnyeus/sXxofi7lt/outicons.css' rel='stylesheet' type='text/css'>
  51. <link href='https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i' rel='stylesheet' type='text/css'>
  52.  
  53. <style type="text/css">
  54.  
  55. /* Scroll */
  56.  
  57. ::-webkit-scrollbar {width:11px;height:11px;background:#eee;}
  58. ::-webkit-scrollbar-thumb {background:rgba({RGBcolor:Link},0.5);}
  59. ::-webkit-scrollbar,::-webkit-scrollbar-thumb {
  60. border:5px solid {color:Background};
  61. }
  62.  
  63. /* Controls */
  64.  
  65. .tc .oi {font-size:15px;color:{color:Link};}
  66. .tc {position:fixed;top:15px;right:15px;cursor:pointer;}
  67. #tumblr_controls,.tmblr-iframe{-webkit-filter: invert(100%); -moz-filter: invert(100%); -o-filter: invert(100%); -ms-filter: invert(100%); filter: invert(100%);opacity:0;top:0!important;right:0!important;z-index:999999; padding:10px 30px 10px 10px;}
  68.  
  69. #tumblr_controls:hover,.tmblr-iframe:hover{opacity:0.5;}
  70.  
  71. /* General */
  72.  
  73. body {
  74. margin:0;
  75. color:{color:Text};
  76. background:{color:Background};
  77. font-smooth:always;
  78. -webkit-font-smoothing:antialiased;
  79. -moz-osx-font-smoothing: grayscale;
  80. }
  81.  
  82. a:link,a:active,a:visited {text-decoration:none;}
  83. body,p,pre,blockquote,big,small,sub,sup {font-size:11px;}
  84. body,p,pre,em{font-family:'Open Sans',Helvetica,Arial,sans-serif;}
  85.  
  86. /* Credit & Scroll to Top */
  87.  
  88. .c,.top{position:fixed;right:30px;width:40px;}
  89. .c {bottom:30px;}
  90. .top {bottom:50px;display:none;}
  91.  
  92. /* Pagination */
  93.  
  94. .cp {font-weight:600;}
  95. .cp,.jp,.pag a{display:inline-block;vertical-align:middle;margin:0 10px;}
  96. .pag a i,.top{font-size:20px;}
  97. .pag {position:relative;display:block;}
  98. .load {cursor:pointer;display:block;}
  99. .c,.top,.pag,.load {text-align:center;}
  100. .c,.pag,.load {font-size:10px;letter-spacing:1px;text-transform:uppercase;}
  101. {block:ifnotPaginate}
  102. .pag,#infscr-loading {display:none!important;}
  103. {/block:ifnotPaginate}
  104.  
  105. /* Common Aesthetics lol */
  106.  
  107. .bx {padding:5px;}
  108. aside, .entry {background:#fff;border:1px solid #eee;}
  109.  
  110. /* Containers */
  111.  
  112. .center {
  113. position:relative;
  114. margin:{text:Margin}px auto;
  115. width:calc({text:Post}px + 2px);
  116. }
  117.  
  118. .entry img {max-width:100%;height:auto;}
  119. .entry {margin:0 0 {text:Margin}px;width:{text:Post}px;}
  120.  
  121. /* Sidebar */
  122.  
  123. aside {
  124. position:fixed;
  125. border-top:0;
  126. width:{text:Sidebar}px;
  127. margin-left:calc(-{text:Sidebar}px + -{text:Margin}px + -2px);
  128. }
  129.  
  130. .image,.desc,nav a,.lb {border-top:1px solid #eee;}
  131. .image img{width:100%;}
  132. .image {padding:3px;}
  133. .desc{padding:13px;font-size:11px;}
  134.  
  135. nav a i{
  136. {block:ifLinkIcons}margin-right:3px;{/block:ifLinkIcons}
  137. {block:ifnotLinkIcons}display:none;{/block:ifnotLinkIcons}
  138. }
  139.  
  140. nav {font-size:0;}
  141. nav a{display:block;padding:8px;font-size:10px;line-height:100%;font-weight:600;}
  142. .lb {display:none;padding:7px;}
  143. .lb a:hover {background:none;border-bottom:1px solid;}
  144. .lb a {
  145. display:inline-block;
  146. border:0;
  147. padding:0 0 2px;
  148. margin:4px;
  149. border-bottom:1px solid rgba({RGBcolor:Link},0.4);
  150. }
  151.  
  152. /* Titles */
  153.  
  154. h2 {
  155. margin:0;
  156. padding:10px;
  157. font-size:13px;
  158. line-height:100%;
  159. font-weight:400;
  160. border-bottom:1px solid #eee;
  161. }
  162.  
  163. h3 {
  164. margin:10px 0;
  165. font-weight:400;
  166. font-size:10px;
  167. letter-spacing:1px;
  168. text-transform:uppercase;
  169. }
  170.  
  171. .src {border-bottom:1px solid #eee;padding:7px 8px;}
  172. .qut {padding:20px;font-size:17px;line-height:130%;font-style:italic;font-weight:300;letter-spacing:0.25px;}
  173.  
  174. /* Permalinks */
  175.  
  176. .p {font-size:0;border-top:1px solid #eee;padding:10px 11px;}
  177. .ple b {margin:0 6px;}
  178. .ple a {font-weight:600;}
  179. .ple a,.ple b {display:inline-block;text-transform:lowercase;}
  180. .ple a,.ple b,.tags a{font-size:10px;line-height:100%;}
  181. .ple,.pri {display:inline-block;vertical-align:middle;width:50%;}
  182. .pri {text-align:right;}
  183. .pri .oi {font-size:14px;}
  184. .oi-refresh {margin-left:3px;}
  185.  
  186. .custom-like-button *{cursor:pointer!important;}
  187. .custom-like-button {
  188. position:relative;
  189. display:inline-block;
  190. vertical-align:top;
  191. width:13px;
  192. height:12px;
  193. cursor:pointer;
  194. }
  195.  
  196. .like_button:hover + .our_button {color:{color:Hover};}
  197. .like_button.liked + .our_button {color:{color:Hover};}
  198. .like_button iframe {width:100%!important;height:100%!important;}
  199. .like_button {z-index:10;opacity:0;}
  200. .our_button {z-index:1;}
  201. .our_button,.like_button {
  202. position:absolute;
  203. top:0;
  204. left:0;
  205. width:100%;
  206. height:100%;
  207. }
  208.  
  209. .entry:hover .thover{opacity:1;}
  210. .tshow,.thover{display:block;position:relative;}
  211. .thide {display:none;}
  212. .thover {opacity:0;}
  213. .tags {margin:1px 0 2px;font-size:9px;}
  214. .tags a {margin:0 4px 0 0;font-style:italic;}
  215.  
  216. /* Audio & Chat */
  217.  
  218. .lines b {font-weight:400;}
  219. .lines:first-of-type {border:0;}
  220. .lines,.chat h2 {margin:0;padding:10px;border-top:1px solid #eee;}
  221. .play {padding:10px;background:#e4e4e4;height:27px;width:27px;}
  222. .audio {font-size:0;padding:15px;}
  223. .play,.au {display:inline-block;vertical-align:middle;}
  224. .soundcloud_audio_player{padding:15px 0;}
  225. .au span.tn {font-size:12px;font-weight:600;}
  226. .au span {display:block;margin:3px 0;font-size:10px;line-height:100%;}
  227. .au {width:calc(100% - 62px);margin-left:15px;}
  228. .tumblr_audio_player {width:27px;height:27px;overflow:hidden;}
  229.  
  230. /* Text */
  231.  
  232. ol,ul {padding:0 0 0 20px;}
  233. li {margin:5px;}
  234. p,blockquote,pre,ul,ol{margin:5px 0;}
  235. blockquote p{margin:5px 0;}
  236. blockquote p:first-child{margin:0 0 5px;}
  237. blockquote p:last-child{margin:5px 0 0;}
  238. blockquote p:only-child{margin:0;}
  239. blockquote blockquote {margin:0;}
  240. blockquote{padding-left:10px;border-left:1px solid #eee;}
  241. pre {
  242. white-space:pre-wrap;
  243. white-space:-moz-pre-wrap;
  244. white-space:-pre-wrap;
  245. white-space:-o-pre-wrap;
  246. word-wrap:break-word;
  247. }
  248.  
  249. /* Captions */
  250.  
  251. .txt iframe,.cap iframe{display:block;max-width:100%;overflow:hidden;}
  252. .txt .tumblr_parent:first-of-type {border:0;}
  253. .tumblr_parent {
  254. border:0;
  255. margin:0;
  256. padding:15px 15px 10px;
  257. border-top:1px solid #eee;
  258. }
  259.  
  260. .tumblr_parent blockquote {margin:0;}
  261.  
  262. .txt.nospace .tumblr_parent:first-of-type {padding-top:0;}
  263. a.tumblr_blog {font-weight:600;}
  264. .user-pic {
  265. display:inline-block;
  266. vertical-align:middle;
  267. border-radius:50%;
  268. margin-right:8px;
  269. width:14px;
  270. }
  271.  
  272. /* Video */
  273.  
  274. .video {overflow:hidden;}
  275. .vine-embed,#youtube_iframe {display:block;}
  276. .instagram-media {border-radius:0!important;box-shadow:none!important;}
  277.  
  278. /* Photosets */
  279.  
  280. #tumblr_lightbox,.tmblr-lightbox {
  281. background:rgba({RGBcolor:Background},0.99)!important;
  282. }
  283.  
  284. #vignette,#tumblr_lightbox_caption,.vignette,.lightbox-caption{
  285. opacity:0!important;
  286. }
  287.  
  288. #tumblr_lightbox_center_image, #tumblr_lightbox_left_image,
  289. #tumblr_lightbox_right_image, .lightbox-image {
  290. box-shadow:none!important;
  291. border-radius:0!important;
  292. {block:ifRoundEdges}border-radius:4px!important;{/block:ifRoundEdges}
  293. }
  294.  
  295. .index-page .photos img {display:none;}
  296. .index-page .photos img:first-child {display:block;width:100%;}
  297.  
  298. /* Ask */
  299.  
  300. .ask {padding:20px;}
  301. .aski {margin:0 0 10px;line-height:20px;font-size:10px;}
  302. .aski img {float:left;width:20px;margin-right:7px;}
  303.  
  304. /* Permalink Page + Postnotes */
  305.  
  306. .pph {text-transform:lowercase;}
  307. .perma {padding:15px;line-height:175%;}
  308. .pmt a:after {content:',';}
  309. .pmt a:last-of-type:after {content:'.';}
  310. .pn ol {margin:0;padding:0;list-style-type:none;}
  311. .pn li{margin:10px;font-size:8.5px;line-height:100%;}
  312. .pn,.pn img{display:none;}
  313. .pn {padding:10px;font-size:0;}
  314. .pnh,.more_notes_link,.notes_loading {display:block;}
  315. .more_notes_link,.notes_loading {text-align:left!important;}
  316.  
  317. /* Tooltips */
  318.  
  319. #s-m-t-tooltip{
  320. max-width:200px;
  321. margin:15px;
  322. z-index:99999999;
  323. padding:6px;
  324. line-height:100%;
  325. word-wrap:break-word;
  326. word-break:break-all;
  327. background:#fff;
  328. }
  329.  
  330. /* Common Styles */
  331.  
  332. .ask,p,blockquote,.lines,.desc{line-height:150%;}
  333. a:hover,a h2:hover{color:{color:Hover};}
  334. a,.p,.perma,.src,.lines b,h2{color:{color:Link};}
  335.  
  336. /* Etc */
  337.  
  338. .notes img {width:0;}
  339. img {margin:0;display:block;}
  340.  
  341. </style>
  342. </head>
  343. <body>
  344.  
  345. <div class="tc"><i class="oi oi-menu"></i></div>
  346.  
  347. <div class="center">
  348.  
  349. <aside>
  350. {block:ifSidebarImage}<a href="/"><div class="image"><img src="{image:Sidebar}"/></div></a>{/block:ifSidebarImage}
  351.  
  352. <div class="desc">{Description}</div>
  353.  
  354. <nav>
  355. <a href="/"><i class="oi oi-home"></i> index</a>
  356. <a href="/ask"><i class="oi oi-mail"></i> message</a>
  357. {block:ifDropLinks}
  358. <a href="#" class="lh"><i class="oi oi-gear"></i> navigate</a>
  359. <div class="lb">
  360. {/block:ifDropLinks}
  361. {block:ifLink1}
  362. <a href="{text:Link 1}">
  363. <!-- outicons icon goes here --> {text:Link 1 Title}</a>
  364. {/block:ifLink1}{block:ifLink2}
  365. <a href="{text:Link 2}">
  366. <!-- outicons icon goes here --> {text:Link 2 Title}</a>
  367. {/block:ifLink2}{block:ifLink3}
  368. <a href="{text:Link 3}">
  369. <!-- outicons icon goes here --> {text:Link 3 Title}</a>
  370. {/block:ifLink3}{block:ifLink4}
  371. <a href="{text:Link 4}">
  372. <!-- outicons icon goes here --> {text:Link 4 Title}</a>
  373. {/block:ifLink4}
  374. {block:ifDropLinks}
  375. </div>
  376. {/block:ifDropLinks}
  377. </nav>
  378. </aside>
  379.  
  380.  
  381. <div id="content">
  382. {block:Posts}
  383. <div class="entry">
  384.  
  385. {block:Text}
  386. {block:Title}<h2>{Title}</h2>{/block:Title}
  387. <div class="txt cap">{Body}</div>
  388. {/block:Text}
  389.  
  390. {block:Link}
  391. <h2><a title="{URL}" href="{URL}">{Name} <i class="fa fa-angle-right"></i></a></h2>
  392. {block:Description}<div class="txt cap">{Description}</div>{/block:Description}
  393. {/block:Link}
  394.  
  395. {block:Photo}
  396. <div class="bx"><a href="{Permalink}"><img src="{PhotoURL-HighRes}" alt="{PhotoAlt}"/></a></div>
  397. {block:ifCaptions}{block:Caption}<div class="cap">{Caption}</div>{/block:Caption}{/block:ifCaptions}
  398. {/block:Photo}
  399.  
  400. {block:Photoset}
  401. <div class="bx">
  402. <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">{block:Photos}<div class="photo-data"><div class="pxu-photo"><img 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>
  403. </div>
  404. {block:ifCaptions}{block:Caption}<div class="cap">{Caption}</div>{/block:Caption}{/block:ifCaptions}
  405. {/block:Photoset}
  406.  
  407. {block:Quote}
  408. {block:Source}<div class="src">{Source}</div>{/block:Source}
  409. <div class="qut">{Quote}</div>
  410. {/block:Quote}
  411.  
  412. {block:Chat}
  413. <div class="chat">
  414. {block:Title}<h2>{Title}</h2>{/block:Title}
  415. {block:Lines}<div class="lines {Alt}"><div class="{Alt} user_{UserNumber}">{block:Label}<b>{Label}</b> {/block:Label}{Line}</div></div>{/block:Lines}
  416. </div>
  417. {/block:Chat}
  418.  
  419. {block:Audio}
  420. <div class="audio">
  421. {block:AudioPlayer}<div class="play">{AudioPlayerGrey}</div>{/block:AudioPlayer}
  422. <div class="au">
  423. {block:TrackName}<span class="tn">{TrackName}</span>{/block:TrackName}
  424. {block:Artist}<span>by {Artist}</span>{/block:Artist}
  425. </div>
  426. </div>
  427. {block:ifCaptions}{block:Caption}<div class="cap">{Caption}</div>{/block:Caption}{/block:ifCaptions}
  428. {/block:Audio}
  429.  
  430. {block:Video}
  431. <div class="video">{Video-500}</div>
  432. {block:ifCaptions}{block:Caption}<div class="cap">{Caption}</div>{/block:Caption}{/block:ifCaptions}
  433. {/block:Video}
  434.  
  435. {block:Answer}
  436. <div class="ask"><h2>{Asker}:</h2><br>{Question}</div>
  437. <div class="ans">{Answer}</div>
  438. {/block:Answer}
  439.  
  440. {block:IndexPage}
  441. <div class="p">
  442. <div class="ple">
  443. <a href="{Permalink}">{NoteCount} N</a> <b>/</b>
  444. <a href="{Permalink}">{TimeAgo}</a>
  445. </div>
  446.  
  447. <div class="pri">
  448. <div class="custom-like-button">{LikeButton}
  449. <span class="our_button"><i class="oi oi-heart"></i></span>
  450. </div>
  451. <a href="{ReblogURL}"><i class="oi oi-refresh"></i></a>
  452. </div>
  453.  
  454. {block:ifTags}{block:HasTags}<div class="tags">
  455. {block:Tags}<a href="{TagURL}">#{Tag}</a> {/block:Tags}
  456. </div>{/block:HasTags}{/block:ifTags}
  457. </div>
  458. {/block:IndexPage}
  459.  
  460. {block:PermalinkPage}
  461. {block:Date}
  462. <div class="pph">
  463. <div class="perma">
  464. posted {TimeAgo} on {DayofMonthWithSuffix} {Month}
  465. {block:RebloggedFrom}<br>
  466. via <a href="{ReblogParentURL}">{ReblogParentName}</a> &nbsp;&nbsp;&nbsp;
  467. source <a href="{ReblogRootURL}">{ReblogRootName}</a>
  468. {/block:RebloggedFrom}
  469.  
  470. {block:HasTags}<div class="pmt">tags: &nbsp;
  471. {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags}
  472. </div>{/block:HasTags}
  473. </div>
  474.  
  475. <a href="#" class="pnh">View {NoteCountWithLabel}</a>
  476.  
  477. {block:PostNotes}
  478. <div class="pn">{PostNotes}</div>
  479. {/block:PostNotes}
  480.  
  481. </div>
  482. {/block:Date}
  483. {/block:PermalinkPage}
  484.  
  485. {block:ContentSource}
  486. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
  487. width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
  488. {/block:SourceLogo}
  489. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  490. {/block:ContentSource}
  491.  
  492. <!--{block:NoRebloggedFrom}{block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}{/block:NoRebloggedFrom} -->
  493.  
  494. </div>
  495. {/block:Posts}
  496.  
  497. </div>
  498.  
  499. {block:ifPaginate}
  500. {block:Pagination}
  501. <div class="pag">
  502. {block:PreviousPage}
  503. <a href="{PreviousPage}"><i class="oi oi-chevron-left"></i></a>
  504. {/block:PreviousPage}
  505.  
  506. {block:JumpPagination length="3"}
  507. {block:CurrentPage}
  508. <span class="cp">{PageNumber}</span>
  509. {/block:CurrentPage}
  510. {block:JumpPage}
  511. <a class="jp" href="{URL}">{PageNumber}</a>
  512. {/block:JumpPage}
  513. {/block:JumpPagination}
  514.  
  515. {block:NextPage}
  516. <a href="{NextPage}"><i class="oi oi-chevron-right"></i></a>
  517. {/block:NextPage}
  518. </div>
  519. {/block:Pagination}
  520. {/block:ifPaginate}
  521.  
  522. {block:ifnotPaginate}
  523. {block:Pagination}
  524. <div class="pag">
  525. {block:PreviousPage}
  526. <a href="{PreviousPage}" class="prev">back</a>
  527. {/block:PreviousPage}
  528. {block:NextPage}
  529. <a href="{NextPage}" class="next">next</a>
  530. {/block:NextPage}
  531. </div>
  532.  
  533. {block:ifLoadMore}
  534. <a class="load">Load More</a>
  535. {/block:ifLoadMore}
  536. {/block:Pagination}
  537. {/block:ifnotPaginate}
  538.  
  539. </div>
  540.  
  541. <a href="#" class="top"><i class="oi oi-chevron-up"></i></a>
  542. <div class="c"><a href="http://acuite.tumblr.com">acuite</a></div>
  543.  
  544. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  545. <script src="http://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
  546. <script src ="//static.tumblr.com/fwgzvyf/l6jnyutne/shythemes.vr.js"></script>
  547. <script src="http://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script>
  548. <script src="http://static.tumblr.com/wgg6svp/I8Yobwo15/unnest.min.js"></script>
  549. <script src="http://static.tumblr.com/wgijwsy/Ebfm2v4gy/jquery.masonry.min.js"></script>
  550. <script src="http://static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
  551. <script>
  552. // pxu photosets
  553. $(document).ready(function(){
  554. $('.photo-slideshow').pxuPhotoset({
  555. lightbox: true,
  556. rounded: false,
  557. gutter: '2px',
  558. photoset: '.photo-slideshow',
  559. photoWrap: '.photo-data',
  560. photo: '.pxu-photo'
  561. });
  562.  
  563.  
  564. // minimal soundcloud player © eoxk.tumblr
  565. $(document).ready(function(){
  566. var color = '{color:Link}'; // color of play button (hex)
  567. $('.soundcloud_audio_player').each(function(){
  568. $(this).attr({ src: $(this).attr('src').split('&')[0] + '&amp;liking=false&amp;sharing=false&amp;auto_play=false&amp;show_comments=false&amp;continuous_play=false&amp;buying=false&amp;show_playcount=false&amp;show_artwork=true&amp;origin=tumblr&amp;color=' + color.split('#')[1], height: 20, width: '100%' });
  569. });
  570. });
  571.  
  572.  
  573. // drop links & post notes
  574. $(document).ready(function(){
  575. $(".pn").hide();
  576. $(".pnh").show();$('.pnh').toggle(function(){
  577. $(".pn").slideDown(function(){});
  578. },function(){
  579. $(".pn").slideUp(function(){});
  580. });
  581. $(".lb").hide();
  582. $(".lh").show();$('.lh').toggle(function(){
  583. $(".lb").slideDown(function(){});
  584. },function(){
  585. $(".lb").slideUp(function(){});
  586. });
  587. });
  588.  
  589.  
  590. // scroll to top © html-tuts.com
  591. var amountScrolled = 500;
  592. $(window).scroll(function() {
  593. if ($(window).scrollTop() > amountScrolled) {
  594. $('a.top').fadeIn('slow');
  595. } else {
  596. $('a.top').fadeOut('slow');
  597. }
  598. });
  599. $('a.top').click(function() {
  600. $('body, html').animate({
  601. scrollTop: 0
  602. }, 'slow');
  603. return false;
  604. });
  605.  
  606.  
  607. // tooltips
  608. (function($){
  609. $(document).ready(function(){
  610. $("[title]").style_my_tooltips({
  611. tip_delay_time:200,
  612. tip_fade_speed:300
  613. }
  614. );
  615. });
  616. })(jQuery);
  617.  
  618.  
  619. /*
  620.  
  621. UN-NEST TUMBLR CAPTIONS PLUGIN
  622. 2016 @magnusthemes & @neothm
  623. source: http://neothm.com/post/148902138319
  624.  
  625. */
  626. $('.entry').unnest({
  627. yourCaption: ".cap",
  628. newCaptionUsername: false,
  629. originalPostCaptionUsername: false,
  630. tumblrAvatars: true,
  631. tumblrAvatarClass: ".user-pic",
  632. usernameColon: false
  633. });
  634.  
  635.  
  636. // infinite scroll
  637. var $container = $('#content');
  638. $container.masonry({
  639. itemSelector: '.entry',
  640. });
  641. $container.imagesLoaded(function(){
  642. $container.masonry();
  643. });
  644. {block:ifnotPaginate}
  645. $container.infinitescroll({
  646. itemSelector: '.entry',
  647. navSelector: '.pag',
  648. nextSelector: '.next',
  649. loadingImg: ' ',
  650. loadingText: ' ',
  651. donetext: 'No more posts' ,
  652. bufferPx: 2000,
  653. {block:ifLoadMore}
  654. errorCallback: function(){
  655. jQuery('.load').delay(50).fadeOut();
  656. }
  657. {/block:ifLoadMore}
  658. },
  659. function( newElements ) {
  660. var $newElems = $( newElements ).css({ opacity:0 });
  661. var $newElemsIDs = $newElems.map(function(){
  662. return this.id;
  663. }).get();
  664. console.log($newElems, $newElemsIDs);
  665. Tumblr.LikeButton.get_status_by_post_ids($newElemsIDs);
  666. $newElems.find('.photo-slideshow').pxuPhotoset({
  667. lightbox: true,
  668. rounded: false,
  669. gutter: '2px',
  670. photoset: '.photo-slideshow',
  671. photoWrap: '.photo-data',
  672. photo: '.pxu-photo'
  673. });
  674. resizeVideos();
  675. $newElems.imagesLoaded(function(){
  676. $container.masonry( 'appended', $newElems );
  677. $newElems.animate({ opacity: 1 });
  678. });
  679. $newElems.unnest({
  680. yourCaption: ".cap",
  681. newCaptionUsername: true,
  682. originalPostCaptionUsername: true,
  683. tumblrAvatars: true,
  684. tumblrAvatarClass: ".user-pic",
  685. usernameColon: false
  686. });
  687. });
  688. {block:ifLoadMore}
  689. $(window).unbind(".infscr");
  690. $(".load").click(function(){
  691. $("#content").infinitescroll("retrieve");
  692. });
  693. {/block:ifLoadMore}
  694. {/block:ifnotPaginate}
  695. });
  696.  
  697. </script>
  698. </body>
  699. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement