Advertisement
str-wrs

Calypso

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