Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--Sleephy Theme #33:Lost Stars
- features:
- - infinite scroll or pagnation
- - 3 custom links
- - back to top button
- - clean, simple design
- - 3 different image sizes: 250px, 500px and 700px
- - option for 'fade in' links
- - all colours are customizable
- - roman numeral note count on permalink pages
- Enjoy this theme, thankyou for using it :)
- Please note, this theme is really, really simple, and that's how I intend it to be. I will not edit this theme to your liking. You many, however, edit it yourself to your own prefrences if you have the ability to do so. Thankyou for understanding!
- xo
- -->
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
- <script type="text/javascript">//** jQuery Scroll to Top Control script- (c) I made this script myself (Kyle Monk) and it is hosted on my personal site so would appreciate if you followed my blog at kylemonk.tumblr.com if you use it or for details on how to change the location.
- //** Graphic originally from tumbler dashboard, for details on how to change graphic colour, contact me at kylemonk.tumblr.com
- //** v1.1 (April 7th, 10'):
- //** 1) Adds ability to scroll to an absolute position (from top of page) or specific element on the page instead.
- //** 2) Fixes scroll animation not working in Opera.
- var scrolltotop={
- //startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control
- //scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top).
- setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
- controlHTML: '<img src="https://cdn0.iconfinder.com/data/icons/arrows-android-l-lollipop-icon-pack/24/collapse2-24.png" style="filter:alpha(opacity=70); opacity:0.6;" width="20"/>', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
- controlattrs: {offsetx:35, offsety:60}, //offset of control relative to right/ bottom of window corner
- anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links
- state: {isvisible:false, shouldvisible:false},
- scrollup:function(){
- if (!this.cssfixedsupport) //if control is positioned using JavaScript
- this.$control.css({opacity:0}) //hide control immediately after clicking it
- var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
- if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists
- dest=jQuery('#'+dest).offset().top
- else
- dest=0
- this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
- },
- keepfixed:function(){
- var $window=jQuery(window)
- var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
- var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
- this.$control.css({left:controlx+'px', top:controly+'px'})
- },
- togglecontrol:function(){
- var scrolltop=jQuery(window).scrollTop()
- if (!this.cssfixedsupport)
- this.keepfixed()
- this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
- if (this.state.shouldvisible && !this.state.isvisible){
- this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
- this.state.isvisible=true
- }
- else if (this.state.shouldvisible==false && this.state.isvisible){
- this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
- this.state.isvisible=false
- }
- },
- init:function(){
- jQuery(document).ready(function($){
- var mainobj=scrolltotop
- var iebrws=document.all
- mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
- mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
- mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
- .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
- .attr({title:'back to top'})
- .click(function(){mainobj.scrollup(); return false})
- .appendTo('body')
- if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
- mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
- mainobj.togglecontrol()
- $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
- mainobj.scrollup()
- return false
- })
- $(window).bind('scroll resize', function(e){
- mainobj.togglecontrol()
- })
- })
- }
- }
- scrolltotop.init()</script>
- <title>{Title}</title>
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
- <meta name="color:Background" content="#ffffff"/>
- <meta name="color:Text" content="#a8a8a8"/>
- <meta name="color:Sidebar Links" content="#b8b8b8"/>
- <meta name="color:Hover" content="#f2f2f2"/>
- <meta name="color:Links" content="#000"/>
- <meta name="color:Answer Backg" content="#000000"/>
- <meta name="text:Link1" content="/" />
- <meta name="text:Link1Title" content="home" />
- <meta name="text:Link2" content="/ask" />
- <meta name="text:Link2Title" content="mssg" />
- <meta name="text:Link3" content="/more" />
- <meta name="text:Link3Title" content="more" />
- <meta name="if:700px posts" content="1" />
- <meta name="if:500px posts" content="0" />
- <meta name="if:250px posts" content="0" />
- <meta name="if:Infinite Scroll" content="1" />
- <meta name="if:Fade in Links" content="0" />
- <script type="text/javascript"
- src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
- <style type="text/css">
- @font-face{font-family:Callie; src: url(http://static.tumblr.com/xrmodho/c2cn9vpkz/theanomodern-regular.ttf);}
- ::-webkit-scrollbar-thumb {
- height:auto;
- background:{color:Text};
- }
- ::-webkit-scrollbar {
- height:9px;
- width:6px;
- background-color:{color:Background};
- }
- body {
- background:{color:background};
- margin:0px;
- color:{color:text};
- font: normal 12px 'calibri', Times, FreeSerif, serif;
- line-height:100%;
- letter-spacing:0px;
- text-align:justify;
- }
- a {
- text-decoration:none;
- outline:none;
- -moz-outline-style:none;
- color:{color:links};
- }
- img {
- border:none;
- }
- blockquote {
- padding-left:5px;
- border-left:2px solid;
- }
- blockquote blockquote {
- padding-left:5px;
- border-left:2px solid;
- }
- h1 {
- font: normal 15px 'Times New Roman', Times, FreeSerif, serif;
- letter-spacing:3px;
- font-style:none;
- line-height:10px;
- text-align:left;
- padding:2px;
- }
- a:hover {
- color:#000000;
- -moz-transition-duration:0.3s;
- -webkit-transition-duration:0.3s;
- -o-transition-duration:0.3s;
- }
- /*ENTRIES*/
- #entries {
- padding:0px;
- {block:if700pxposts}width:700px;{/block:if700pxposts} {block:if500pxposts}width:500px;{/block:if500pxposts} {block:if250pxposts}width:250px;{/block:if250pxposts}
- margin-left:5px;
- margin-top:7px;
- font: normal 11px 'calibri', Times, FreeSerif, serif;
- letter-spacing:0px;
- }
- #post {
- {block:IndexPage}{block:if700pxposts}width:700px;{/block:if700pxposts} {block:if500pxposts}width:500px;{/block:if500pxposts} {block:if250pxposts}width:250px;{/block:if250pxposts}{/block:IndexPage}
- {block:PermalinkPage}{block:if700pxposts}width:700px;{/block:if700pxposts} {block:if500pxposts}width:500px;{/block:if500pxposts} {block:if250pxposts}width:250px;{/block:if250pxposts}{/block:PermalinkPage}
- padding:4px;
- }
- .perma
- {
- opacity: 0.0;
- filter: alpha(opacity = 0);
- letter-spacing:2px;
- width: auto;
- background-color:{color:background};
- line-height:12px;
- text-transform:uppercase;
- font-family:calibri;
- padding:4px;
- margin-left:232px;
- margin-top:0px;
- font-size: 8px;
- position:absolute;
- text-align: center;
- display:block;
- color: {color:perma text};
- -webkit-transition: opacity 0.4s linear;
- -moz-transition: all 0.4s linear;
- transition: all 0.4s linear;
- }
- #post:hover .perma {
- -webkit-transition: opacity 0.4s linear;
- opacity: .95;
- -moz-transition: all 0.4s linear;
- transition: all 0.4s linear;
- filter: alpha(opacity = 100);
- }
- iframe#tumblr_controls { white-space:nowrap; -webkit-filter: invert(100%); -moz-filter: invert(100%); -o-filter: invert(100%); -ms-filter: invert(100%); filter: invert(100%); opacity:.5;}
- #audio {
- margin-bottom:5px;
- width:250px;
- height:105px;
- }
- .albumart {
- width:100px;
- height:100px;
- position:absolute;
- }
- .albumart img {
- width:100px;
- height:100px;
- float:left;
- }
- .playercontainer {
- opacity: .2;
- display:block;
- width:100px;
- height:100px;
- background:#fff;
- position:absolute;
- -webkit-transition:all 0.5s ease-in-out;
- -moz-transition:all 0.5s ease-in-out;
- -o-transition:all 0.5s ease-in-out;
- -ms-transition: all 0.5s ease-in-out;
- transition:all 0.5s ease-in-out;
- }
- .playercontainer:hover {
- opacity:.7;
- position:absolute;
- -webkit-transition:all 0.5s ease-in-out;
- -moz-transition:all 0.5s ease-in-out;
- -o-transition:all 0.5s ease-in-out;
- -ms-transition: all 0.5s ease-in-out;
- transition:all 0.5s ease-in-out;
- }
- .player {
- margin-left:36px;
- margin-top:36px;
- width:25px;
- height:25px;
- overflow:hidden;
- position:absolute;
- background:#fff;
- }
- .audioinfo {
- margin-left:110px;
- float:left;
- color:{color:Permalink Color 2};
- font-family:calibri;
- letter-spacing:1px;
- font-size:8px;
- text-transform:uppercase;
- width:136px;
- padding:2px;
- margin-top:3px;
- }
- .audioinfo b {
- font-family:calibri;
- letter-spacing:1px;
- font-size:8px;
- text-transform:uppercase;
- color:{color:Permalink Color 1};
- background:{color:Permalink Color 2};
- padding:3px 4px 3px 4px;
- font-weight:normal;
- margin-right:5px;
- }
- /*QUESTION*/
- #asker {
- color:#fcfcfc;
- padding:14px;
- font-family:arial;
- font-size:11px;
- letter-spacing:0px;
- text-align:left;
- margin-top:0px;
- text-transform:lowercase;
- line-height:100%;
- background-color:{color:Answer Backg}
- }
- #postnotes{ {block:if700pxposts}width:700px;padding: 25px; top:25px;{/block:if700pxposts} {block:if500pxposts}width:500px;padding: 25px; top:25px;{/block:if500pxposts} {block:if250pxposts}width:250px;padding: 10px; top:10px;{/block:if250pxposts}text-align:left;font-family:calibri; border-right:0px solid #ccc;
- }
- #postnotes li{
- list-style-type: lower-roman;
- padding:5px;
- }
- #postnotes img {
- display:none;
- }
- #swag{
- text-align:right;
- padding:5px;
- color:gray;
- font-family:Times New Roman;
- font-size:10px;
- }
- #swag a{
- color:gray;
- font-size:11px;
- font-family:calibri;
- text-transform:lowercase;
- color:black;
- }
- #sidebar{
- position:fixed;
- width:175px;
- overflow:hidden;
- text-transform:lowercase;
- text-decoration:italic;
- background:none;
- bottom:25px;
- text-align:center;
- font-family:cambria;
- font-size:19px;
- letter-spacing:4px;
- {block:if700pxposts}left:720px;padding: 15px;{/block:if700pxposts} {block:if500pxposts}left:520px;padding: 15px;{/block:if500pxposts} {block:if250pxposts}left:260px;padding: 10px;{/block:if250pxposts}
- {block:iffadeinlinks}
- -webkit-transition:all 0.5s ease-in-out;
- -moz-transition:all 0.5s ease-in-out;
- -o-transition:all 0.5s ease-in-out;
- -ms-transition: all 0.5s ease-in-out;
- transition:all 0.5s ease-in-out;
- {/block:iffadeinlinks}
- }
- #links{
- font-family:calibri;
- font-size:9px;
- text-transform:uppercase;
- letter-spacing:1px;
- padding:3px;
- {block:iffadeinlinks}
- opacity:0;
- margin-top:-10px;
- -webkit-transition:all 0.5s ease-in-out;
- -moz-transition:all 0.5s ease-in-out;
- -o-transition:all 0.5s ease-in-out;
- -ms-transition: all 0.5s ease-in-out;
- transition:all 0.5s ease-in-out;
- {/block:iffadeinlinks}
- {block:ifnotfadeinlinks}
- opacity:1;
- margin-top:2px;
- {/block:ifnotfadeinlinks}
- }
- {block:iffadeinlinks}
- #sidebar:hover #links{
- opacity:1;
- margin-top:2px;
- -webkit-transition:all 0.5s ease-in-out;
- -moz-transition:all 0.5s ease-in-out;
- -o-transition:all 0.5s ease-in-out;
- -ms-transition: all 0.5s ease-in-out;
- transition:all 0.5s ease-in-out;
- }
- #sidebar:hover{
- bottom:32px;
- -webkit-transition:all 0.5s ease-in-out;
- -moz-transition:all 0.5s ease-in-out;
- -o-transition:all 0.5s ease-in-out;
- -ms-transition: all 0.5s ease-in-out;
- transition:all 0.5s ease-in-out;
- }
- {/block:iffadeinlinks}
- {CustomCSS}
- </style> <script type="text/javascript" src="http://static.tumblr.com/xrmodho/zoUmtvm6l/jquery.js"></script>
- </head><body>
- <div id="sidebar">
- <i>{title}</i>
- <div id="links">
- <a href="{text:link1}">{text:link1title}</a>
- <a href="{text:link2}">{text:link2title}</a>
- <a href="{text:link3}">{text:link3title}</a>
- <br>
- {block:IfNotInfiniteScroll}
- {block:Pagination}
- {block:PreviousPage}
- <a href="{PreviousPage}">←</a>
- {/block:PreviousPage}
- {block:NextPage}
- <a href="{NextPage}">→</a>
- {/block:NextPage}
- {/block:Pagination}
- {/block:IfNotInfiniteScroll}
- </div>
- </div>
- <div id="entries">
- {block:Posts}
- <div id="post">
- {block:Text}
- <h1><i>{block:Title}{Title}{/block:Title}</i></h1>
- {Body}{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Text}
- {block:Photo}{block:IndexPage}
- {LinkOpenTag}<a href="{Permalink}"><img src="{PhotoURL-HighRes}" {block:if700pxposts}width="700"{/block:if700pxposts} {block:if500pxposts}width="500"{/block:if500pxposts} {block:if250pxposts}width="250"{/block:if250pxposts}></a>{LinkCloseTag}{/block:IndexPage}
- {block:PermalinkPage}<center><img src="{PhotoURL-HighRes}" {block:if700pxposts}width="700"{/block:if700pxposts} {block:if500pxposts}width="500"{/block:if500pxposts} {block:if250pxposts}width="250"{/block:if250pxposts}>
- {block:Caption}{Caption}{/block:Caption}
- </center>
- {/block:PermalinkPage}
- {/block:Photo}
- {block:Photoset}{Photoset-700}{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Photoset}
- {block:Quote}<h1><big><i>"{Quote}"</big></i></h1>
- {block:Source}<div class="qsource">{Source}</div>{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}
- {/block:Source}{/block:Quote}
- {block:Link}<h1><i><a href="{URL}" {Target}>{Name}</a></i></h1>{block:Description}{Description}{/block:Description}{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Link}
- {block:Chat}{block:Title}{Title}{/block:Title}{block:Lines}{block:Label}<b>{Label}</b>{/block:Label} {Line}<br>{/block:Lines}{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Chat}
- {block:Audio}
- <div id="audio">
- <div class="albumart"><img src="http://static.tumblr.com/4wyqgof/Dyvm2qmp1/default.jpg" width="100px" height="100px"></div>{block:AlbumArt}<div class="albumart"><img src="{AlbumArtURL}" width="100px" height="100px"></div>{/block:AlbumArt}<div class="playercontainer"><div class="player">{AudioPlayerwhite}</div></div>
- {block:TrackName}<div class="audioinfo"><b>Title</b> {TrackName}</div><br>{/block:TrackName}
- {block:Artist}<div class="audioinfo"><b>Artist</b> {Artist}</div><br>{/block:Artist}
- {block:Album}<div class="audioinfo"><b>Album</b> {Album}</div>{/block:Album}
- {block:PlayCount}<div class="audioinfo"><b>Played</b> {FormattedPlayCount} times</div> {/block:PlayCount}
- </div>{block:Caption}{Caption}{/block:Caption}
- {block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Audio}
- {block:Video}{Video-250}{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Video}
- {block:Answer}<div id="asker">{Question} —<span style="text-align:lowercase; color:#fcfcfc;font-style:italic; "><b><i>{Asker}</i></b><br></span> </div><left><div style="padding:4px;margin-top:3px;font-size:11px;"><font face="arial">{Answer}</font></div>{block:IndexPage}<div id="swag"><a href="{Permalink}">x</a></div>{/block:IndexPage}{/block:Answer}
- </div>
- {/block:Posts}
- <br><br>{block:PostNotes}<div id="postnotes"><left>{PostNotes}</div>{/block:PostNotes}
- {/block:Posts}</div></div></div>
- <br><br><br><br>
- </div>
- <script>
- window.onload = function () {
- document.body.insertAdjacentHTML( 'beforeEnd', '<iframe id="my-like-frame" style="display:none;"></iframe>' );
- document.addEventListener( 'click', function ( event ) {
- var myLikeLink = event.target;
- if( myLikeLink.className.indexOf( 'my-like' ) > -1 ) {
- var myLikeFrame = document.getElementById( 'my-like-frame' ),
- liked = ( myLikeLink.className == 'my-liked' ),
- command = liked ? 'unlike' : 'like',
- reblog = myLikeLink.getAttribute( 'data-reblog' ),
- postId = myLikeLink.getAttribute( 'data-id' ),
- oauth = reblog.slice( -8 ),
- likeUrl = 'http://tumblr.com/' + command + '/' + oauth + '?id=' + postId;
- myLikeFrame.src = likeUrl;
- liked ? myLikeLink.className = 'my-like'
- : myLikeLink.className = 'my-liked';
- };
- }, false );
- };
- </script>
- {block:indexpage}
- {block:NextPage}<div id="nav"><a href="{NextPage}"></a></div>{/block:NextPage}
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
- <script type="text/javascript" src="http://static.tumblr.com/iddq6cw/ldLmtikn2/mdrns.js"></script>
- {block:IfInfiniteScroll}
- <script type="text/javascript">
- $(window).load(function () {
- var $content = $('#entries');
- $content.masonry({itemSelector: '#post'}),
- $content.infinitescroll({
- navSelector : '#nav',
- nextSelector : '#nav a',
- itemSelector : '#post',
- loading: {
- finishedMsg: '',
- },
- bufferPx : 600,
- debug : false,
- },
- // call masonry as a callback.
- function( newElements ) {
- var $newElems = $( newElements );
- $newElems.hide();
- // ensure that images load before adding to masonry layout
- $newElems.imagesLoaded(function(){
- $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(300);} );
- });
- });
- });
- </script>
- {/block:IfInfiniteScroll}
- <script type="text/javascript">
- $(window).load(function(){
- $("p").remove(":contains('(Source:')");
- $("p").remove(":contains('(source:')");
- $("p").remove(":contains('(via ')");
- });
- </script>
- {/block:indexpage}
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement