Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <!--
- #07 RUNAWAY by Neo
- Find me on tumblr: @NEOTHM | @NEOVAK
- If you need help/spotted a glitch, feel free to message me!
- Thank you for taking an interest in this code. Enjoy. ♡
- -->
- <head>
- <meta charset="utf-8">
- <title>{block:PostTitle}{PostTitle} | {/block:PostTitle}{Title}</title>
- {block:Description}<meta name="description" content="{MetaDescription}">{/block:Description}
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="altertnate" type="application/rss+xml" href="{RSS}">
- <link href='//fonts.googleapis.com/css?family=Lato:300,400,700|Montserrat:400,700|Inconsolata:400,700|Quattrocento+Sans:400,700' rel='stylesheet' type='text/css'>
- <link rel="stylesheet" href="http://static.tumblr.com/wgg6svp/jSmnqcghc/normalizer.css">
- <meta name="image:Header" content="">
- <meta name="image:BlogLoaderGif" content="http://static.tumblr.com/wgg6svp/wRGns2bpr/loading.gif">
- <meta name="text:HeaderHeight" content="100%">
- <meta name="text:TagToEnhance" content="fullsize">
- <meta name="if:EnhancedTag" content="0">
- <meta name="color:HeaderFontColor" content="#000">
- <meta name="color:Links" content="#aaa">
- <meta name="color:LinksHover" content="#000">
- <meta name="color:Text" content="#000">
- <meta name="text:DescriptionWidth" content="50%">
- <meta name="if:BlogLoader" content="1">
- <meta name="if:HeaderOverlay" content="1">
- <meta name="if:HeaderArrowDown" content="1">
- <meta name="if:UnderlineLinks" content="1">
- <meta name="if:HideCaptions" content="1">
- <meta name="if:RoundedPosts" content="1">
- <meta name="if:SectionHoverEffect" content="1">
- <meta name="if:FadedImages" content="0">
- <meta name="if:GrayscaleImages" content="0">
- <meta name="select:HeaderOverlayOpacity" content=".3">
- <meta name="select:HeaderOverlayOpacity" content=".7">
- <meta name="color:HeaderOverlay" content="#fff">
- <meta name="select:Font" content="'Inconsolata'" title="Inconsolata">
- <meta name="select:Font" content="'Lato'" title="Lato">
- <meta name="select:Font" content="'Montserrat'" title="Montserrat">
- <meta name="select:Font" content="'Quattrocento Sans'" title="Quattrocento Sans">
- <meta name="select:FontSize" content="9px">
- <meta name="select:FontSize" content="10px">
- <meta name="select:FontSize" content="11px">
- <meta name="select:FontSize" content="12px">
- <meta name="select:FontSize" content="13px">
- <meta name="select:FontSize" content="14px">
- <meta name="select:FontSize" content="15px">
- <meta name="select:NextPage" content="lmorbtn" title="Load more button">
- <meta name="select:NextPage" content="pagination" title="Pagination">
- <meta name="select:NextPage" content="ifntscroll" title="Infinite Scroll">
- <meta name="if:Link1" content="1">
- <meta name="if:Link2" content="0">
- <meta name="if:Link3" content="0">
- <meta name="if:Link4" content="0">
- <meta name="if:Link5" content="0">
- <meta name="if:Link6" content="0">
- <meta name="text:Link1Name" content="">
- <meta name="text:Link1URL" content="http://">
- <meta name="text:Link2Name" content="">
- <meta name="text:Link2URL" content="http://">
- <meta name="text:Link3Name" content="">
- <meta name="text:Link3URL" content="http://">
- <meta name="text:Link4Name" content="">
- <meta name="text:Link4URL" content="http://">
- <meta name="text:Link5Name" content="">
- <meta name="text:Link5URL" content="http://">
- <meta name="text:Link6Name" content="">
- <meta name="text:Link6URL" content="http://">
- <style type="text/css">
- *{
- margin:0;
- padding:0;
- }
- ::selection{
- background-color:#000;
- color:#fff;
- }
- ::-moz-selection{
- background-color:#000;
- color:#fff;
- }
- ::-webkit-scrollbar{
- width:11px;
- height:11px;
- background-color:#f2f2f2;
- }
- ::-webkit-scrollbar-track{
- border:5px solid #f2f2f2;
- background-color: #f2f2f2;
- }
- ::-webkit-scrollbar-thumb{
- border:5px solid #f2f2f2;
- background-color: #aaa;
- }
- .tmblr-iframe.iframe-controls--desktop{
- filter:invert(100%);
- -webkit-filter:invert(100%);
- -moz-filter:invert(100%);
- -ms-filter:invert(100%);
- -o-filter:invert(100%);
- transform:scale(.8 .8);
- -webkit-transform:scale(.8 .8);
- -moz-transform:scale(.8 .8);
- top:10px;
- position:fixed;
- opacity:.3;
- transition-duration:.3s;
- -webkit-transition-duration:.3s;
- -moz-transition-duration:.3s;
- -ms-transition-duration:.3s;
- -o-transition-duration:.3s;
- z-index:999999999999999999!important;
- }
- .tmblr-iframe.iframe-controls--desktop:hover{
- opacity:.7;
- transition-duration:.3s;
- -webkit-transition-duration:.3s;
- -moz-transition-duration:.3s;
- -ms-transition-duration:.3s;
- -o-transition-duration:.3s;
- }
- #infscr-loading, a#nxt, footer.ifntscroll,
- footer.pagination #loadmore,
- footer.lmorbtn #pagination,
- .lightbox-caption{block:IfHideCaptions}{block:IndexPage},
- .hde{/block:IndexPage}{/block:IfHideCaptions}{
- display:none!important;
- }
- .tmblr-lightbox img {
- box-shadow: none!important;
- border-radius:{block:IfRoundedPosts}2{/block:IfRoundedPosts}0px!important;
- }
- .vignette{
- background:transparent!important;
- }
- .tmblr-lightbox {
- background-color: rgba(255,255,255,.5)!important;
- }
- #s-m-t-tooltip{
- line-height:100%;
- font-size:8px;
- text-transform:uppercase;
- text-align:center;
- letter-spacing:1px;
- max-width:100px;
- z-index:9999!important;
- padding:5px;
- margin:15px;
- background:#fff;
- border:1px solid #f2f2f2;
- color:#000;
- }
- a{
- color:{color:Links};
- text-decoration:none;
- transition-duration:.3s;
- -webkit-transition-duration:.3s;
- -moz-transition-duration:.3s;
- -ms-transition-duration:.3s;
- -o-transition-duration:.3s;
- }
- {block:ifUnderlineLinks}
- .caption a, h2 a{
- padding-bottom:1.5px;
- border-bottom:1px solid {color:Links};
- }
- .caption a:hover, h2 a:hover{
- border-bottom-color:transparent;
- }
- {/block:ifUnderlineLinks}
- a:hover{
- color:{color:LinksHover};
- cursor:crosshair!important;
- transition-duration:.3s;
- -webkit-transition-duration:.3s;
- -moz-transition-duration:.3s;
- -ms-transition-duration:.3s;
- -o-transition-duration:.3s;
- }
- html, body{
- text-align:justify;
- height:100%;
- font:lighter {select:FontSize}/180% {select:Font}, sans-serif;
- color:{color:Text};
- background-color:#f2f2f2;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- header{
- width:100%;
- height:{text:HeaderHeight};
- background:#fff url('{image:Header}') center;
- background-size:cover;
- overflow:hidden;
- position:relative;
- text-align:center;
- }
- header:before{block:ifBlogLoader}, #loader:before{/block:ifBlogLoader}{
- content: "";
- display: inline-block;
- height: 100%;
- width: 1%;
- vertical-align: middle;
- }
- {block:IfHeaderOverlay}
- header:after{
- position:absolute;
- top:0;
- left:0;
- width:100%;
- height:100%;
- display:block;
- content:"";
- background-color:{color:HeaderOverlay};
- opacity:{select:HeaderOverlayOpacity};
- z-index:0;
- }
- {/block:IfHeaderOverlay}
- #description{
- z-index:1;
- position:relative;
- display: inline-block;
- vertical-align: middle;
- text-transform:uppercase;
- font-size:12px;
- text-align:center;
- line-height:130%;
- width:{text:DescriptionWidth};
- color:{color:HeaderFontColor};
- }
- header h1{
- display:inline-block;
- text-transform:lowercase;
- font:italic bold 70px/80% 'Georgia', serif;
- display:block;
- margin-bottom:20px;
- }
- {block:ifHeaderArrowDown}
- a.toposts{
- z-index:2;
- position:absolute;
- font-size:30px;
- line-height:80px;
- bottom:0;
- left:0;
- right:0;
- text-align:center;
- color:{color:HeaderFontColor};
- }
- {/block:ifHeaderArrowDown}
- nav{
- background-color:#fff;
- line-height:50px;
- text-transform:uppercase;
- letter-spacing:2px;
- text-align:center;
- font-size:9px;
- border-bottom:1px solid #eee;
- }
- .fixed{
- position:fixed;
- top:0;
- left:0;
- width:100%;
- z-index:999;
- }
- nav a{
- display:inline-block;
- margin:0 10px;
- }
- section{
- width:720px;
- overflow:hidden;
- margin:10px auto;
- position:relative;
- padding:50px 0px 50px 190px;
- {block:DayPage}padding-left:0px;width:1080px;{/block:DayPage}
- {block:TagPage}padding-left:0px;width:1080px;{/block:TagPage}
- }
- section:after{
- width:300px;
- content:"";
- display:block;
- position:absolute;
- right:0;
- left:0;
- bottom:0;
- margin:auto;
- height:1px;
- background-color:#fff;
- }
- main{
- overflow-x:hidden;
- }
- article{
- /*outer-width: 300px;*/
- /* +margins: 360px*/
- width:238px;
- padding:20px;
- border:1px solid #eee;
- background-color:#fff;
- float:left;
- overflow:hidden;
- margin:30px;
- position:relative;
- {block:IfRoundedPosts}
- border-radius:20px;
- {/block:IfRoundedPosts}
- box-shadow:0px 0px 10px rgba(100,100,100,0);
- transition:box-shadow .2s;
- }
- article:hover{
- box-shadow:0px 0px 10px rgba(100,100,100,.1);
- transition:box-shadow .2s;
- }
- {block:PermalinkPage}
- main{
- width:542px;
- margin:auto;
- }
- article{
- width:500px;
- margin:100px 0;
- float:none;
- box-shadow:none;
- }
- article, article img, article iframe, article embed, article video{
- border-radius:0px;
- }
- {/block:PermalinkPage}
- article img{
- height:auto;
- }
- {block:IfEnhancedTag}
- article.{text:TagToEnhance}{
- {block:IndexPage}
- width:598px;
- float:none!important;
- {/block:IndexPage}
- {block:DayPage}
- margin:30px auto;
- {/block:DayPage}
- {block:TagPage}
- margin:30px auto;
- {/block:TagPage}
- }
- {/block:IfEnhancedTag}
- .permadate{
- position:absolute;
- left:0;
- top:0;
- bottom:0;
- margin:auto 0;
- width:70px;
- height:70px;
- text-align:center;
- font-size:20px;
- padding:10px 20px 30px;
- transition-duration:.3s;
- transition-delay:.2s;
- border:3px solid transparent;
- border-radius:50%;
- }
- .permadate a{
- color:#ccc;
- }
- .permadate b{
- margin:0 auto 10px;
- display:table;
- padding-bottom:10px;
- border-bottom:2px solid #fff;
- font:italic bold 40px/100% Georgia, serif;
- }
- .permadate span{
- letter-spacing:-2px;
- }
- {block:ifSectionHoverEffect}
- .permadate:hover{
- transition-delay:0s;
- cursor:help;
- border-color:#fff;
- transition-duration:.3s;
- }
- .permadate:before,
- .permadate:after{
- width:3px;
- height:0px;
- content:"";
- display:block;
- position:absolute;
- left:0;
- right:0;
- background-color:#fff;
- margin:auto;
- transition-duration:.3s;
- transition-delay:0s;
- bottom:110px;
- opacity:0;
- }
- .permadate:after{
- bottom:auto;
- top:110px;
- }
- .permadate:hover:before,
- .permadate:hover:after{
- opacity:1;
- transition-delay:.2s;
- transition-duration:.3s;
- height:150%;
- }
- {/block:ifSectionHoverEffect}
- article:hover .upper_perma{
- opacity:1;
- transition-duration:.4s;
- }
- .upper_perma a{
- color:#000;
- display:block;
- }
- /*516X287*/
- .upper_perma img{
- margin-top:25px;
- display:inline;
- width:60px;
- transform:scale(.8,.8);
- transition-duration:.4s;
- }
- article:hover .upper_perma img{
- transform:scale(1,1);
- transition-duration:.4s;
- }
- .upper_perma{
- z-index:9;
- background-color:rgba(255,255,255,.3);
- width:80px;
- height:80px;
- text-align:center;
- border-radius:50px;
- position:absolute;
- top:0;
- left:0;
- right:0;
- bottom:0;
- margin:auto;
- border:10px solid rgba(255,255,255,.3);
- opacity:0;
- transition-duration:.4s;
- }
- .under_perma{
- font-size:11px;
- margin:10px 0;
- line-height:130%;
- }
- .fu-tumblr *{
- display:block;
- min-width:100%;
- {block:IfEnhancedTag}
- }
- article:not(.{text:TagToEnhance}) .fu-tumblr *{
- {/block:IfEnhancedTag}
- height:calc(100% - 75px);
- }
- article iframe{
- display:block;
- }
- {block:IfRoundedPosts}
- article img, article iframe, article embed, article video{
- border-radius:10px;
- }
- {/block:IfRoundedPosts}
- {block:IndexPage}
- article img, iframe.photoset{
- {block:IfFadedImages}opacity:.7;{/block:IfFadedImages}
- {block:IfGrayscaleImages}
- -webkit-filter: grayscale(100%);
- -moz-filter: grayscale(100%);
- -o-filter: grayscale(100%);
- -ms-filter: grayscale(100%);
- filter: grayscale(100%);
- {/block:IfGrayscaleImages}
- transition-duration:.3s;
- -webkit-transition-duration:.3s;
- -moz-transition-duration:.3s;
- -ms-transition-duration:.3s;
- -o-transition-duration:.3s;
- }
- article:hover img, article:hover iframe.photoset{
- {block:IfFadedImages}opacity:1;{/block:IfFadedImages}
- {block:IfGrayscaleImages}
- -webkit-filter: grayscale(0%);
- -moz-filter: grayscale(0%);
- -o-filter: grayscale(0%);
- -ms-filter: grayscale(0%);
- filter: grayscale(0%);
- {/block:IfGrayscaleImages}
- transition-duration:.3s;
- -webkit-transition-duration:.3s;
- -moz-transition-duration:.3s;
- -ms-transition-duration:.3s;
- -o-transition-duration:.3s;
- }
- {/block:IndexPage}
- h2{
- text-align:center;
- font-size:9px;
- text-transform:uppercase;
- letter-spacing:1.5px;
- }
- article *{
- max-width:100%;
- }
- .caption p, article ul, article ol, article pre, article blockquote{
- margin:10px 0;
- }
- article pre{
- white-space:normal;
- }
- article ul, article ol, article li{
- padding-left:30px;
- }
- article blockquote{
- padding-left:20px;
- border-left:1px solid #eee;
- }
- .caption{
- word-break:break-word;
- padding:15px;
- }
- ul.chat{
- padding:0;
- }
- .chat li{
- list-style-type:none;
- padding:10px 0;
- }
- .chat b{
- font-size:10px;
- text-transform:uppercase;
- letter-spacing:1px;
- }
- .instg{
- text-align:right;
- }
- .instg span{
- text-align:left;
- display:block;
- padding:10px;
- background-color:#eee;
- border-radius:10px;
- }
- .instg b:before{
- content:"";
- display:block;
- position:absolute;
- top:-7px;
- left:0;
- width:0;
- height:0;
- border-left:17px solid transparent;
- border-right:2px solid transparent;
- border-top:13px solid #eee;
- }
- .instg b{
- display:inline;
- position:relative;
- text-transform:uppercase;
- letter-spacing:1px;
- font-size:9px;
- padding:0 10px 0 25px;
- }
- .player{
- display:inline-block;
- width:40px;
- height:40px;
- padding:10px 14px 10px 0;
- margin-right:15px;
- vertical-align:middle;
- border-right:1px solid #f2f2f2;
- position:relative;
- }
- .musq p{
- vertical-align:middle;
- display:inline-block;
- width:calc(100% - 80px);
- }
- .musq p{
- text-align:center;
- }
- .audio_player{
- opacity:1;
- top:10px;
- left:0px;
- position:absolute;
- display:block;
- width:40px!important;
- height:40px!important;
- overflow:hidden;
- background-color:#fff;
- }
- iframe.tumblr_audio_player{
- position:absolute;
- width:40px;
- height:40px;
- top:0;
- left:0;
- right:0;
- bottom:0;
- margin:auto;
- background-color:transparent!important;
- }
- #notes *{
- margin:0;
- padding:0;
- }
- #notes{
- clear:both;
- margin-top:30px;
- padding-bottom:50px;
- text-align:center;
- }
- #notes li{
- padding:0;
- margin:0;
- list-style-type:none;
- display:inline-block;
- width:25px;
- height:25px;
- margin:7px;
- overflow:hidden;
- border-radius:25px;
- }
- #notes img{
- width:25px;
- height:25px;
- }
- li.more_notes_link_container{
- background:url('http://cdn.flaticon.com/png/256/59565.png') no-repeat;
- background-size:25px;
- background-position:center;
- opacity:.5;
- }
- a.more_notes_link{
- opacity:0;
- }
- footer{
- width:100%;
- margin-top:50px;
- padding-bottom:100px;
- background-color:#fff;
- text-align:center;
- }
- footer a, #pagination span{
- margin:-4px 15px 0;
- display:inline-block;
- color:#ccc;
- font:italic bold 17px/210% Georgia, serif;
- }
- #loadmore{
- margin-top:0;
- }
- footer a{
- border-top:1px solid #ccc;
- }
- footer a:hover{
- border-top-color:transparent;
- }
- #pagination span{
- font-size:20px;
- color:#aaa;
- }
- {block:IfBlogLoader}
- #loader{
- position:fixed;
- top:0;
- left:0;
- width:100%;
- height:100%;
- background-color:#fff;
- z-index:9;
- text-align:center;
- }
- #loader img{
- max-width:70px;
- position:relative;
- display: inline-block;
- vertical-align: middle;
- }
- {/block:IfBlogLoader}
- </style>
- </head>
- <body>
- {block:IndexPage}
- {block:IfBlogLoader}
- <div id="loader">
- <img src="{image:BlogLoaderGif}">
- </div>
- {/block:IfBlogLoader}
- <header>
- <div id="description">
- <h1>{Title}</h1>
- {block:Description}{Description}{/block:Description}
- </div>
- {block:ifHeaderArrowDown}
- <a class="toposts">▿</a>
- {/block:ifHeaderArrowDown}
- </header>
- {/block:IndexPage}
- <nav{block:PermalinkPage} class="fixed"{/block:PermalinkPage}>
- <a href="/">index</a>
- / <a href="/ask">message</a>
- {block:IfLink1} / <a href="{text:Link1URL}">{text:Link1Name}</a>{/block:IfLink1}
- {block:IfLink2} / <a href="{text:Link2URL}">{text:Link2Name}</a>{/block:IfLink2}
- {block:IfLink3} / <a href="{text:Link3URL}">{text:Link3Name}</a>{/block:IfLink3}
- {block:IfLink4} / <a href="{text:Link4URL}">{text:Link4Name}</a>{/block:IfLink4}
- {block:IfLink5} / <a href="{text:Link5URL}">{text:Link5Name}</a>{/block:IfLink5}
- {block:IfLink6} / <a href="{text:Link6URL}">{text:Link6Name}</a>{/block:IfLink6}
- </nav>
- <main>
- {block:Posts}
- {block:ContentSource}<!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />{/block:SourceLogo}{block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->{/block:ContentSource}<!-- {block:NoRebloggedFrom}{block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}{/block:NoRebloggedFrom} -->
- <article class="{block:Date}{ShortYear}{MonthNumberWithZero}{DayOfMonthWithZero}{/block:Date} {block:IfEnhancedTag}{TagsAsClasses}{/block:IfEnhancedTag}">
- {block:IndexPage}
- <div class="upper_perma">
- <a href="{Permalink}"><img src="http://static.tumblr.com/wgg6svp/qWKns3dkx/eye.png"></a>
- </div>
- {/block:IndexPage}
- {block:Text}
- {block:Title}<h2>{Title}</h2>{/block:Title}
- <div class="caption">
- {Body}
- </div>
- {/block:Text}
- {block:Link}
- <h2><a href="{URL}">{Name} »</a></h2>
- {block:Description}
- <div class="caption hde">
- {Description}
- </div>
- {/block:Description}
- {/block:Link}
- {block:Quote}
- <h2>{Quote}</h2>
- {block:Source}
- <div class="caption">
- <i>— {Source}</i>
- </div>
- {/block:Source}
- {/block:Quote}
- {block:Chat}
- {block:Title}
- <h2><a href="{Permalink}">{Title}</a></h2>
- {/block:Title}
- <ul class="chat">
- {block:Lines}
- <li>
- {block:Label}
- <b>{Label}</b>
- {/block:Label}
- {Line}
- </li>
- {/block:Lines}
- </ul>
- {/block:Chat}
- {block:Photo}
- {LinkOpenTag}
- <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" style="min-width:100%;">
- {LinkCloseTag}
- {block:Caption}
- <div class="caption hde">
- {Caption}
- </div>
- {/block:Caption}
- {/block:Photo}
- {block:Photoset}
- {Photoset}
- {block:Caption}
- <div class="caption hde">
- {Caption}
- </div>
- {/block:Caption}
- {/block:Photoset}
- {block:Video}
- <div class="fu-tumblr">{Video-500}</div>
- {block:Caption}
- <div class="caption hde">
- {Caption}
- </div>
- {/block:Caption}
- {/block:Video}
- {block:Audio}
- <div class="musq">
- <div class="player">
- {block:AudioPlayer} {AudioPlayer} {/block:AudioPlayer}
- </div>
- <p>
- {block:Artist}
- <b>{Artist}</b> <br>
- {/block:Artist}
- {block:TrackName}
- {TrackName}
- {/block:TrackName}
- </p>
- </div>
- {block:Caption}
- <div class="caption hde">{Caption}</div>
- {/block:Caption}
- {/block:Audio}
- {block:Answer}
- <div class="instg">
- <span>
- {Question}
- </span>
- <b>{Asker}</b>
- </div>
- <div class="caption">{Answer}</div>
- {/block:Answer}
- {block:PermalinkPage}
- {block:Date}
- <div class="under_perma">
- <b>Reblogged:</b> {TimeAgo}
- {block:RebloggedFrom}
- <br><b>Via:</b> <a href="{ReblogParentURL}" title="{ReblogParentTitle}">{ReblogParentName}</a>
- <br><b>Source:</b> <a href="{ReblogRootURL}" title="{ReblogRootTitle}">©{ReblogRootName}</a>
- {/block:RebloggedFrom}
- {block:NoteCount}
- <br><b>With:</b> {NoteCountWithLabel}
- {/block:NoteCount}
- {block:HasTags}
- <br><b>Filed Under:</b> {block:Tags}#<a href="{TagURL}">{Tag}</a> {/block:Tags}
- {/block:HasTags}
- </div>
- {/block:Date}
- {/block:PermalinkPage}
- {block:PostNotes}
- <div id="notes">
- {PostNotes-64}
- </div>
- {/block:PostNotes}
- </article>
- {/block:Posts}
- </main>
- {block:Pagination}
- <footer class="{select:NextPage}">
- <a id="loadmore">Load more posts</a>
- <span id="pagination">
- {block:JumpPagination length="5"}
- {block:CurrentPage}<span>{PageNumber}</span>{/block:CurrentPage}
- {block:JumpPage}<a href="{URL}">{PageNumber}</a>{/block:JumpPage}{/block:JumpPagination}
- </span>
- {block:NextPage}<a id="nxt" href="{NextPage}"></a>{/block:NextPage}
- </footer>
- {/block:Pagination}
- <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
- <script src="http://static.tumblr.com/wgg6svp/sDinmsq3x/jquery.style-my-tooltips.js"></script>
- <script src="http://static.tumblr.com/q8c0vxg/xYrnjmd74/jquery.infinitescroll.min.js"></script>
- <script src="http://static.tumblr.com/iwtk77u/Yhym2yygt/jquery.imagesloaded.min.js"></script>
- <script src="http://static.tumblr.com/wgijwsy/Ebfm2v4gy/jquery.masonry.min.js"></script>
- <script src="http://static.tumblr.com/emvnqzg/NOVo0fisl/scripts.js"></script>
- <script>
- $("[title]").style_my_tooltips({ tip_follows_cursor:true, tip_delay_time:200, tip_fade_speed:500 });
- {block:IndexPage}
- $(function(){
- var datas = [],
- datam = [],
- oula = [],
- currentPostClasses = [],
- oldPostClasses = [],
- $i,
- $b = 0,
- perma;
- $('article').each(function(){
- currentPostClasses = $(this).attr('class').split(" ");
- if($(this).is(':not(:first-child)')) oldPostClasses = $(this).prev().attr('class').split(" ");
- if(currentPostClasses[0] != oldPostClasses[0]){
- datas.push(currentPostClasses[0]);
- $(this).css({'clear': 'left'});
- }
- });
- for($i = 0; $i < datas.length; $i++){
- datam = datas[$i].match(/.{1,2}/g);
- perma = '<div class="permadate"><a href="http://{Name}.tumblr.com/day/20'+datam[0]+'/'+datam[1]+'/'+datam[2]+'/"><b>'+datam[2]+'</b><span>'+datam[1]+'/'+datam[0]+'</a></span></div>';
- $('article.'+datas[$i]).wrapAll('<section />');
- $('article.'+datas[$i]).parent().append(perma);
- }
- if($('footer').hasClass('ifntscroll') || $('footer').hasClass('lmorbtn')){
- var $tumblelog = $('section');
- $('main').infinitescroll({
- navSelector : "#pagination",
- nextSelector : "#nxt",
- itemSelector : "article",
- bufferPx : 50,
- done : "",
- loading: {
- img : "",
- msgText: "",
- finishedMsg:""
- },
- },
- function( newElements ) {
- var $newElems = $( newElements ).css({ opacity: 0 });
- $newElems.imagesLoaded(function(){
- $newElems.each(function(){
- oldPostClasses = $('section:last article:last').attr('class').split(" ");
- currentPostClasses = $(this).attr('class').split(" ");
- console.log(oldPostClasses);
- if(currentPostClasses[0] != oldPostClasses[0]){
- $(this).css({'clear': 'left'});
- datas.push(currentPostClasses[0]);
- $(this).wrap('<section />');
- oula = $(this).attr('class').match(/.{1,2}/g);
- $('section:last').masonry( 'appended', $(this) );
- $b++
- $('section:last').masonry( 'appended', '.permadate' );
- perma = '<div class="permadate"><a href="http://{Name}.tumblr.com/day/20'+oula[0]+'/'+oula[1]+'/'+oula[2]+'/"><b>'+oula[2]+'</b><span>'+oula[1]+'/'+oula[0]+'</span></a></div>';
- $(this).parent().append(perma);
- }else{
- $('section:last').append( $(this) ).masonry( 'appended', $(this) );
- }
- });
- $newElems.animate({ opacity: 1 });
- {block:DayPage}$('.permadate').remove();{/block:DayPage}
- {block:TagPage}$('.permadate').remove();{/block:TagPage}
- });
- });
- }
- if($('footer').hasClass('lmorbtn')){
- $tumblelog.infinitescroll({
- behavior: 'twitter'
- });
- $(window).unbind('.infscr');
- $('a#loadmore').click(function(){
- $('main').infinitescroll('retrieve');
- $('footer').show();
- return false;
- });
- }
- var nav = $('nav').offset().top;
- $(window).scroll(function(){
- var scrollTop = $(window).scrollTop();
- if(scrollTop > nav){
- $('nav').addClass('fixed');
- $('main').css('padding-top', '50px');
- }else{
- $('nav').removeClass('fixed');
- $('main').css('padding-top', '0px');
- }
- });
- {block:ifHeaderArrowDown}
- $('a.toposts').click(function(e){
- e.preventDefault();
- $('html, body').animate({scrollTop : $('header').height()}, 700);
- });
- {/block:ifHeaderArrowDown}
- var path = window.location.pathname;
- function masonry(){
- var article = 'article:not(.{text:TagToEngance})';
- $('section').imagesLoaded(function(){
- $('section').masonry({
- {block:IfNotEnhancedTag}itemSelector: 'article',{/block:IfNotEnhancedTag}
- {block:IfEnhancedTag}{block:TagPage} itemSelector: article,{/block:TagPage}{/block:IfEnhancedTag}
- itemSelector: 'article',
- isAnimated: true,
- columnWidth: 360
- });
- {block:IfEnhancedTag} {block:TagPage}
- if(path == '/tagged/{text:TagToEnhance}') $("section").masonry('destroy');
- {/block:TagPage} {/block:IfEnhancedTag}
- });
- }
- $(window).load(function(){
- {block:IfBlogLoader}$('#loader').fadeOut(800);{/block:IfBlogLoader}
- {block:IfEnhancedTag}if(path != '/tagged/{text:TagToEnhance}') {/block:IfEnhancedTag} masonry();
- if(!$('footer').hasClass('pagination') {block:IfEnhancedTag} && path != '/tagged/{text:TagToEnhance}' {/block:IfEnhancedTag}) setInterval(function(){masonry();}, 10000 );
- });
- {block:DayPage}
- $('.permadate, #loader').remove();
- {/block:DayPage}
- {block:TagPage}
- $('.permadate, #loader').remove();
- {/block:TagPage}
- });
- {/block:IndexPage}
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement