Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html lang="en">
- <head>
- <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}<script type="text/javascript"
- src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
- <meta name="font:font" content="'Helvetica Neue', Arial, Helvetica"/>
- <meta name="color:background" content="#79a8ae"/>
- <meta name="color:text" content="#ffffff"/>
- <meta name="color:links" content="#ffffff"/>
- <meta name="color:sidebar background" content="#598c92"/>
- <meta name="color:sidebar border" content="#2e6971"/>
- <meta name="color:sidebar text" content="#1a4d53"/>
- <meta name="color:nav" content="#1a4d53"/>
- <meta name="color:nav hover" content="#598c92"/>
- <meta name="color:notes text" content="#ffffff"/>
- <meta name="color:notes text hover" content="#ffffff"/>
- <meta name="color:borders" content="#ffffff"/>
- <meta name="color:post backgrounds" content="rgba(255,255,255,0.2)"/>
- <meta name="color:post shadows" content="#598c92"/>
- <meta name="color:notes background" content="rgba(255,255,255,0.2)"/>
- <meta name="color:notes background hover" content="rgba(000,000,000,0.2)"/>
- <meta name="select:border type" content="solid" title="solid">
- <meta name="select:border type" content="dotted" title="dotted">
- <meta name="select:border type" content="dashed" title="dashed">
- <meta name="select:border type" content="none" title="none">
- <meta name="color:moving bg color one" content="130,56,38"/>
- <meta name="color:moving bg color two" content="240,191,179"/>
- <meta name="color:moving bg color three" content="217,94,64"/>
- <meta name="color:moving bg color four" content="232,158,140"/>
- <meta name="color:moving bg color five" content="240,191,179"/>
- <meta name="color:moving bg color six" content="174,75,51"/>
- <meta name="if:moving background" content="0"/>
- <meta name="if:sidebar image" content="0"/>
- <meta name="if:post shadows" content="0"/>
- <meta name="if:round corners" content="1"/>
- <meta name="image:sidebar image" content="#79a8ae"/>
- <meta name="image:background" content="" />
- <meta name="text:links 1 title" content="" />
- <meta name="text:links 1 url" content="" />
- <meta name="text:links 2 title" content="" />
- <meta name="text:links 2 url" content="" />
- <meta name="text:links 3 title" content="" />
- <meta name="text:links 3 url" content="" />
- <meta name="text:links 4 title" content="" />
- <meta name="text:links 4 url" content="" />
- <style type="text/css">
- #tumblr_controls {
- position:fixed !important;
- -webkit-filter: invert(100%);
- opacity:0.7;
- }
- ::-webkit-scrollbar-thumb {
- background-color: #f0f0f0;
- border: 3px solid transparent;
- height:auto;
- -moz-border-radius: 12px;
- border-radius: 12px;
- }
- ::-webkit-scrollbar {
- width:3px;
- background-color: #ccc;
- border: 4px solid transparent;
- }
- #tumblr_lightbox {
- background:rgba(000,000,000,0.9) top right fixed repeat!important;
- background-size:cover!important;
- border-radius:0px;
- z-index:999999999999999999999999999999999999999!important;
- -webkit-transition: all 0.4s ease-in-out;
- -moz-transition: all 0.4s ease-in-out;
- -ms-transition: all 0.4s ease-in-out;
- -o-transition: all 0.4s ease-in-out;
- transition: all 0.4s ease-in-out;
- border:none;
- }
- #tumblr_lightbox img {
- opacity:0;
- }
- #tumblr_lightbox_caption {
- color:#fff;!important;
- padding-top:20px;
- font-size:16px!important;
- font-weight:normal!important;
- text-shadow:none!important;
- }
- #tumblr_lightbox_center_image, #tumblr_lightbox_left_image, #tumblr_lightbox_right_image {
- margin-top: 0px;
- padding:10px!important;
- background: rgba(255,255,255,0.8)!important;
- -moz-box-shadow:none!important;
- -webkit-box-shadow:none!important;
- border: 1px {select:border type} #000000!important;
- border-radius:0px;
- box-shadow:none!important;
- opacity:1!important;
- -webkit-transition: all 0.4s ease-in-out;
- -moz-transition: all 0.4s ease-in-out;
- -ms-transition: all 0.4s ease-in-out;
- -o-transition: all 0.4s ease-in-out;
- transition: all 0.4s ease-in-out;
- }
- #tumblr_lightbox_left_image, #tumblr_lightbox_right_image {
- -webkit-filter: brightness(0.5);
- -moz-filter:brightness(.5);
- -o-filter:brightness(.5);
- }
- #s-m-t-tooltip{
- z-index:99999999999999999;
- max-width:250px;
- margin:15px;
- margin-top:-10px;
- padding:3px 4px 3px 4px;
- font-weight:bold;
- text-transform:uppercase;
- letter-spacing:1px;
- text-shadow:2px 2px 4px rgba(000,000,000,0.6);
- }
- body {
- color:{color:text};
- font-family:{font:font};
- font-size:13px;
- letter-spacing:0.5px;
- background: {color:background};
- background-repeat:no-repeat;
- background-size: 100% 100%;
- background-attachment:fixed;
- background-image:url('{image:background}');
- }
- img {
- max-width:100%;
- }
- #infscr-loading{
- bottom: -70px;
- position: absolute;
- left: 50%;
- margin-left:-8px;
- width:16px;
- height:11px;
- overflow:hidden;
- margin-bottom: 50px;
- }
- #posts {
- width:520px;
- margin-left:50%;
- background-color:transparent;
- position:absolute;
- padding:0px;
- margin-top:0px;
- left:-213px;
- }
- .entry {
- background-color: {color:post backgrounds};
- padding:12px;
- padding-top:0px;
- padding-bottom:0px;
- border:1px {select:border type} {color:borders};
- width:400px;
- border-bottom:0px;
- float:left;
- margin:10px;
- font-size:12px;
- margin-top:40px;
- color:{color:text};
- {block:PermalinkPage}
- border-bottom:1px {select:border type} {color:borders};
- {/block:PermalinkPage}
- {block:Ifroundcorners}
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- {/block:Ifroundcorners}
- {block:ifpostshadows}
- -webkit-box-shadow: 10px 12px 4px 0px {color:post shadows};
- -moz-box-shadow: 10px 12px 4px 0px {color:post shadows};
- box-shadow: 10px 12px 4px 0px {color:post shadows};
- {/block:ifpostshadows}
- }
- #description {
- background-color:{color:sidebar background};
- width:200px;
- margin-top:83px;
- margin-left:-315px;
- position:fixed;
- min-height:45px;
- padding:10px;
- font-weight:bold;
- text-align:center;
- border:1px {select:border type} {color:sidebar border};
- color:{color:sidebar text};
- {block:Ifroundcorners}
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- {/block:Ifroundcorners}
- }
- #description img {
- max-width:200px;
- border:1px {select:border type} {color:sidebar border};
- {block:Ifroundcorners}
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- {/block:Ifroundcorners}
- }
- a {
- color:{color:links};
- -webkit-transition: all .4s ease-in-out;
- transition: all .4s ease-in-out;
- text-decoration:none;
- font-weight:bold;
- }
- a:hover {
- cursor:help;
- }
- blockquote {
- border-left:3px solid {color:borders};
- padding-left:10px;
- margin-left:10px;
- width:90%;
- }
- #perma {
- display:inline-block;
- font-family:helvetica;
- color:#666;
- font-weight:700;
- line-height:20px;
- width:414px;
- margin-left:-12px;
- padding:3px;
- padding-right:7px;
- height:22px;
- margin-bottom:-2px;
- border-bottom:1px {select:border type} {color:borders};
- color:{color:text};
- letter-spacing:1px;
- padding-bottom:0px;
- padding-top:5px;
- word-spacing:0px;
- background-color: {color:notes background};
- text-transform:uppercase;
- -webkit-transition: all .4s ease-in-out;
- transition: all .4s ease-in-out;
- border-top:1px {select:border type} {color:borders};
- {block:IndexPage}
- {block:Ifroundcorners}
- -webkit-border-radius: 0px 0px 6px 6px;
- -moz-border-radius: 0px 0px 6px 6px;
- border-radius: 0px 0px 6px 6px;
- {/block:Ifroundcorners}
- {/block:IndexPage}
- }
- #perma a:link, #perma a:visited, #perma a:active {
- color:{color:notes text};
- font-size:14px;
- }
- #perma a:hover {
- color:{color:notes text hover};
- }
- #perma:hover {
- background-color: {color:notes background hover};
- -webkit-transition: all .4s ease-in-out;
- transition: all .4s ease-in-out;
- }
- .reblog_button, .like_button {
- display: block;
- float: right;
- padding-left:10px;
- padding-top:0px;
- }
- .like_button {
- margin-top:-1px;
- }
- #notes {
- position:absolute;
- display:inline-block;
- margin-top:0px;
- padding-left:2px;
- }
- .chat ul {
- list-style: none;
- color:#fff;
- margin: 0;
- padding: 0;
- }
- .chat li {
- border-radius: 0.2em;
- margin-bottom: 3%;
- padding: 10px;
- width: 250px;
- }
- .chat .odd {
- float: left;
- background:rgba(000,000,000,0.25);
- }
- .chat .even {
- float: right;
- background:rgba(000,000,000,0.4);
- }
- .playbutton {
- overflow:hidden;
- background-color:#fff;
- padding:5px;
- padding-bottom:0px;
- width:390px;
- }
- notestitle {
- font-size:15px;
- font-weight:bold;
- font-family:arial;
- margin-left:-8px;
- }
- #notecontainer {
- list-style: none;
- line-height: 2.5em;
- margin-top:-10px;
- margin-left:0px;
- }
- .entry #notecontainer ol.notes {
- list-style: none;
- font-size: 13px;
- margin-left:-40px;
- }
- #notecontainer a {
- color:{color:links};
- font-weight:normal;
- }
- #notecontainer img {
- width: 17px;
- position:absolute;
- }
- .entry #notecontainer .avatar {
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- border-radius: 50%;
- margin-left:-40px;
- padding:10px;
- position:absolute;
- display:none;
- margin-top:-2px;
- }
- .more_notes_link {
- text-transform:uppercase;
- padding:10px;
- border:1px {select:border type} {color:borders};
- -webkit-transition: all .4s ease-in-out;
- transition: all .4s ease-in-out;
- padding-right:130px;
- padding-left:130px;
- color:#fff;
- margin-left:-5px;
- background-color:transparent;
- {block:Ifroundcorners}
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- {/block:Ifroundcorners}
- }
- .more_notes_link:hover {
- background-color:{color:post backgrounds};
- -webkit-transition: all .4s ease-in-out;
- transition: all .4s ease-in-out;
- }
- .help {
- position: fixed;
- top: 55px;
- margin-left:-315px;
- padding:10px;
- width: 200px;
- height: 25px;
- text-align: center;
- font-size: 18px;
- line-height: 27px;
- font-weight: bold;
- cursor: pointer;
- background: transparent;
- border:1px {select:border type} transparent;
- cursor:help;
- color: {color:nav};
- word-spacing:14px;
- opacity: .9;
- -webkit-transition: all .4s ease-in-out;
- -moz-transition: all .4s ease-in-out;
- -ms-transition: all .4s ease-in-out;
- -o-transition: all .4s ease-in-out;
- transition: all .4s ease-in-out;
- }
- .help:hover {
- opacity: 1;
- }
- .help a {
- color: {color:nav};
- }
- #info {
- display:none;
- width:200px;
- margin-top:10px;
- height:60px;
- position:fixed;
- text-align:center;
- background:transparent;
- }
- #info a {
- display:inline-block;
- color:{color:nav};
- padding-top:3px;
- text-transform:uppercase;
- padding-bottom:3px;
- padding-right:4px;
- padding-left:5px;
- margin-top:8px;
- {block:Ifroundcorners}
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- {/block:Ifroundcorners}
- }
- #info a:hover {
- color:{color:nav hover};
- }
- .question {
- padding:6px;
- border:1px {select:border type} {color:borders};
- background-color:{color:post backgrounds};
- {block:Ifroundcorners}
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- {/block:Ifroundcorners}
- }
- #asjer {
- text-transform:uppercase;
- text-align:right;
- letter-spacing:2px;
- padding-bottom:6px;
- }
- .cover {
- width:100%;
- z-index:1;
- position: relative;
- }
- quata {
- font-size:17px;
- font-style:italic;
- }
- {block:Ifmovingbackground}
- #gradient_bg {
- z-index: -1000;
- width: 100%;
- top: 0px;
- left: 0px;
- right: 0px;
- bottom: 0px;
- height: 100%;
- background-size: cover;
- position:fixed;
- padding: 0px;
- margin: 0px;
- }
- {/block:Ifmovingbackground}
- {CustomCSS]</style>
- <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
- <script>
- (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>
- {block:IndexPage}
- <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
- <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
- <script type="text/javascript">
- $(window).load(function () {
- var $content = $('#posts');
- $content.masonry({itemSelector: '.entry'}),
- $content.infinitescroll({
- navSelector : 'div#pagination',
- nextSelector : 'div#pagination a#nextPage',
- itemSelector : '.entry',
- loading: {
- finishedMsg: '',
- img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif'
- },
- 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:IndexPage}
- </head>
- <body>
- {block:Ifmovingbackground}
- <div id="gradient_bg"></div>
- {/block:Ifmovingbackground}
- <div id="posts">
- <div class="help">
- <a title="links" onclick="toggle_visibility('info');">✖</a>
- <a href="/" title="home">↻</a>
- <a href="/ask" title="ask">✎</a>
- </div>
- <div id="description">
- {block:Ifsidebarimage}
- <img src="{image:sidebar image}">
- <div style="padding-bottom:5px;"></div>
- {/block:Ifsidebarimage}
- {Description}
- <div id="info">
- <a href="{text:links 1 url}">{text:links 1 title}</a>
- <a href="{text:links 2 url}">{text:links 2 title}</a>
- <a href="{text:links 3 url}">{text:links 3 title}</a>
- <a href="{text:links 4 url}">{text:links 4 title}</a>
- </div>
- </div>
- <style>
- #themc {
- right:40px;
- bottom:30px;
- position:fixed;
- font-size:18px;
- font-weight:bold;
- }
- #themc a {
- color:{color:nav};
- }
- </style>
- <div id="themc">
- <a onmouseover="mouseoversound.playclip()" title="theme by yourenosaint" href="http://yourenosaint.tumblr.com/">?</a>
- </div>
- {block:Posts}
- <!-- {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}
- <div class="entry">
- {block:Title}
- <div style="padding-top:12px"></div>
- <div style="color:#fff; font-weight:bold; font-size:16px">{Title}</div>{/block:Title}
- {block:Text}{Body}{/block:Text}
- {block:Photo}
- <a href="{permalink}">
- <div style="padding-top:12px"></div>
- <img src="{PhotoURL-400}" width="400px"/></a>
- <div style="padding-top:12px"></div>
- {/block:Photo}
- {block:Photoset}
- <a href="{permalink}">
- <div style="padding-top:12px"></div>
- {Photoset-400}</a>
- <div style="padding-top:12px"></div>
- {/block:Photoset}
- {block:Quote}
- <div style="padding-top:12px"></div>
- <quata>
- “{Quote}”
- </quata>
- <div style="padding-top:8px"></div>
- <div style="text-align:right; letter-spacing:1px; font-size:11px;">
- {block:Source}- {Source}{/block:Source}
- </div>
- <div style="padding-top:10px"></div>
- {/block:Quote}
- {block:Video}
- <div style="padding-top:12px"></div>
- {Video-400}
- <div style="padding-top:12px"></div>
- {/block:Video}
- {block:Link}
- <div style="padding-top:12px"></div>
- <div style="font-size:15px; padding-bottom:6px; border-bottom:1px {select:border type} {color:borders}">
- <a href="{URL}" class="link" {Target}>{Name}</a><BR></div>
- {block:Description}{Description}{/block:Description}
- {/block:Link}
- {block:Chat}
- <div style="padding-top:12px"></div>
- <div class="chat">
- <ul>
- {block:Lines}
- <li class="{Alt}">{block:Label} {Label} {/block:Label}{Line}</li>
- {/block:Lines}
- </ul>
- </div>
- <div style="padding-top:12px;"></div>
- {/block:Chat}
- {block:Audio}
- <div style="padding-top:12px"></div>
- <div class="playbutton">
- {AudioPlayerWhite}</div>
- {block:AlbumArt}
- <img src="{AlbumArtURL}" class="cover">
- {/block:AlbumArt}
- <div style="padding-top:10px"></div>
- {/block:Audio}
- {block:Answer}
- <div style="padding-top:12px"></div>
- <div id="asjer">{Asker} said:</div><div class="question"> <b>{Question}</b></div>
- <div style="margin-top:6px">
- <div class="answer">{Answer}</div>
- </div>
- {/block:Answer}
- {block:Caption}
- {Caption}
- {/block:Caption}
- <div id="perma">
- <div id="notes"><a href="{PermaLink}">{NoteCount} notes</a></div>
- {LikeButton size="18" color="white"}
- {ReblogButton size="18" color="white"}
- </div>
- {block:PermalinkPage}
- {block:PostNotes}
- <div id="notecontainer">{PostNotes}</div>
- <div style="padding-top:3px;"></div>
- {/block:PostNotes}
- </div></div>
- {/block:PermalinkPage}
- </div>
- {/block:Posts}
- {block:Ifmovingbackground}
- <div style="width:25px; top:50%; margin-top:-55px; margin-left:520px; position:fixed; padding:10px; text-align:center; font-size:60px;">
- {block:NextPage}
- <a href="{NextPage}">→</a>
- {/block:NextPage}
- </div>
- {/block:Ifmovingbackground}
- </div>
- {block:Indexpage}
- {block:NextPage}<div id="page-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/bswe8t6/UFVlryaq2/jquerymsnryv2.js"></script>
- <script type="text/javascript">
- $(window).load(function(){
- var $wall = $('#posts');
- $wall.imagesLoaded(function(){
- $wall.masonry({
- itemSelector: '.entry, .entry_photo',
- isAnimated : false
- });
- });
- $wall.infinitescroll({
- navSelector : '#page-nav',
- nextSelector : '#page-nav a',
- itemSelector : '.entry, .entry_photo',
- bufferPx : 2000,
- debug : false,
- errorCallback: function() {
- $('#infscr-loading').fadeOut('normal');
- }},
- function( newElements ) {
- var $newElems = $( newElements );
- $newElems.hide();
- $newElems.imagesLoaded(function(){
- $wall.masonry( 'appended', $newElems,{isAnimated: false}, function(){$newElems.fadeIn('slow');} );
- });
- }); $('#content').show(400);
- });
- </script>
- {/block:indexpage}
- <script type="text/javascript">
- <!--
- function toggle_visibility(id) {
- var e = document.getElementById(id);
- if(e.style.display == 'block')
- e.style.display = 'none';
- else
- e.style.display = 'block';
- }
- //-->
- </script>
- <script>
- // Mouseover/ Click sound effect- by JavaScript Kit (www.javascriptkit.com)
- // Visit JavaScript Kit at http://www.javascriptkit.com/ for full source code
- //** Usage: Instantiate script by cwrappering: var uniquevar=createsoundbite("soundfile1", "fwrapperbackfile2", "fwrapperebacksound3", etc)
- //** Cwrapper: uniquevar.playclip() to play sound
- var html5_audiotypes={ //define list of audio file extensions and their associated audio types. Add to it if your specified audio file isn't on this list:
- "mp3": "audio/mpeg",
- "mp4": "audio/mp4",
- "ogg": "audio/ogg",
- "wav": "audio/wav"
- }
- function createsoundbite(sound){
- var html5audio=document.createElement('audio')
- if (html5audio.canPlayType){ //check support for HTML5 audio
- for (var i=0; i<arguments.length; i++){
- var sourceel=document.createElement('source')
- sourceel.setAttribute('src', arguments[i])
- if (arguments[i].match(/\.(\w+)$/i))
- sourceel.setAttribute('type', html5_audiotypes[RegExp.$1])
- html5audio.appendChild(sourceel)
- }
- html5audio.load()
- html5audio.playclip=function(){
- html5audio.pause()
- html5audio.currentTime=0
- html5audio.play()
- }
- return html5audio
- }
- else{
- return {playclip:function(){throw new Error("Your browser doesn't support HTML5 audio unfortunately")}}
- }
- }
- //Initialize two sound clips with 1 fwrapperback file each:
- var mouseoversound=createsoundbite("http://www.flashkit.com/imagesvr_ce/flashkit/soundfx/Cartoon/Other/Mario_Po-palten08-8509/Mario_Po-palten08-8509_hifi.mp3")
- var clicksound=createsoundbite("http://www.flashkit.com/imagesvr_ce/flashkit/soundfx/Cartoon/Other/Mario_Po-palten08-8509/Mario_Po-palten08-8509_hifi.mp3")
- </script>
- {block:Ifmovingbackground}
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
- <script>
- var colors = new Array(
- [{RGBcolor:moving bg color one}],
- [{RGBcolor:moving bg color two}],
- [{RGBcolor:moving bg color three}],
- [{RGBcolor:moving bg color four}],
- [{RGBcolor:moving bg color five}],
- [{RGBcolor:moving bg color six}]);
- var step = 0;
- var colorIndices = [0,1,2,3];
- var gradientSpeed = 0.002;
- function updateGradient()
- {
- var c0_0 = colors[colorIndices[0]];
- var c0_1 = colors[colorIndices[1]];
- var c1_0 = colors[colorIndices[2]];
- var c1_1 = colors[colorIndices[3]];
- var istep = 1 - step;
- var r1 = Math.round(istep * c0_0[0] + step * c0_1[0]);
- var g1 = Math.round(istep * c0_0[1] + step * c0_1[1]);
- var b1 = Math.round(istep * c0_0[2] + step * c0_1[2]);
- var color1 = "#"+((r1 << 16) | (g1 << 8) | b1).toString(16);
- var r2 = Math.round(istep * c1_0[0] + step * c1_1[0]);
- var g2 = Math.round(istep * c1_0[1] + step * c1_1[1]);
- var b2 = Math.round(istep * c1_0[2] + step * c1_1[2]);
- var color2 = "#"+((r2 << 16) | (g2 << 8) | b2).toString(16);
- $('#gradient_bg').css({
- background: "-webkit-gradient(linear, left top, right top, from("+color1+"), to("+color2+"))"}).css({
- background: "-moz-linear-gradient(left, "+color1+" 0%, "+color2+" 100%)"});
- step += gradientSpeed;
- if ( step >= 1 )
- {
- step %= 1;
- colorIndices[0] = colorIndices[1];
- colorIndices[2] = colorIndices[3];
- colorIndices[1] = ( colorIndices[1] + Math.floor( 1 + Math.random() * (colors.length - 1))) % colors.length;
- colorIndices[3] = ( colorIndices[3] + Math.floor( 1 + Math.random() * (colors.length - 1))) % colors.length;
- }
- }
- setInterval(updateGradient,10);
- </script>
- {/block:Ifmovingbackground}
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement