Advertisement
str-wrs

Hebe

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