Advertisement
str-wrs

Enyo

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