calliearambulo

VMB Theme by Pillow Themes

Jul 13th, 2018
882
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.14 KB | None | 0 0
  1. <!---
  2. ___ ___ _ _ _____ __ _____ _ _ ___ __ __ ___ ___
  3. | _ \_ _| | | | / _ \ \ / / |_ _| || | __| \/ | __/ __|
  4. | _/| || |__| |_| (_) \ \/\/ / | | | __ | _|| |\/| | _|\__ \
  5. |_| |___|____|____\___/ \_/\_/ |_| |_||_|___|_| |_|___|___/
  6.  
  7. BY CARA
  8.  
  9. Rules:
  10. 1. Do not steal snippets or all of my codes.
  11. 2. Do not claim theme as yours.
  12. 3. Do not remove the credits.
  13. -->
  14.  
  15. <!--- Meta Tags --->
  16. <meta name="color:Background" content="#fff"/>
  17. <meta name="color:Text" content="#000"/>
  18. <meta name="color:Link" content="#000"/>
  19. <meta name="color:Accent" content=""/>
  20.  
  21. <meta name="image:sidebar" content="">
  22. <meta name="text:font size" content="just type the number"/>
  23.  
  24. <meta name="if:infinite scroll" content="1"/>
  25.  
  26. <meta name="text:top bar quote" content="">
  27.  
  28. <meta name="text:link 1" content=""/>
  29. <meta name="text:link 1 url" content=""/>
  30.  
  31. <meta name="text:link 2" content=""/>
  32. <meta name="text:link 2 url" content=""/>
  33.  
  34. <meta name="text:link 3" content=""/>
  35. <meta name="text:link 3 url" content=""/>
  36.  
  37. <link rel="shortcut icon" href="{Favicon}">
  38. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  39. <link href="https://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css"/>
  40.  
  41. <!--- Google Fonts Link --->
  42. <link href="https://fonts.googleapis.com/css?family=Fjalla+One|Work+Sans" rel="stylesheet">
  43.  
  44. <!--- Font Awesome Link --->
  45. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
  46.  
  47. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  48.  
  49. </head>
  50. <style type="text/css">
  51.  
  52. /* Scrollbar */
  53. ::-webkit-scrollbar {
  54. width:12px;
  55. }
  56.  
  57. ::-webkit-scrollbar-track {
  58. background-color:#ffffff;
  59. }
  60.  
  61. ::-webkit-scrollbar-thumb {
  62. border-top:5px solid #fff;
  63. border-bottom:5px solid #fff;
  64. border-left:5px solid #fff;
  65. border-right:5px solid #fff;
  66. background-color:{color:accent};
  67. }
  68.  
  69. body {
  70. color:{color:text};
  71. background-color:{color:background};
  72. font-size:{text:font size}px;
  73. font-family: 'Work Sans', sans-serif;
  74. line-height:1.5;
  75. }
  76.  
  77. a {
  78. text-decoration:none;
  79. color:{color:link};
  80. }
  81.  
  82. iframe, img, embed, object, video {
  83. max-width: 100%;
  84. }
  85.  
  86. blockquote {
  87. border-left:1.5px solid {color:accent};
  88. color:{color:text};
  89. margin-left:20px;
  90. padding-left:10px;
  91. }
  92.  
  93. /* DO NOT REMOVE MY CREDIT */
  94. .animated {
  95. animation-duration: 2s;
  96. animation-fill-mode: both;
  97. animation-iteration-count:1;
  98. }
  99.  
  100. @keyframes bounceInUp {
  101. from,
  102. 60%,
  103. 75%,
  104. 90%,
  105. to {
  106. animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  107. }
  108.  
  109. from {
  110. opacity: 0;
  111. transform: translate3d(0, 3000px, 0);
  112. }
  113.  
  114. 60% {
  115. opacity: 1;
  116. transform: translate3d(0, -20px, 0);
  117. }
  118.  
  119. 75% {
  120. transform: translate3d(0, 10px, 0);
  121. }
  122.  
  123. 90% {
  124. transform: translate3d(0, -5px, 0);
  125. }
  126.  
  127. to {
  128. transform: translate3d(0, 0, 0);
  129. }
  130. }
  131.  
  132. .bounceInUp {
  133. animation-name: bounceInUp;
  134. }
  135.  
  136. #pillowthemes {
  137. font-size:12px;
  138. right:0;
  139. margin-right:20px;
  140. bottom:0;
  141. margin-bottom:20px;
  142. position:fixed;
  143. color:#000;
  144. }
  145.  
  146. #pillowthemes a {
  147. color:#000;
  148. }
  149. /* DO NOT REMOVE MY CREDIT */
  150.  
  151. /* Container */
  152. #content {
  153. margin-left:auto;
  154. margin-right:auto;
  155. margin-top:80px;
  156. margin-bottom:80px;
  157. width: 735px; /* Increase or decrease width to add more columns */
  158. {block:PermalinkPage}
  159. width:500px;
  160. {/block:PermalinkPage}
  161. }
  162.  
  163. /* Individual Posts */
  164. article {
  165. width:200px;
  166. margin:10px;
  167. padding:10px;
  168. border:1px solid {color:accent};
  169. {block:PermalinkPage}
  170. width:500px;
  171. margin-left:-5px;
  172. {/block:PermalinkPage}
  173. }
  174.  
  175. /* Top Bar */
  176. .header {
  177. top:50px;
  178. width:715px;
  179. height:auto;
  180. margin:0 auto;
  181. background-color:{color:accent};
  182. position:relative;
  183. z-index:99;
  184. text-align:center;
  185. -webkit-transition: width 0.7s;
  186. }
  187.  
  188. #headerc {
  189. padding:10px;
  190. }
  191.  
  192. .sticky {
  193. position:fixed;
  194. top:0;
  195. width:100%;
  196. border-bottom:1px solid {color:background};
  197. -webkit-transition: width 0.7s ease;
  198. }
  199.  
  200. /* Sidebar */
  201. #sidebar {
  202. top:0;
  203. margin-top:250px;
  204. left:0;
  205. margin-left:50px;
  206. width:230px;
  207. height:auto;
  208. position:fixed;
  209. background-color:{color:background};
  210. border:1px solid {color:accent};
  211. padding:10px;
  212. z-index:9;
  213. }
  214.  
  215. /* First Column of the Sidebar */
  216. #sidel {
  217. float:left;
  218. width:150px;
  219. }
  220.  
  221. /* Sidebar image */
  222. #sidebarim {
  223. width:65px;
  224. margin:0 auto;
  225. margin-top:10px;
  226. }
  227.  
  228. #sidebarim img {
  229. width:65px;
  230. height:65px;
  231. border-radius:50%;
  232. }
  233.  
  234. /* Blog Title */
  235. #blogt {
  236. text-align:center;
  237. margin:10px;
  238. font-family: 'Fjalla One', sans-serif;
  239. text-transform:uppercase;
  240. font-size:20px;
  241. border-bottom:1.5px solid {color:accent};
  242. }
  243.  
  244. #description {
  245. text-align:justify;
  246. margin:10px;
  247. }
  248.  
  249. /* Second Column of the Sidebar */
  250. #sider {
  251. float:right;
  252. width:75px;
  253. }
  254.  
  255. /* Sidebar Links */
  256. #sider a {
  257. display:block;
  258. background-color:{color:accent};
  259. margin:5px;
  260. padding:5px;
  261. text-align:center;
  262. -webkit-transition: 0.3s linear;
  263. }
  264.  
  265. #sider a:hover {
  266. background-color:{color:background};
  267. border:1px solid {color:accent};
  268. -webkit-transition: 0.3s linear;
  269. }
  270.  
  271. /* PERMALINKS */
  272. #perma {
  273. text-align:center;
  274. text-transform:uppercase;
  275. background:{color:accent};
  276. padding:10px;
  277. position: relative;
  278. font-size:10px;
  279. {block:PermalinkPage}
  280. display:none;
  281. {/block:PermalinkPage}
  282. }
  283.  
  284. /* Time Permalink */
  285. #perma {
  286. display:inline-block;
  287. top:-10px;
  288. left:20px;
  289. text-align:center;
  290. color:white;
  291. text-transform:uppercase;
  292. opacity:0;
  293. position:absolute;
  294. background-color:{color:accent};
  295. padding:5px 7px 5px 7px;
  296. font-size:10px;
  297. border-radius:50%;
  298. z-index:9;
  299. {block:PermalinkPage}
  300. display:none;
  301. {/block:PermalinkPage}
  302. -webkit-transition:opacity 0.5s ease;
  303. -webkit-transition:all 0.5s ease;
  304. -moz-transition:all 0.5s ease;
  305. transition:all 0.5s ease;
  306. }
  307.  
  308. #perma a {
  309. color:{color:post mask link};
  310. }
  311.  
  312. article:hover #perma {
  313. opacity:1;
  314. top:20px;
  315. -webkit-transition:opacity 0.5s ease;
  316. -webkit-transition:all 0.5s ease;
  317. -moz-transition:all 0.5s ease;
  318. transition:all 0.5s ease;
  319. {block:PermalinkPage}
  320. display:none;
  321. {/block:PermalinkPage}
  322. }
  323.  
  324. /* Reblog Permalink */
  325. #perma1 {
  326. display:inline-block;
  327. top:20px;
  328. left:20px;
  329. text-align:center;
  330. color:white;
  331. text-transform:uppercase;
  332. opacity:0;
  333. position:absolute;
  334. background-color:{color:accent};
  335. padding:5px 7px 5px 7px;
  336. font-size:10px;
  337. border-radius:50%;
  338. z-index:9;
  339. {block:PermalinkPage}
  340. display:none;
  341. {/block:PermalinkPage}
  342. -webkit-transition:opacity 0.5s ease;
  343. -webkit-transition:all 0.5s ease;
  344. -moz-transition:all 0.5s ease;
  345. transition:all 0.5s ease;
  346. transition-delay:0.2s;
  347. }
  348.  
  349. #perma1 a {
  350. color:{color:post mask link};
  351. }
  352.  
  353. article:hover #perma1 {
  354. opacity:1;
  355. top:55px;
  356. -webkit-transition:opacity 0.5s ease;
  357. -webkit-transition:all 0.5s ease;
  358. -moz-transition:all 0.5s ease;
  359. transition:all 0.5s ease;
  360. transition-delay:0.5s;
  361. {block:PermalinkPage}
  362. display:none;
  363. {/block:PermalinkPage}
  364. }
  365.  
  366. /* Note Count Permalink */
  367. #perma2 {
  368. display:inline-block;
  369. top:60px;
  370. left:20px;
  371. text-align:center;
  372. color:white;
  373. text-transform:uppercase;
  374. opacity:0;
  375. position:absolute;
  376. background-color:{color:accent};
  377. padding:5px 7px 5px 7px;
  378. font-size:10px;
  379. border-radius:50%;
  380. z-index:9;
  381. {block:PermalinkPage}
  382. display:none;
  383. {/block:PermalinkPage}
  384. -webkit-transition:opacity 0.5s ease;
  385. -webkit-transition:all 0.5s ease;
  386. -moz-transition:all 0.5s ease;
  387. transition:all 0.5s ease;
  388. transition-delay:0.4s;
  389. }
  390.  
  391. #perma2 a {
  392. color:{color:post mask link};
  393. }
  394.  
  395. article:hover #perma2 {
  396. opacity:1;
  397. top:90px;
  398. -webkit-transition:opacity 0.5s ease;
  399. -webkit-transition:all 0.5s ease;
  400. -moz-transition:all 0.5s ease;
  401. transition:all 0.5s ease;
  402. transition-delay:0.7s;
  403. {block:PermalinkPage}
  404. display:none;
  405. {/block:PermalinkPage}
  406. }
  407.  
  408. /* Permalink for Other Type of Posts */
  409. #perma3 {
  410. text-align:left;
  411. width:200px;
  412. height:auto;
  413. text-transform:uppercase;
  414. border-top:1px solid {color:accent};
  415. padding-top:10px;
  416. {block:PermalinkPage}
  417. display:none;
  418. {/block:PermalinkPage}
  419. }
  420.  
  421. /* TAGS */
  422. .tags {
  423. padding:0px 10px 0px 20px;
  424. display:inline;
  425. }
  426.  
  427. /* Text Post Title*/
  428. #ptitle {
  429. text-align:center;
  430. margin:10px;
  431. text-transform:uppercase;
  432. font-size:14px;
  433. background-color:{color:accent};
  434. }
  435.  
  436. /* Text Post Body */
  437. #pbody {
  438. text-align:left;
  439. padding:0px 10px 0px 10px;
  440. }
  441.  
  442. #posttext img {
  443. width:auto;
  444. height:auto;
  445. }
  446.  
  447. /* Quote */
  448. .quo {
  449. margin:10px;
  450. font-style:italic;
  451. }
  452.  
  453. /* Source */
  454. .source {
  455. margin:10px;
  456. }
  457.  
  458. /* Asker*/
  459. #asker {
  460. text-align:center;
  461. text-transform:uppercase;
  462. font-size:14px;
  463. margin:10px;
  464. border-bottom:1.5px solid {color:accent};
  465. padding-bottom:5px;
  466. }
  467.  
  468. /* Question */
  469. #q {
  470. background-color:{color:accent};
  471. margin:10px;
  472. padding:10px;
  473. }
  474.  
  475. /* Answer */
  476. #answer {
  477. margin:10px;
  478. }
  479.  
  480. /* AUDIO POSTS */
  481. .albumart {
  482. width:250px;
  483. height:250px;
  484. }
  485.  
  486. .aplayer {
  487. width:250px;
  488. }
  489.  
  490. .acaption {
  491. padding:5px 10px 10px 10px;
  492. }
  493.  
  494. .tumblr_audio_player {
  495. height: 30px;
  496. width: 200px;
  497. background-color:{color:accent};
  498. }
  499.  
  500. /* POST CAPTION */
  501. .caption {
  502. padding:0px 10px 0px 20px;
  503. }
  504.  
  505. /* CREDITS TO TUMBLR DOCS */
  506. ol.notes {
  507. padding: 0px;
  508. margin: 25px 0px;
  509. list-style-type: none;
  510. border-bottom: solid 1px {color:accent};
  511. }
  512.  
  513. ol.notes li.note {
  514. border-top: solid 1px {color:accent};
  515. padding: 10px;
  516. }
  517.  
  518. ol.notes li.note img.avatar {
  519. vertical-align: -4px;
  520. margin-right: 10px;
  521. width: 16px;
  522. height: 16px;
  523. }
  524.  
  525. ol.notes li.note span.action {
  526. font-weight: bold;
  527. }
  528.  
  529. ol.notes li.note .answer_content {
  530. font-weight: normal;
  531. }
  532.  
  533. ol.notes li.note blockquote {
  534. border-color: #eee;
  535. padding: 4px 10px;
  536. margin: 10px 0px 0px 25px;
  537. }
  538.  
  539. ol.notes li.note blockquote a {
  540. text-decoration: none;
  541. }
  542. /* CREDITS TO TUMBLR DOCS */
  543.  
  544. /* INFINITE SCROLL */
  545. {block:ifnotinfinitescroll}
  546. .pagi {
  547. text-align:left;
  548. margin-top:10px;
  549. }
  550. {/block:ifnotinfinitescroll}
  551.  
  552. {block:ifinfinitescroll}
  553. .pagi {
  554. display:none;
  555. }
  556. {/block:ifinfinitescroll}
  557.  
  558. /* TUMBLR CONTROLS */
  559. .tmblr-iframe {
  560. position:fixed!important;
  561. top:0;
  562. right:0;
  563. z-index:999999!important;
  564. -webkit-transform:scale(0.8,0.8);
  565. -webkit-transform-origin: 100% 0%;
  566. -ms-transform-origin:100% 0%;
  567. -ms-transform:scale(0.8,0.8);
  568. transform:scale(0.8,0.8);
  569. transform-origin:100% 0%;
  570. }
  571.  
  572. </style>
  573. <body>
  574.  
  575. <div class="header" id="myHeader">
  576. <div id="headerc">{text:top bar quote}</div>
  577. </div>
  578.  
  579. <div id="sidebar">
  580. <div id="sidel">
  581. <div id="sidebarim"><img src={image:sidebar}></div>
  582. <div id="blogt">{Title}</div>
  583. <div id="description">{Description}</div>
  584. </div>
  585.  
  586. <div id="sider">
  587. <a href="/">home</a>
  588. <a href="/ask">mailbox</a>
  589. <a href="{text:link 1 url}">{text:link 1}</a>
  590. <a href="{text:link 2 url}">{text:link 2}</a>
  591. <a href="{text:link 3 url}">{text:link 3}</a>
  592. <a href="/archive">archive</a>
  593. <!-- DO NOT REMOVE MY CREDIT -->
  594. <a href="https://pillowthemes.tumblr.com/">theme</a>
  595. <!-- DO NOT REMOVE MY CREDIT -->
  596. {block:Pagination}
  597. <div class="pagination">
  598. <div class="pagi">
  599. {block:PreviousPage}<a href="{PreviousPage}">previous</a>{/block:PreviousPage}
  600. {block:NextPage}<a href="{NextPage}">next</a>{/block:NextPage}
  601. </div></div>
  602. {/block:Pagination}
  603. </div>
  604. <nav>
  605. <ul>
  606. {block:HasPages}
  607. {block:Pages}
  608. <li> <a href="{URL}">{Label}</a></li>
  609. {/block:Pages}
  610. {/block:HasPages}
  611. </ul>
  612. </nav>
  613. </div>
  614. </div>
  615. </div>
  616.  
  617. <div id="content">
  618. {block:Posts}
  619. <article>
  620.  
  621. {block:Photo}
  622. <div class="photo">
  623. {LinkOpenTag}<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" />{LinkCloseTag}
  624.  
  625. <div id="perma">
  626. <a href="{Permalink}" title="Posted on {Month} {DayOfMonthWithZero}, {Year}"><i class="far fa-calendar"></i></a>
  627. </div>
  628.  
  629. <div id="perma1">
  630. <a href="{ReblogURL}" title="Reblog"><i class="fas fa-undo-alt"></i></a>
  631. </div>
  632.  
  633. <div id="perma2">
  634. <a href="{Permalink}" title="{NoteCount}N"><i class="far fa-sun"></i></a>
  635. </div>
  636.  
  637. {/block:Photo}
  638.  
  639. {block:Photoset}
  640. <div class="photoset">
  641. {block:IndexPage}
  642. <!-- CHANGE PHOTOSET-250 TO PHOTOSET-500 IF YOUR POST SIZE IS 500 -->
  643. {Photoset-250}
  644. {/block:IndexPage}
  645. {block:PermalinkPage}
  646. <!-- CHANGE PHOTOSET-250 TO PHOTOSET-500 IF YOUR POST SIZE IS 500 -->
  647. {Photoset-250}
  648. {/block:PermalinkPage}
  649.  
  650. <div id="perma3">
  651. <a href="{Permalink}" title="Posted on {Month} {DayOfMonthWithZero}, {Year}">{NoteCount}N</a>
  652. <a href="{ReblogURL}" style="float:right;">Reblog</a>
  653. </div>
  654.  
  655. {/block:Photoset}
  656.  
  657. {block:Text}
  658. <div id="posttext">
  659. {block:Title}<div id="ptitle"><a href="{Permalink}">{Title}</a></div>{/block:Title}
  660. <div id="pbody">{Body}</div>
  661.  
  662. <div id="perma3">
  663. <a href="{Permalink}" title="Posted on {Month} {DayOfMonthWithZero}, {Year}">{NoteCount}N</a>
  664. <a href="{ReblogURL}" style="float:right;">Reblog</a>
  665. </div>
  666.  
  667. {/block:Text}
  668.  
  669. {block:Link}
  670. <div class="link">
  671. <a href="{URL}">{Name}</a>
  672. {block:Description}{Description}{/block:Description}
  673.  
  674. <div id="perma3">
  675. <a href="{Permalink}" title="Posted on {Month} {DayOfMonthWithZero}, {Year}">{NoteCount}N</a>
  676. <a href="{ReblogURL}" style="float:right;">Reblog</a>
  677. </div>
  678.  
  679. {/block:Link}
  680.  
  681. {block:Quote}
  682. <div class="quote">
  683. <div class="quo">“{Quote}”</div>
  684. {block:Source}<div class="source">—&nbsp;&nbsp;{Source}</div>{/block:Source}
  685.  
  686. <div id="perma3">
  687. <a href="{Permalink}" title="Posted on {Month} {DayOfMonthWithZero}, {Year}">{NoteCount}N</a>
  688. <a href="{ReblogURL}" style="float:right;">Reblog</a>
  689. </div>
  690.  
  691. {/block:Quote}
  692.  
  693. {block:Chat}
  694. <div class="chat">
  695. <ul>
  696. {block:Lines}
  697. {block:Label}<b>{Label}</b>{/block:Label} {Line}<br>
  698. {/block:Lines}
  699. </ul>
  700.  
  701. <div id="perma3">
  702. <a href="{Permalink}" title="Posted on {Month} {DayOfMonthWithZero}, {Year}">{NoteCount}N</a>
  703. <a href="{ReblogURL}" style="float:right;">Reblog</a>
  704. </div>
  705.  
  706. {/block:Chat}
  707.  
  708. {block:Audio}
  709. {block:AlbumArt}<img class="albumart" src="{AlbumArtURL}">{/block:AlbumArt}
  710. {block:AudioPlayer}<div class="aplayer">{AudioPlayer}</div>{/block:AudioPlayer}
  711. <!-- CHANGE AUDIO-250 TO AUDIO-500 IF YOUR POST SIZE IS 500 -->
  712. {block:AudioEmbed}{AudioEmbed-250}{/block:AudioEmbed}
  713. {block:IndexPage}<div class="acaption">{block:TrackName}Track: {TrackName}<br>{/block:TrackName}
  714. {block:Artist}Artist: {Artist}<br>{/block:Artist}
  715. {block:PlayCount}Played: {PlayCount}{/block:PlayCount}</div>
  716. {/block:IndexPage}
  717. {block:PermalinkPage}
  718. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  719. {/block:PermalinkPage}
  720.  
  721. <div id="perma3">
  722. <a href="{Permalink}" title="Posted on {Month} {DayOfMonthWithZero}, {Year}">{NoteCount}N</a>
  723. <a href="{ReblogURL}" style="float:right;">Reblog</a>
  724. </div>
  725.  
  726. {/block:Audio}
  727.  
  728. {block:Video}
  729. <div id="post video">
  730. <!-- CHANGE VIDEO-250 TO VIDEO-500 IF YOUR POST SIZE IS 500 -->
  731. {Video-250}
  732. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  733. </div>
  734.  
  735. <div id="perma3">
  736. <a href="{Permalink}" title="Posted on {Month} {DayOfMonthWithZero}, {Year}">{NoteCount}N</a>
  737. <a href="{ReblogURL}" style="float:right;">Reblog</a>
  738. </div>
  739.  
  740. {/block:Video}
  741.  
  742. {block:Answer}
  743. <div id="asker">{Asker} asked:</div>
  744. <div id="q">{Question}</div>
  745. <div id="answer">{Answer}</div>
  746.  
  747. <div id="perma3">
  748. <a href="{Permalink}" title="Posted on {Month} {DayOfMonthWithZero}, {Year}">{NoteCount}N</a>
  749. <a href="{ReblogURL}" style="float:right;">Reblog</a>
  750. </div>
  751.  
  752. {/block:Answer}
  753.  
  754. {block:PermalinkPage}
  755. {block:HasTags}{block:Tags}<div class="tags"><a href="{TagURL}"> #{Tag} </a></div>{/block:Tags}{/block:HasTags}
  756. {block:PostNotes}{PostNotes}{/block:PostNotes}
  757. {/block:PermalinkPage}
  758.  
  759. </article>
  760. {/block:Posts}
  761. </div>
  762.  
  763. <!--- DO NOT TOUCH THIS PART --->
  764. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
  765. <script src="https://static.tumblr.com/wgijwsy/Ebfm2v4gy/jquery.masonry.min.js"></script>
  766. {block:IfInfiniteScroll}
  767. <script src="https://static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
  768. <script src="https://static.tumblr.com/iwtk77u/Yhym2yygt/jquery.imagesloaded.min.js"></script>
  769. {/block:IfInfiniteScroll}
  770.  
  771. <script>
  772. (function() {
  773. var $tumblelog = $('#content');
  774. {block:IfInfiniteScroll}
  775. $tumblelog.infinitescroll({
  776. navSelector : ".pagination",
  777. nextSelector : ".pagination a:first",
  778. itemSelector : "article",
  779. bufferPx : 50,
  780. done : "",
  781. loading: {
  782. img : "",
  783. msgText: ""
  784. },
  785. },
  786. function( newElements ) {
  787. var $newElems = $( newElements ).css({ opacity: 0 });
  788. $newElems.imagesLoaded(function(){
  789. $newElems.animate({ opacity: 1 });
  790. $tumblelog.masonry( 'appended', $newElems);
  791. });
  792. }
  793. );
  794. {/block:IfInfiniteScroll}
  795. $tumblelog.imagesLoaded( function(){
  796. $tumblelog.masonry({
  797. columnWidth: function( containerWidth ) {
  798. return containerWidth / 100;
  799. }
  800. });
  801. });
  802. })();
  803. </script>
  804.  
  805. <script>
  806. window.onscroll = function() {myFunction()};
  807.  
  808. var header = document.getElementById("myHeader");
  809. var sticky = header.offsetTop;
  810.  
  811. function myFunction() {
  812. if (window.pageYOffset > sticky) {
  813. header.classList.add("sticky");
  814. } else {
  815. header.classList.remove("sticky");
  816. }
  817. }
  818. </script>
  819. <!--- DO NOT TOUCH THIS PART --->
  820.  
  821. <!--- DO NOT REMOVE MY CREDITS --->
  822. <div id="pillowthemes"><a href="https://pillowthemes.tumblr.com/" title="theme credit" style="color:black;">PT</a></div>
  823. <!--- DO NOT REMOVE MY CREDITS --->
  824.  
  825. </body>
  826. </html>
Add Comment
Please, Sign In to add comment