Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <!--
- sunlight
- @odeysseus
- - videos, shortened note count and text like/reblog buttons by shythemes
- - unnest captions by @magnusthemes and @neothm
- - full credits listed at odeysseus.tumblr.com/credit
- -->
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
- <title>{Title}</title>
- <!--metas-->
- <meta name="color:Text" content="#aaaaaa"/>
- <meta name="color:accent" content="#bebcbc"/>
- <meta name="color:link" content="#333"/>
- <meta name="if:hide caption" content="0"/>
- <meta name="if:header img" content="0"/>
- <meta name="if:infinite scroll" content="0"/>
- <meta name="if:load more" content="0"/>
- <meta name="if:scroll to top" content="0"/>
- <meta name="if:show tags" content="0"/>
- <meta name="if:updates tab" content="0"/>
- <meta name="text:link 1 url" content=""/>
- <meta name="text:link 1" content=""/>
- <meta name="text:link 2 url" content=""/>
- <meta name="text:link 2" content=""/>
- <meta name="text:link 3 url" content=""/>
- <meta name="text:link 3" content=""/>
- <meta name="text:popup about" content="popup about text goes here"/>
- <meta name="text:watching" content="currently watching goes here. if you leave any of these 'currently' sections blank, they won't show up in the theme."/>
- <meta name="text:reading" content="currently reading goes here"/>
- <meta name="text:listening" content="currently listening goes here"/>
- <meta name="text:waiting for" content="currently waiting for goes here"/>
- <meta name="text:creating" content="currently creating for goes here"/>
- <meta name="text:font size" content="9.5px"/>
- <meta name="select:font" content="Merriweather"/>
- <meta name="select:font" content="Karla"/>
- <meta name="select:font" content="Source Sans Pro"/>
- <meta name="select:font" content="Mako"/>
- <meta name="select:font" content="Open Sans"/>
- <meta name="select:font" content="PT Sans"/>
- <meta name="select:font" content="Libre Franklin"/>
- <meta name="select:font" content="Muli"/>
- <meta name="select:font" content="Lora"/>
- <meta name="select:font" content="Source Serif Pro"/>
- <meta name="select:font" content="Playfair Display"/>
- <meta name="select:font" content="Georgia"/>
- <meta name="select:post align" content="top" title="top"/>
- <meta name="select:post align" content="middle" title="middle"/>
- <meta name="select:post align" content="baseline" title="bottom"/>
- <meta name="select:column number" content="1"/>
- <meta name="select:column number" content="2"/>
- <meta name="select:column number" content="3"/>
- <meta name="select:post width" content="300px"/>
- <meta name="select:post width" content="330px"/>
- <meta name="select:post width" content="350px"/>
- <meta name="select:post width" content="380px"/>
- <meta name="select:post width" content="400px"/>
- <meta name="select:post width" content="420px"/>
- <meta name="select:post width" content="450px"/>
- <meta name="select:post width" content="480px"/>
- <meta name="select:post width" content="500px"/>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
- <!--font-->
- <link href='https://fonts.googleapis.com/css?family={select:font}:300,300italic,400,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
- <!--videos-->
- <script src ="//static.tumblr.com/fwgzvyf/Oj1o08f6h/shythemes.vr.js"></script>
- <style type="text/css">
- @-webkit-keyframes fadein {
- 0% {opacity: 0;}
- 50% { opacity: 0; }
- 100% { opacity: 1; }
- }
- @-moz-keyframes fadein {
- 0% { opacity: 0; }
- 50% { opacity: 0; }
- 100% { opacity: 1; }
- }
- @keyframes fadein {
- 0% { opacity: 0; }
- 50% { opacity: 0; }
- 100% { opacity: 1; }
- }
- ::-webkit-scrollbar{
- height:3px;
- width:13px;
- background:#fff;
- }
- ::-webkit-scrollbar-thumb {background:rgba({RGBcolor:accent},0.5);border:6px solid #fff;}
- ::-webkit-scrollbar-track {background:#eee;border:6px solid #fff};}
- ::-moz-selection{ background: #eee; color:#777;}
- ::selection { background:#eee; color:#777; }
- .tmblr-iframe{ white-space:nowrap; -webkit-filter: invert(100%); -moz-filter: invert(100%); -o-filter: invert(100%); -ms-filter: invert(100%); filter: invert(100%);opacity:.2;transition: .4s ease-in-out; -webkit-transition: .4s ease-in-out;-moz-transition: .4s ease-in-out;-o-transition: .4s ease-in-out;position:fixed!important;right:-30px!important;transform:scale(0.7,0.7); } .tmblr-iframe:hover { opacity:1; }
- #s-m-t-tooltip{
- position:absolute;
- margin:15px;
- max-width:250px;
- color:#444;
- z-index:9999;
- border:1px solid #eee;
- background:rgba(255,255,255,.9);padding:2px 4px;
- }
- blockquote {
- padding:0!important;margin:0!important;
- }
- pre {
- white-space: pre-wrap; /* CSS 3 */
- white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
- white-space: -pre-wrap; /* Opera 4-6 */
- white-space: -o-pre-wrap; /* Opera 7 */
- word-wrap: break-word; /* Internet Explorer 5.5+ */
- background:#fafafa;
- padding:10px;
- }
- body {
- background:#fff;
- color:{color:text};
- font-family:'{select:font}',sans-serif;
- font-weight:300;
- font-size:{text:font size};
- text-align:left;
- line-height:180%;
- -moz-osx-font-smoothing:grayscale;
- -webkit-font-smoothing:antialiased;
- font-smoothing:antialiased;
- }
- hr {
- border:none;display:block;margin:10px 0px;width:100%;height:1px;background:#eee;
- }
- a {
- color:{color:link};
- text-decoration:none;
- transition:0.25s ease-in-out;
- -webkit-transition:0.25s ease-in-out;
- -moz-transition:0.25s ease-in-out;
- }
- a:hover {
- text-decoration:none;
- color:{color:accent};
- }
- b,strong {
- font-weight:600;
- color:#333;
- }
- img{
- opacity:1;
- border:none;
- text-decoration:none;
- }
- small {
- font-size:calc({text:font size} - 0.5px);
- }
- big {
- font-size:calc({text:font size} + 0.5px);
- }
- h1,h2,h3,h4,h5,h6 {
- padding:0;margin:0;margin-bottom:10px;
- font-size:14px;color:{color:accent};font-weight:300;
- }
- .posts {
- {block:indexpage}margin:60px;display:inline-block;width:{select:post width};{/block:indexpage}{block:permalinkpage}margin:60px;width:500px;{/block:permalinkpage}position:relative;vertical-align:{select:post align};
- -webkit-animation-name: fadein;-webkit-animation-duration: 1s;
- }
- .entries {
- {block:permalinkpage}width:350px;{/block:permalinkpage}{block:indexpage}width:calc(({select:post width} + 122px) * {select:column number});padding-left:15px;{/block:indexpage}
- }
- .stuff {
- margin:40px;
- }
- header {
- margin:60px 72px 0px;
- width:{select:post width};
- }
- header img {
- width:40px;border-radius:100%;margin-bottom:20px;display:block;
- }
- a.h,h8 { font-size:15px;color:#444; }
- h8 { display:block;margin-bottom:10px; }
- .caption {
- margin-top:15px;
- padding:0px 10px 2px;background:#fafafa;
- {block:ifhidecaption}
- {block:indexpage}
- display:none;
- {/block:indexpage}
- {/block:ifhidecaption}
- }
- .posts img, .posts li, .posts blockquote {
- max-width: 100%;
- }
- .ia a:hover:before {
- width:0;
- }
- .posts ul li {
- list-style:square;color:#888;font-style:italic;
- }
- .tags a {
- text-transform:lowercase;letter-spacing:0px;
- border:none;
- margin:0px 2px;
- }
- .notes {
- margin-top:15px;
- }
- ol.notes {
- padding:0px;
- list-style-type:none;
- font-style:normal;
- }
- ol.notes li.note {
- padding:2px;
- font-style:normal;
- }
- .notes_loading, .more_notes_link {
- font-weight:bold;float:left;
- text-align:left!important;
- text-transform:lowercase;
- }
- .notes img {
- display:none!important;
- }
- ol.notes li.note span.action {
- font-weight:none;
- }
- ol.notes li.note .answer_content {
- font-weight:normal;
- }
- ol.notes li.note blockquote {
- padding:4px 10px;
- margin:5px 0px 0px 15px;
- }
- ol.notes li.note blockquote a {
- text-decoration:none;
- }
- blockquote img {
- max-width:250px!important;
- height:auto;
- }
- .quote {
- text-transform:lowercase;
- font-size:12px;
- padding:10px;background:#fafafa;
- color:#444;margin-bottom:10px;
- line-height:200%;
- }
- .quotesource,.quotesource b { color:#888; }
- .quotesource a.tumblr_blog {
- margin:0;
- }
- .chat {
- line-height:20px;
- list-style:none;
- }
- .line.odd {
- margin-bottom:2px;
- background:#fafafa;
- padding:3px;
- list-style:none;
- }
- .line.even {
- margin-bottom:2px;
- padding:3px;
- list-style:none;
- }
- .label {
- padding-right:1px;
- color:#444;
- }
- .asker { display:inline;margin-right:5px; }
- .asker { font-size:8px;text-transform:uppercase;letter-spacing:1px;font-style:normal;}
- .asker a:hover { color:{color:accent}; }
- .question { display:inline;font-style:italic; }
- .player {
- display:inline-block;
- width:50px;
- background:#fafafa;
- height:50px;
- overflow:hidden;margin-bottom:-5px;
- }
- .audio_d { float:right;padding:15px 10px;border:1px dotted #eee; width:calc({select:post width} - 90px );}
- .tumblr_audio_player { background:#fafafa!important; }
- .tumblr_audio_player {
- width:40px;
- margin:10px 7px;
- height:40px;
- overflow:hidden;
- }
- #cred {
- bottom:27px;
- position:fixed;
- right:27px;
- }
- .sc {
- bottom:15px;
- right:27px;text-align:right;
- position:fixed;
- display:none;
- font-weight:bold;
- cursor:help;
- }
- .sc a { cursor:help;}
- #vignette,.vignette { opacity:0!important; }
- .lightbox-image,#tumblr_lightbox img { box-shadow: none !important; border-radius:0 !important;}
- #tumblr_lightbox,.tmblr-lightbox { background:rgba(255,255,255,.7)!Important; }
- #tumblr_lightbox_left_link, #tumblr_lightbox_right_link { visibility: hidden; }
- .lightbox-caption,#tumblr_lightbox_caption { opacity:0; }
- #pagination {
- margin:60px;
- {block:ifinfinitescroll}display:none;{/block:ifinfinitescroll}
- }
- #pagination a { margin:0px 5px; }
- .current_page { margin:0px 5px;padding:3px 6px;border:1px solid #eee;border-radius:100%;font-weight:700;color:{color:accent}; }
- #infscr-loading { display:none!Important; }
- footer {
- margin:80px;
- }
- a#more {
- position:relative;
- text-align:center;
- }
- .tumblr_parent { border:none;margin:5px 0px;padding:2px;display:block;}
- .caption .tumblr_blog { top:10px; }
- .tumblr_blog { position:relative;margin:0;border-bottom:1px solid #eee; }
- a.tumblr_blog,.asker a { color:#444; }
- a.tumblr_blog:hover { border-color:{color:accent};color:{color:accent};}
- .quotesource a.tumblr_blog { top:0px; }
- .inf {
- text-transform:lowercase;margin-top:10px;
- }
- .buttons { float:right}
- .buttons a { margin-left:5px; }
- .like-b {
- position:relative;
- display:inline-block;
- height:1em;
- line-height:1em;
- overflow:hidden;
- margin-bottom:-1px;
- }
- .like-b .like_button iframe {
- position:absolute;
- top:0;
- left:0;
- bottom:0;
- right:0;
- z-index:2;
- opacity:0;
- }
- .like-b .liked + .b {
- color:{color:accent};
- }
- .like-b .liked + .b:after {
- content:'d';
- }
- nav { margin-top:5px;font-size:8px;text-transform:uppercase;letter-spacing:1px;}
- nav a { margin-right:8px; }
- .d { font-style:italic; }
- .click { cursor:help; }
- #pop {
- width:100%;
- height:100%;
- top:0;left:0;
- position:fixed;
- z-index:999;
- background:rgba(255,255,255,.9); /* background of popup. adjust the .9 for the opacity of the background (1 will be solid white, .5 will be semi transparent, etc.) */
- display:none;
- }
- .fade {
- top:0;
- left:0;
- position:fixed;
- z-index:1000;
- width:100%;
- height:100%;
- }
- .popup {
- top:50%;
- left:120px;
- transform:translate(0%,-50%);
- position:fixed;
- background:#fff; /* background of popup box */
- padding:20px; /* padding of popup box */
- z-index:10000;
- max-width:400px; /* width of popup */
- }
- .box a,.box b {
- width:32%;display:inline-block;
- }
- .box { margin-top:20px;margin-bottom:20px; }
- #update { top:50px;right:30px;position:fixed;width:175px;text-align:right;height:30px;overflow:hidden;} #update,.updatetext { transition: .7s ease-in-out; -webkit-transition: .7s ease-in-out;-moz-transition: .7s ease-in-out;-o-transition: .7s ease-in-out; } #update h5 { font-size:10px;color:#444;text-transform:uppercase;letter-spacing:1px; } #update h6 { font-size:{text:font size};margin:5px 0px; color:{color:accent}; font-style:italic } .updatetext { opacity:0;margin-top:10px; } #update:hover { height:600px; } #update:hover .updatetext { opacity:1; }
- </style>
- <!--scripts-->
- <script src="https://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
- <script>
- (function($){
- $(document).ready(function(){
- $("a[title]").style_my_tooltips({
- tip_follows_cursor:true,
- tip_delay_time:30,
- tip_fade_speed:300,
- attribute:"title"
- });
- });
- })(jQuery);
- </script>
- <link href="https://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
- <script src="https://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
- <script>
- $(document).ready(function(){
- $('.photo-slideshow').pxuPhotoset({
- lightbox: true,
- rounded: false,
- gutter: '1px',
- borderRadius: '0px',
- photoset: '.photo-slideshow',
- photoWrap: '.photo-data',
- photo: '.pxu-photo'
- });
- $('iframe.tumblr_audio_player').load( function() {
- $('iframe.tumblr_audio_player').contents().find("head")
- .append($("<style type='text/css'> .audio-player{background:#fafafa !important} </style>"));
- });
- $(window).scroll(function(){
- if ($(this).scrollTop() > 100) {
- $('.sc').fadeIn();
- } else {
- $('.sc').fadeOut();
- }
- });
- $('.click,.fade').click(function() {
- $('#pop').fadeToggle();
- });
- var $container = $('.posts');
- $container.find('.n').each(function(){
- var n = $(this).html().split(' ')[0].replace(/,/g, '');
- if (n > 999) {
- n = Math.floor(n / 100) / 10;
- $(this).text(n + 'k notes');
- }
- });
- //Click event to scroll to top
- $('.sc').click(function(){
- $('html, body').animate({scrollTop : 0},800);
- return false;
- });
- });
- </script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.1/SmoothScroll.min.js"></script>
- {block:indexpage}
- <script src="https://static.tumblr.com/wgg6svp/OoTofxa0c/unnest.min.js"></script>
- <script> $(function(){ $('.posts').unnest({
- yourCaption: ".caption,.cap",
- wrapName: ".tumblr_parent",
- newCaptionUsername: true,
- originalPostCaptionUsername: true,
- tumblrAvatars: false,
- usernameColon: false
- }); }); </script>
- {/block:indexpage}
- </head>
- <body>
- <div id="pop"> <div class="fade"></div>
- <div class="popup">
- <!--START POPUP-->
- <h8>explore</h8>
- {block:ifpopupabout}{text:popup about}{/block:ifpopupabout}
- <!--start tags-->
- <!--example tags box-->
- <div class="box">
- <b>heading</b>
- <a href="/tagged/">photography</a>
- <a href="/tagged/">fashion</a>
- <a href="/tagged/">fairytales</a>
- <a href="/tagged/">words</a>
- <a href="/tagged/">art</a>
- <a href="/tagged/">typography</a>
- <a href="/tagged/">people</a>
- <a href="/tagged/">space</a>
- <a href="/tagged/">design</a>
- <a href="/tagged/">shakespeare</a>
- <a href="/tagged/">literature</a>
- </div>
- <!--example tags box-->
- <div class="box">
- <b>heading</b>
- <a href="/tagged/">themes</a>
- <a href="/tagged/">pages</a>
- <a href="/tagged/">tutorials</a>
- <a href="/tagged/">palettes</a>
- <a href="/tagged/">resources</a>
- <a href="/tagged/">theme recs</a>
- <a href="/tagged/">page recs</a>
- <a href="/tagged/">updates tabs</a>
- <a href="/tagged/">favourites</a>
- <a href="/tagged/">anonymous</a>
- <a href="/tagged/">answered</a>
- </div>
- <!--end tags-->
- <!--'currently' section: can be edited from customise menu-->
- {block:ifwatching}<b>watching</b> {text:watching}{/block:ifwatching} {block:ifreading}<br><b>reading</b> {text:reading}{/block:ifreading} {block:iflistening}<br><b>listening</b> {text:listening}{/block:iflistening} {block:ifwaitingfor}<br><b>waiting for</b> {text:waiting for}{/block:ifwaitingfor} {block:ifcreating}<br><b>creating</b> {text:creating}{/block:ifcreating}
- <!--END POPUP-->
- </div>
- </div>
- {block:ifupdatestab}
- <div id="update">
- <h5>updates</h5> <!--main heading-->
- <div class="updatetext">
- <!--start updates-->
- <h6>subheading</h6>
- ella, 16, england. slytherclaw. on semi hiatus bc school - this blog runs on queue, 10 posts a day. i track #username, tag me in ur stuff!
- <h6>subheading</h6>
- ✦ lorem ipsum <br>
- ✦ dolor sit amet <br>
- ✦ et cetera
- <h6>subheading</h6>
- <b>bold</b>, <i>italics</i>, even a super fancy <a href="link url">link</a>. use < p > for new paragraphs and < br > for line breaks, without the spaces. this updates tab is optional.
- <!--end updates-->
- </div>
- </div>
- {/block:ifupdatestab}
- <div class="stuff">
- <header>
- {block:ifheaderimg}
- <img src="{PortraitURL-64}"/>
- {/block:ifheaderimg}
- <a class="h" href="/">{Title}</a>
- <nav>
- <a href="/ask">message</a>
- <a class="click">explore</a>
- <a href="{text:link 1 url}">{text:link 1}</a>
- <a href="{text:link 2 url}">{text:link 2}</a>
- <a href="{text:link 3 url}">{text:link 3}</a>
- </nav>
- <div class="d">{description}</div>
- </header>
- <div class="entries">
- {block:Posts}
- <div class="posts">
- {block:Text}
- <div class="q">
- {block:Title}<h1>{Title}</h1>{/block:Title}
- <div class="txt cap">{Body}</div></div>{/block:Text}
- {block:Photo}
- <div class="q">
- {LinkOpenTag}<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"><img src="{PhotoURL-HighRes}"></a></div>{LinkCloseTag}{block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
- {/block:Photo}
- {block:Photoset}<div class="q"><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>{block:Caption}<div class="caption">{Caption}</div>{/block:Caption}</div>{/block:Photoset}
- {block:Quote}
- <div class="q txt">
- <div class="quote">{Quote}</div>
- {block:Source}<div class="quotesource">{Source}</div>{/block:Source}
- </div>{/block:Quote}
- {block:Link}
- <div class="q txt">
- <h1><a href="{URL}" {Target}>{Name}</a></h1>
- {block:Description}{Description}{/block:Description}
- </div>
- {/block:Link}
- {block:Chat}
- <div class="q txt">
- {block:Title}<h1>{Title}</h1>{/block:Title} <div class="chat"> {block:Lines} <li class="line {Alt}"> {block:Label} <span class="label"> {Label}</span> {/block:Label}{Line}</li> {/block:Lines}</div>
- </div>
- {/block:Chat}
- {block:Audio}
- <div class="q txt">
- {block:AudioPlayer}
- <div class="player"> {AudioPlayerWhite}</div>
- <div class="audio_d">
- {block:TrackName}<b>{TrackName}</b>{/block:TrackName}
- {block:Artist} : {Artist} {/block:Artist}</div>
- {/block:AudioPlayer}
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- </div>
- {/block:Audio}
- {block:Video}
- <div class="q">
- <div class="video iframe">{Video-500}</div>
- <div class="caption">
- {block:Caption}{Caption}{/block:Caption}
- </div>
- </div>
- {/block:Video}
- {block:Answer}
- <div class="q txt">
- <div class="question"> <div class="asker">{asker}</div> {Question}</div><br>
- <div class="answer">
- {Answer}</div>
- </div>
- {/block:Answer}
- {block:date}
- <div class="inf">
- {block:indexpage}
- <a href="{Permalink}" class="n">{NoteCountWithLabel}.</a>
- <div class="buttons">
- <a href="{ReblogURL}" target="_blank" >reblog.</a>
- <a class="like-b" href="#">{LikeButton}<span class="b">like.</span></a>
- </div>
- {block:ifshowtags}
- {block:HasTags}
- <div class="tags">
- {block:Tags}
- <a href="{TagURL}">#{Tag}</a>
- {/block:Tags}
- </div>
- {/block:HasTags}{/block:ifshowtags} {/block:indexpage}
- {block:PermalinkPage}<a href="{Permalink}">{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}, {TimeAgo} : {NoteCountWithLabel}</a>
- {block:RebloggedFrom} <br>
- via <a href="{ReblogParentURL}">{ReblogParentName}</a>{block:ContentSource}; source <a href="{ReblogRootURL}" >{ReblogRootName}</a>
- {/block:ContentSource}
- {/block:RebloggedFrom}
- {block:HasTags}<br>
- <div class="tags">
- {block:Tags}
- <a href="{TagURL}">#{Tag}</a>
- {/block:Tags}
- </div>
- {/block:HasTags}
- {/block:PermalinkPage}
- </div>
- {/block:date}
- {block:PostNotes}
- {PostNotes}
- {/block:PostNotes}
- </div>
- {/block:Posts}
- </div>
- {block:ifloadmore}{block:indexpage}
- <footer>
- <a id="more" style="cursor:help">load more posts</a>
- </footer>
- {/block:indexpage}{/block:ifloadmore}
- {block:Pagination}
- <div id="pagination">
- {block:previouspage}
- <a href="{PreviousPage}">prev</a>{/block:PreviousPage}
- {block:JumpPagination length="4"}{block:CurrentPage}
- <span class="current_page">{PageNumber}</span>
- {/block:CurrentPage}{block:JumpPage}
- <a class="jump_page" href="{URL}">{PageNumber}</a>
- {/block:JumpPage}{/block:JumpPagination}{block:NextPage}
- <a class="next" href="{NextPage}">next</a>
- {/block:nextpage}
- </div>
- {/block:Pagination}
- </div>
- </div>
- {block:ContentSource}
- <!– {SourceURL}{block:SourceLogo}<img src=“{BlackLogoURL}”
- width=“{LogoWidth}” height=“{LogoHeight}” alt=“{SourceTitle}” />
- {/block:SourceLogo}
- {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} –>
- {/block:ContentSource}{block:ReblogParent}{/block:ReblogParent}
- <div id="cred"><a href="http://odeysseus.tumblr.com">O</a></div>
- {block:ifscrolltotop}
- <div class="sc"> <a href="#">scroll to top</a></div>
- {/block:ifscrolltotop}
- {block:indexpage}{block:ifinfinitescroll}
- <script src="https://static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
- {/block:ifinfinitescroll}{/block:indexpage}
- <script>
- $(document).ready(function(){
- var $container = $('.entries');
- {block:ifinfinitescroll}
- $container.infinitescroll({
- itemSelector: '.posts',
- navSelector: '#pagination',
- nextSelector: '.next',
- loadingImg: '',
- loadingText: '',
- doneText: 'no more posts',
- bufferPx: 2000,
- {block:ifloadmore}
- errorCallback: function () {
- jQuery ('a#more').delay(50).fadeOut();
- $('.posts').last().after($('a#more'));
- }
- {/block:ifloadmore}
- },
- function( newElements ) {
- var $newElems = $( newElements );
- $newElems.find('.photo-slideshow').pxuPhotoset({
- lightbox: true,
- rounded: false,
- gutter: '1px',
- photoset: '.photo-slideshow',
- photoWrap: '.photo-data',
- photo: '.pxu-photo'
- })
- resizeVideos();
- $newElems.unnest({
- yourCaption: ".caption,.cap",
- wrapName: ".tumblr_parent",
- newCaptionUsername: true,
- originalPostCaptionUsername: true,
- tumblrAvatars: false,
- usernameColon: false
- });
- $newElems.find('.n').each(function(){
- var n = $(this).html().split(' ')[0].replace(/,/g, '');
- if (n > 999) {
- n = Math.floor(n / 100) / 10;
- $(this).text(n + 'k notes');
- }
- });
- $newElems.find('iframe.tumblr_audio_player').load( function() {
- $('iframe.tumblr_audio_player').contents().find("head")
- .append($("<style type='text/css'> .audio-player{background:#fafafa !important} </style>"));
- });
- var $newElemsIDs = $newElems.map(function(){
- return this.id;
- }).get();
- console.log($newElems, $newElemsIDs);
- Tumblr.LikeButton.get_status_by_post_ids($newElemsIDs);
- });
- {block:ifloadmore}
- $(window).unbind('.infscr');
- $('a#more').click(function(){
- $container.infinitescroll('retrieve');return false;
- $('.posts').last().after($('a#more'));
- });
- {/block:ifloadmore}
- {/block:ifinfinitescroll}
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment