Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!------------------------------------------
- (◍•ᴗ•◍)♡ ✧*。
- Cost of Lifestyle Theme
- by ThemeKid Chloë | @redivide | @themekid
- > Do not delete/alter any credit.
- > Do not claim as your own.
- > Do not copy any code.
- > Do not redistribute.
- Published 19/07/2020
- ===========================================
- DEPENDENCIES:
- > jQuery
- https://jquery.com/
- > Outicons by Anton Saputro
- https://github.com/antonps/outicons
- > Google Fonts
- https://fonts.google.com/
- > imagesLoaded
- https://imagesloaded.desandro.com/
- > Masonry
- https://masonry.desandro.com/
- > PXU Photosets - updated by bct
- https://bychloethemes.tumblr.com/post/155956945114/
- > Infinite Scroll
- https://infinite-scroll.com/
- > Video Resizing
- https://shythemes.tumblr.com/post/134536748863/
- > Style My Tooltips
- https://manos.malihu.gr/tuts/style-my-tooltips.html
- ------------------------------------------->
- <html>
- <head>
- {block:Hidden}
- <meta name="image:Background" content="" />
- <meta name="image:Header" content="https://64.media.tumblr.com/68f754df3e8cfebe41389c4706327c15/59d37642fce9328d-22/s1280x1920/6d9245b2d3184d3805bfbf69702cd3794517c649.jpg" />
- <meta name="color:Background" content="#fff" />
- <meta name="color:Accent" content="#e29d4a" />
- <meta name="color:Borders" content="#fbdfbe" />
- <meta name="if:Extra Column" content="0"/>
- <meta name="if:Tiled Background" content="" />
- <meta name="if:Redirect Ask" content="" />
- <meta name="text:IMPORTANT" content="do not enable the redirect ask if you are using the default /ask page. it will cause your browser to crash! only enable if you are using a custom ask page."/>
- <meta name="text:Ask Link" content="/ask" />
- <meta name="text:Margins" content="40" />
- <meta name="text:Post Width" content="240" />
- {/block:Hidden}
- <meta charset="UTF-8" />
- <title>{block:TagPage}{Tag} posts | {/block:TagPage} {block:PostSummary}{PostSummary} | {/block:PostSummary}{Title}</title>
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <link rel="stylesheet" href="https://static.tumblr.com/8pnyeus/D87qcdm0a/oi-icomoon.css">
- <link href="https://fonts.googleapis.com/css?family=Karla:400,400i,700,700i|IBM+Plex+Mono" rel="stylesheet">
- <link rel="stylesheet" href="//static.tumblr.com/8pnyeus/29To2og0o/styles.css">
- <script src="https://dl.dropboxusercontent.com/s/7ke33tjjl8rty02/scripts.js"></script>
- <script src="https://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
- <script>{block:IfRedirectAsk}
- if(window.location.pathname == '/ask') location.replace('{text:Ask Link}');{/block:IfRedirectAsk}
- (function($){
- $(document).ready(function(){
- $("[title],a[title],img[title]").style_my_tooltips({
- tip_follows_cursor:true,
- tip_delay_time:100,
- tip_fade_speed:300,
- attribute:"title"
- });
- });
- })(jQuery);
- </script>
- <style>
- * {
- margin: 0;
- padding: 0;
- }
- ::-webkit-scrollbar {
- background-color: #ddd;
- height: 11px;
- width: 11px;
- border: 5px solid #fff;
- }
- ::-webkit-scrollbar-thumb {
- background-color: #000;
- border: 5px solid #fff;
- }
- #tumblr_controls, .tmblr-iframe {
- top: 21px!important;
- right: 15px!important;
- -webkit-filter: invert(100%);
- filter: invert(100%);
- position: fixed!important;
- -webkit-transform: scale(.7, .7);
- -moz-transform: scale(.7, .7);
- transform: scale(.7, .7);
- -webkit-transform-origin: right top;
- -moz-transform-origin: right top;
- -ms-transform-origin: right top;
- -o-transform-origin: right top;
- transform-origin: right top;
- z-index: 999999999999999999!important
- }
- #s-m-t-tooltip {
- max-width: 300px;
- padding: 3px 6px;
- margin: 20px 10px;
- background: #000;
- color: #fff;
- z-index: 999999999999999!important;
- font-size: 9px;
- }
- #reblogged {
- right: 20px!important;
- bottom: 20px!important;
- }
- body {
- background:{color:Background} url({image:Background}) {block:IfNotTiledBackground}no-repeat center center fixed;
- background-size:cover;{/block:IfNotTiledBackground}
- {block:IfTiledBackground}repeat fixed;{/block:IfTiledBackground}
- color: #676767;
- font-family: 'Karla', sans-serif;
- line-height: 15px;
- -moz-osx-font-smoothing: grayscale;
- -webkit-font-smoothing: antialiased;
- font-smoothing: antialiased;
- font-size: 11px;
- word-wrap: break-word;
- }
- img:not(.lightbox-image) {
- max-width: 100%;
- height: auto;
- vertical-align: middle;
- }
- [class*=" icon-oi_"]:before,[class^=icon-oi_]:before {
- line-height:inherit;
- vertical-align: middle;
- }
- @font-face {
- font-family: 'icomoon';
- src: url('https://dl.dropboxusercontent.com/s/1ohfequ7ws4ejzm/icomoon.eot?5kiojs');
- src: url('https://dl.dropboxusercontent.com/s/1ohfequ7ws4ejzm/icomoon.eot?5kiojs#iefix') format('embedded-opentype'),
- url('https://dl.dropboxusercontent.com/s/9qmsmnbzj2canp9/icomoon.ttf?5kiojs') format('truetype'),
- url('https://dl.dropboxusercontent.com/s/eodx1z60h9yimh0/icomoon.woff?5kiojs') format('woff'),
- url('https://dl.dropboxusercontent.com/s/m57uc7hijqbua78/icomoon.svg?5kiojs#icomoon') format('svg');
- font-weight: normal;
- font-style: normal;
- }
- a {
- text-decoration: none;
- color: #000;
- }
- h1, h2, h3, h4, h5, h6 {
- font-family: 'IBM Plex Mono', monospace;
- }
- #infscr-loading {
- position:absolute;
- margin-bottom:-40px;
- bottom:30px;
- width:200px;
- margin-left:50%;
- left:-100px;
- text-align:center;
- }
- header {
- background: {color:Borders};
- width: 100%;
- height: 80px;
- position: fixed;
- text-align: center;
- line-height: 80px;
- top: 0;
- left: 0;
- z-index: 999999999999;
- }
- header h1 {
- font-family: 'IBM Plex Mono', monospace;
- font-weight: normal;
- z-index: 99;
- font-size: 1.5em;
- position: relative;
- color: #000;
- display: inline-block;
- margin-right: 45px;
- }
- ul#nav {
- list-style: none;
- display: inline-block;
- font-family: 'IBM Plex Mono', monospace;
- font-size: 0.9em;
- }
- ul#nav a {
- color: {color:Accent};
- }
- ul#nav li {
- margin: 0;
- display: inline-block;
- font-size: 1.3em;
- }
- ul#nav li:after {
- content:'x';
- margin-left: 15px;
- margin-right: 15px;
- font-size:11px;
- color:{color:Accent};
- }
- ul#nav li:last-of-type:after {
- content:'';
- margin-left:0px;
- }
- ul#nav li:last-of-type {
- margin-right:0;
- }
- aside {
- top: 150px;
- text-align: center;
- margin: 50px auto;
- }
- aside .side-img {
- background: url({image:Header});
- background-size: cover;
- width: 80px;
- height: 80px;
- display: inline-block;
- border-radius: 50%;
- vertical-align: middle;
- }
- #desc {
- margin: 15px 0 15px 30px;
- display: inline-block;
- width: 250px;
- vertical-align: middle;
- text-align: left;
- }
- #container {
- position: relative;
- padding: 70px 0 50px;
- {block:IfExtraColumn}
- left: calc(50% - (4 * {text:Post Width}px + 3 * {text:Margins}px) / 2);
- width: calc(4 * {text:Post Width}px + 3 * {text:Margins}px);
- {/block:IfExtraColumn}{block:IfNotExtraColumn}
- left: calc(50% - (3 * {text:Post Width}px + 2 * {text:Margins}px) / 2);
- width: calc(3 * {text:Post Width}px + 2 * {text:Margins}px);
- {/block:IfNotExtraColumn}
- }
- #posts {
- {block:IfExtraColumn}
- width: calc(4 * {text:Post Width}px + 3 * {text:Margins}px);
- {/block:IfExtraColumn}{block:IfNotExtraColumn}
- width: calc(3 * {text:Post Width}px + 2 * {text:Margins}px);
- {/block:IfNotExtraColumn}
- }
- article {
- width: {text:Post Width}px;
- margin-bottom: {text:Margins}px;
- box-sizing: border-box;
- border: 10px solid {color:Borders};
- background: #fff;
- {block:PermalinkPage}
- width: 540px;
- margin: 0 auto;
- {/block:PermalinkPage}
- overflow:hidden;
- position: relative;
- }
- article.text-type {
- padding: 15px;
- }
- article.photo .reblog-list,
- article.video .reblog-list,
- article.photoset .reblog-list {
- padding: 15px 10px 10px;
- }
- article.photo .replog-list:empty,
- article .reblog-list:empty {
- display: none;
- }
- .reblog:not(:first-of-type):not(.note) {
- padding-top: 10px;
- }
- article h2 + div {
- padding-top: 10px;
- }
- article p {
- margin-bottom: 5px;
- }
- article p:last-of-type {
- margin-bottom: 0;
- }
- article ol, article ul {
- padding-left: 15px;
- margin: 10px;
- }
- article .reblog:not(.note) img {
- margin: 5px 0;
- }
- article blockquote {
- margin: 10px;
- border-left: 2px solid #eaeaea;
- padding-left: 10px;
- }
- article .reblog-header {
- margin-bottom: 3px;
- }
- article .reblog-header i {
- margin-right: 5px;
- }
- article .inactive span {
- text-decoration: line-through;
- }
- article .reblog-list:hover .inactive:after {
- content: 'deactivated';
- margin-left: 5px;
- text-decoration: none;
- }
- article.quote cite {
- display: block;
- text-align: right;
- }
- article.quote .reblog-list {
- display: none;
- }
- article.chat ul {
- list-style: none;
- margin: 0;
- padding: 0;
- font-size: 1.1em;
- }
- article.chat li:not(:first-of-type) {
- margin-top: 5px;
- }
- .host + .reblog-list {
- padding-top: 10px;
- }
- article .question {
- margin-bottom: 10px;
- background: rgba({RGBcolor:Accent}, 0.3);
- padding: 5px;
- border-radius: 3px;
- }
- {block:IndexPage}
- .permalinks ul {
- padding: 0;
- margin: 0;
- text-align: right;
- list-style: none;
- }
- .permalinks li {
- display: inline-block;
- margin-left: 3px;
- }
- .permalinks li:first-of-type {
- float: left;
- margin-left: 0;
- }
- .permalinks {
- padding-top: 10px;
- }
- article.photo .permalinks,
- article.video .permalinks,
- article.video .permalinks {
- padding: 5px 5px 0;
- }
- article.non-text-type img {
- transition: all 0.3s ease-in-out;
- }
- article.non-text-type:hover img {
- transition: all 0.3s ease-in-out;
- filter: opacity(0.8) grayscale(1);
- }
- article.non-text-type .permalinks {
- display: block;
- width: calc(100% - 20px);
- position: absolute;
- bottom: -30px;
- left: 10px;
- background: {color:Borders};
- transition: all 0.3s ease-in-out;
- padding: 3px 6px;
- box-sizing: border-box;
- font-weight: bold;
- z-index: 9999;
- }
- article.non-text-type:hover .permalinks {
- transition: all 0.3s ease-in-out;
- bottom: 10px;
- }
- article.non-text-type .permalinks li {
- vertical-align: middle;
- padding: 4px;
- }
- article.non-text-type .permalinks li:nth-of-type(3) i {
- vertical-align: middle;
- }
- .custom-like-button {
- position: relative;
- cursor: pointer;
- display:inline-block;
- }
- .like_button {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- width: 100%;
- height: 100%;
- opacity: 0;
- z-index: 10;
- }
- .like_button iframe {
- width: 100% !important;
- height: 100% !important;
- }
- .our_toggle {
- color: #000;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- width: 11px;
- height: 13px;
- z-index: 1;
- cursor: pointer;
- -webkit-transition: all 0.2s ease-in-out;
- -moz-transition: all 0.2s ease-in-out;
- -o-transition: all 0.2s ease-in-out;
- transition: all 0.2s ease-in-out;
- }
- .like_button:hover + .our_toggle {
- color: {color:Accent};
- -webkit-transition: all 0.2s ease-in-out;
- -moz-transition: all 0.2s ease-in-out;
- -o-transition: all 0.2s ease-in-out;
- transition: all 0.2s ease-in-out;
- }
- .like_button.liked + .our_toggle .icon-oi_heart:before {
- content: "\e992";
- color: {color:Accent};
- }
- {/block:IndexPage}
- {block:PermalinkPage}
- ol.notes {
- list-style: none;
- padding: 0;
- }
- a.avatar_frame {
- float: right;
- height: 16px;
- }
- li.note {
- padding: 3px 0;
- padding-left: 20px;
- }
- img.avatar {
- border-radius: 3px;
- }
- li.like:before {
- content: "\e993";
- font-family: icomoon!important;
- font-style: normal;
- font-weight: 400;
- speak: none;
- display: inline-block;
- text-decoration: inherit;
- width: 1em;
- text-align: center;
- font-variant: normal;
- text-transform: none;
- vertical-align: middle;
- line-height: 1;
- font-size: 1em;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- margin-right: -11px;
- color: #f3719f;
- left: -20px;
- position: relative;
- font-size: 14px;
- }
- li.reblog:before, li.reply:before {
- content: '\e9ae';
- font-family: icomoon!important;
- font-style: normal;
- font-weight: 400;
- speak: none;
- display: inline-block;
- text-decoration: inherit;
- width: 1em;
- text-align: center;
- font-variant: normal;
- text-transform: none;
- vertical-align: middle;
- line-height: 1;
- font-size: 1em;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- margin-right: -11px;
- color: #909090;
- left: -20px;
- position: relative;
- font-size: 14px;
- }
- li.original_post:before {
- content: '\e9b8';
- }
- li.reply:before {
- content: "\e974";
- }
- .more-info {
- margin: 0 10px 10px;
- font-weight: bold;
- }
- .reblog-list:empty + .more-info {
- margin-top: 10px;
- }
- a.tags {
- margin-right: 5px;
- color: #676767;
- }
- article:not(.photo) .more-info,
- article:not(.photoset) .more-info{
- margin-top: 10px;
- }
- article:not(.photo):not(.photoset):not(.video) {
- padding: 20px;
- }
- article:not(.photo):not(.photoset):not(.video) ol.notes {
- margin: 10px 0 0;
- }
- article:not(.photo):not(.photoset):not(.video) .more-info {
- margin-left: 0;
- margin-right: 0;
- }
- {/block:PermalinkPage}
- </style>
- </head>
- <body>
- <header>
- <h1>{Title}</h1>
- <ul id="nav">
- <li><a href="/">home</a><!--
- -->{block:AskEnabled}<li><a href="{text:Ask Link}">msg</a>{/block:AskEnabled}<!--
- -->{block:HasPages}{block:Pages}<li><a href="{URL}">{Label}</a>{/block:Pages}{/block:HasPages}<!--
- --><li><a href="/archive">past</a>
- </ul>
- </header>
- <section id="container">
- <aside>
- <div class="side-img"></div>
- {block:Description}
- <div id="desc">
- {Description}
- </div>
- {/block:Description}
- </aside>
- <div id="posts">
- {block:Posts}<article id="{PostID}" class="{PostType} {block:Photoset}non-{/block:Photoset}{block:Photo}non-{/block:Photo}text-type">
- {block:IndexPage}
- {block:IfReblogHeader}
- {block:RebloggedFrom}
- <div class="header">
- <i class="icon-oi_refresh"></i> <a href="{ReblogParentURL}" target="_blank">{ReblogParentName}</a>
- <span class="time-ago">{TimeStamp}</span>
- </div>
- {/block:RebloggedFrom}
- {/block:IfReblogHeader}
- {/block:IndexPage}
- {block:Text}
- {block:Title}<h2>{Title}</h2>{/block:Title}
- {block:NotReblog}
- <div class="reblog-list">
- {Body}
- </div>
- {/block:NotReblog}
- {/block:Text}
- {block:Photo}
- <a href="#" onclick="Tumblr.Lightbox.init([{ width: {PhotoWidth-HighRes}, height: {PhotoHeight-HighRes}, low_res: '{PhotoURL-500}', high_res: '{PhotoURL-HighRes}' }]); $('body').toggleClass('tumblr_lightbox_active'); return false" class="zoom">
- <img src="{PhotoURL-HighRes}">
- </a>
- {block:NotReblog}
- {block:Caption}
- <div class="reblog-list">
- {Caption}
- </div>
- {/block:Caption}
- {/block:NotReblog}
- {/block:Photo}
- {block:Photoset}
- <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 zoom" rel="post-{PostID}" href="{PhotoURL-HighRes}"></a>
- </div>{/block:Photos}
- </div>
- {block:NotReblog}
- {block:Caption}
- <div class="reblog-list">
- {Caption}
- </div>
- {/block:Caption}
- {/block:NotReblog}
- {/block:Photoset}
- {block:Quote}
- <blockquote>
- <h2>{Quote}</h2>
- </blockquote>
- {block:Source}
- <cite>{Source}</cite>
- {/block:Source}
- {/block:Quote}
- {block:Chat}
- <ul>
- {block:Lines}<li>{block:Label}<b>{Label}</b>{/block:Label} {Line}{/block:Lines}
- </ul>
- {/block:Chat}
- {block:Link}
- <h2><i class="icon-oi_link"></i> <a href="{URL}">{Name}</a></h2>
- {block:Excerpt}
- <blockquote>
- {Excerpt}
- </blockquote>
- {block:Host}
- <div class="host">
- ({Host})
- </div>
- {/block:Host}
- {/block:Excerpt}
- {block:NotReblog}
- {block:Description}
- <div class="reblog-list">
- {Description}
- </div>
- {/block:Description}
- {/block:NotReblog}
- {/block:Link}
- {block:Video}
- {Video-500}
- {block:NotReblog}
- <div class="reblog-list">
- {Caption}
- </div>
- {/block:NotReblog}
- {/block:Video}
- {block:Audio}
- {block:AudioPlayer}<div class="video">{AudioPlayer}</div>{/block:AudioPlayer}
- {block:NotReblog}
- <div class="reblog-list">
- {Caption}
- </div>
- {/block:NotReblog}
- {/block:Audio}
- {block:Answer}
- <div class="question">
- <div class="querier"><i class="icon-oi_chat"></i> {Asker} asked:</div>
- {Question}
- </div>
- {block:Answerer}
- <div class="question">
- <div class="querier"><i class="icon-oi_discuss"></i> {Answerer} replied:</div>
- {Answer}
- </div>
- {/block:Answerer}
- {block:NotReblog}
- <div class="reblog-list">
- {Replies}
- </div>
- {/block:NotReblog}
- {/block:Answer}
- {block:RebloggedFrom}
- <div class="reblog-list" {block:IndexPage}{block:Photo}style="display:none"{/block:Photo}{block:Photoset}style="display:none"{/block:Photoset}{block:Video}style="display:none"{/block:Video}{block:Audio}style="display:none"{/block:Audio}{/block:IndexPage}{block:Chat}style="display:none"{/block:Chat}>
- {block:Reblogs}
- <div class="{block:isOriginalEntry}original-reblog {/block:isOriginalEntry}reblog">
- <div class="reblog-header">
- <a href="{Permalink}" target="_blank">{block:isOriginalEntry}<i class="icon-oi_user"></i>{/block:isOriginalEntry}{block:isNotOriginalEntry}<i class="icon-oi_refresh"></i>{/block:isNotOriginalEntry}</a>
- {block:IsActive}
- <a target="_blank" href="{Permalink}">{Username}</a>
- {/block:IsActive}
- {block:IsDeactivated}
- <span class="inactive"><span>{Username}</span></span>
- {/block:IsDeactivated}
- </div>
- <div class="reblog-content">
- {Body}
- </div>
- </div>
- {/block:Reblogs}
- </div>
- {/block:RebloggedFrom}
- {block:IndexPage}<div class="permalinks">
- <ul>
- <li><a href="{Permalink}" target="_blank" title="permalink">{NoteCountWithLabel}</a>
- <li class="custom-like-button" title="like">
- {LikeButton}
- <div class="our_toggle"><i class="icon-oi_heart"></i></div>
- <li><a href="{ReblogURL}" target="_blank" title="reblog?"><i class="icon-oi_refresh"></i></a>
- </ul>
- </div>{/block:IndexPage}
- <!-- {block:NoRebloggedFrom}
- {block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}
- {/block:NoRebloggedFrom} -->
- {block:ContentSource}<!-- {SourceURL}
- {block:SourceLogo}<img src="{BlackLogoURL}"width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />{/block:SourceLogo}
- {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
- {/block:ContentSource}
- {block:PermalinkPage}
- {block:Date}<div class="more-info">
- {NoteCountWithLabel} / {DayofMonth}{DayofMonthSuffix} of {Month}{block:RebloggedFrom} / via: <a href="{ReblogParentURL}" target="_blank">{ReblogParentName}</a> / src: <a href="{ReblogRootURL}" target="_blank">{ReblogRootName}</a>{/block:RebloggedFrom}{block:HasTags} / {block:Tags}<a href="{TagURL}" class="tags">#{Tag}</a>{/block:Tags}{/block:HasTags}
- </div>{/block:Date}
- {block:PostNotes}
- {PostNotes-16}
- {/block:PostNotes}
- {/block:PermalinkPage}
- </article>{/block:Posts}
- </div>
- </section>
- {block:Pagination}
- <div class="pagination" style="visibility:hidden;">
- {block:NextPage}<a href="{NextPage}" id="next-link">next</a>{/block:NextPage}
- </div>
- {/block:Pagination}
- <script src="https://secure.static.tumblr.com/iwtk77u/Yhym2yygt/jquery.imagesloaded.min.js"></script>
- <script src="https://secure.static.tumblr.com/i5s2zks/0ILo8v362/masonry.pkgd.min.js"></script>
- <link href="//static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
- <script src="https://static.tumblr.com/yxfeliq/hHwojmt8m/bctphotoset.min.js"></script>
- <script src="//static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
- <script src ="//static.tumblr.com/fwgzvyf/Oj1o08f6h/shythemes.vr.js"></script>
- <script type="text/javascript">
- var fhs = document.createElement('script');var fhs_id = "5643242";
- var ref = (''+document.referrer+'');var pn = window.location;var w_h = window.screen.width + " x " + window.screen.height;
- fhs.src = "//freehostedscripts.net/ocounter.php?site="+fhs_id+"&e1=&e2=&r="+ref+"&wh="+w_h+"&a=1&pn="+pn+"";
- document.head.appendChild(fhs);document.write("<span id='o_"+fhs_id+"' style='display:none'></span>");
- var pxuOptions={
- lightbox:!0,
- rounded:!1,
- gutter:"2px",
- photoset:".photo-slideshow",
- photoWrap:".photo-data",
- photo:".pxu-photo"
- },
- masonryOptions = {
- itemSelector:"article",
- isAnimated:!1,
- columnWidth:{text:Post Width},
- gutter:{text:Margins},
- fitWidth:false,
- }, infScrollOptions = {
- navSelector : "div.pagination",
- nextSelector : ".pagination a#next-link",
- itemSelector : "article",
- loading: {
- finishedMsg: "<p>You've reached the end of the Earth.</p>",
- img : "https://res1.nabtrade.com.au/Content/Images/ajax_loader.gif",
- msg: null,
- msgText: "",
- }
- }
- function removeViaQuotes() {
- $(this).html($(this).html().split('(via')[0]);
- }
- $(document).ready(function(){
- $('.photo-slideshow').pxuPhotoset(pxuOptions);
- $('.quote cite').each(removeViaQuotes);
- {block:IndexPage}
- var $tumblelog = $('#posts');
- $tumblelog.imagesLoaded(function () {
- $tumblelog.masonry(masonryOptions);
- });
- $tumblelog.infinitescroll(infScrollOptions, function(newElements) {
- var $newElems = $( newElements );
- $newElems.css({ opacity: 0, zIndex: -1 });
- var $newElemsIDs = $newElems.map(function () {
- return this.id;
- }).get();
- $newElems.find('.photo-slideshow').pxuPhotoset(pxuOptions);
- resizeVideos();
- $newElems.imagesLoaded(function(){
- $newElems.animate({ opacity: 1, zIndex: 1 });
- $tumblelog.masonry( 'appended', $newElems );
- });
- Tumblr.LikeButton.get_status_by_post_ids($newElemsIDs);
- });
- {/block:IndexPage}
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement