Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--Sleephy Theme #32:Hungry Ghosts
- features:
- - infinite scroll
- - 6 custom links/2 custom link headers
- - back to top button
- - clean, simple design
- - lots of description room
- - all colours/images are customizable
- - roman numeral note count on permalink pages
- Enjoy this theme, thankyou for using it :)
- 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:Post Links" content="#c0bfbf"/>
- <meta name="color:Answer Backg" content="#000000"/>
- <meta name="image:Header Background" content=""/>
- <meta name="colour:Header Background" content="#000000"/>
- <meta name="text:LinkBox1Title" content="more" />
- <meta name="text:LinkBox2Title" content="general" />
- <meta name="text:Link1" content="/tags" />
- <meta name="text:Link1Title" content="navigation" />
- <meta name="text:Link2" content="http://sleephythemes.co.vu" />
- <meta name="text:Link2Title" content="themes" />
- <meta name="text:Link3" content="/tagged/wishlist" />
- <meta name="text:Link3Title" content="wishlist" />
- <meta name="text:Link4" content="/" />
- <meta name="text:Link4Title" content="refresh" />
- <meta name="text:Link5" content="/ask" />
- <meta name="text:Link5Title" content="message" />
- <meta name="text:Link6" content="/archive" />
- <meta name="text:Link6Title" content="archive" />
- <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-image:url('{image:Header Background}');
- }
- ::-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:Post 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;
- width:775px;
- margin-left:315px;
- margin-top:7px;
- font: normal 11px 'calibri', Times, FreeSerif, serif;
- letter-spacing:0px;
- }
- #post {
- {block:IndexPage}width:250px;{/block:IndexPage}
- {block:PermalinkPage}width:500px;{/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;}
- /*SIDEBAR*/
- #headerr{
- position:absolute;
- width:100%;
- top:0px;
- left:0px;
- height:34px;
- z-index:999999999999;
- background-image:url('{image:Header Background}');
- background-color:{color:Header Background};
- }
- #sidebar {
- position:static;
- margin-top:40px;
- margin-left:320px;
- width:765px;
- height:150px;
- background:#fff;
- border-bottom:1px solid #ccc;
- }
- #sidebarimage {
- width:245px;
- position:absolute;
- text-align:center;
- margin-left:244px;
- line-height:40px;
- margin-top:25px;
- padding:20px;
- font-family:callie;
- font-size:33px;
- letter-spacing:8px;
- color:{color:Text};
- text-transform:uppercase;
- }
- #sidebarimage a{
- color:{color:Text};
- }
- .links {
- width:132px;
- font: normal 15px 'Times New Roman', Times, FreeSerif, serif;
- padding: 7px;
- letter-spacing:3px;
- color:#000;
- text-align:center;
- text-transform:lowercase;
- position:absolute;
- margin-top:35px;
- margin-left:10px;
- }
- .links a {
- padding:13px;
- color:{color:Sidebar Links};
- }
- .links a:hover {
- color:{color:Hover};
- }
- .links2 {
- width:132px;
- font: normal 15px 'Times New Roman', Times, FreeSerif, serif;
- padding: 7px;
- letter-spacing:3px;
- color:#000;
- text-align:center;
- text-transform:lowercase;
- position:absolute;
- margin-top:35px;
- margin-left:120px;
- }
- .links2 a {
- padding:13px;
- color:{color:Sidebar Links};
- }
- .links2 a:hover {
- color:{color:Hover};
- }
- .links3 {
- width:262px;
- font: normal 13px 'Times New Roman', Times, FreeSerif, serif;
- padding: 7px;
- letter-spacing:3px;
- color:#000;
- text-align:justify;
- text-transform:lowercase;
- position:absolute;
- margin-top:35px;
- margin-left:510px;
- }
- .links3 a {
- padding:13px;
- color:{color:Sidebar Links};
- }
- .links3 a:hover {
- color:{color:Hover};
- }
- .links4 {
- width:132px;
- font: normal 15px 'Times New Roman', Times, FreeSerif, serif;
- padding: 7px;
- letter-spacing:3px;
- color:#000;
- text-align:center;
- text-transform:lowercase;
- position:absolute;
- margin-top:35px;
- margin-left:620px;
- }
- .links4 a {
- padding:13px;
- color:{color:Sidebar Links};
- }
- .links4 a:hover {
- color:{color:Hover};
- }
- #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{ width: 260px;padding: 5px; top: 235px;text-align:left;font-family:calibri; border-right:1px solid #ccc;position:absolute;
- margin-left:495px; max-height:500px;overflow:auto;
- }
- #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;
- }
- {CustomCSS}
- </style> <script type="text/javascript" src="http://static.tumblr.com/xrmodho/zoUmtvm6l/jquery.js"></script>
- </head><body>
- <div id="headerr"></div>
- <div id="sidebar">
- <div id="sidebarimage">
- <a href="/">
- {Title}
- </a>
- </div>
- <div class="links">
- <i>{text:LinkBox1Title}</i><br><br>
- <a href="{text:Link1}">{text:Link1Title}</a><br>
- <a href="{text:Link2}">{text:Link2Title}</a><br>
- <a href="{text:Link3}">{text:Link3Title}</a>
- </div>
- <div class="links2">
- <i>{text:LinkBox2Title}</i><br><br>
- <a href="{text:Link4}">{text:Link4Title}</a><br>
- <a href="{text:Link5}">{text:Link5Title}</a><br>
- <a href="{text:Link6}">{text:Link6Title}</a><br>
- </div>
- <div class="links3">
- <i>{description}</i>
- </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}
- <div class="perma" ><a href="{reblogurl}"><img src="http://cdn5.iconfinder.com/data/icons/TWG_Retina_Icons/64/arrow_circle_left.png" width="10px"></a></div>{LinkOpenTag}<a href="{Permalink}"><img src="{PhotoURL-500}" width="250"></a>{LinkCloseTag}{/block:IndexPage}
- {block:PermalinkPage}<center><img src="{PhotoURL-500}" width="500">
- {block:Caption}{Caption}{/block:Caption}
- </center>
- {/block:PermalinkPage}
- {/block:Photo}
- {block:Photoset}{Photoset-250}{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>
- <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>
- <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