Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <!-----
- red hot theme by sam @classroom.tumblr.com
- basecode by animecharacter
- same rules as usual. **DO NOT REMOVE THE CREDIT**
- do not claim as your own or use as a basecode.
- i will confront you if you do this
- enjoy!
- ----->
- {block:iffireworks}
- <script type="text/javascript">
- // <![CDATA[
- var sparks=75; // how many sparks per clicksplosion
- var speed=33; // how fast - smaller is faster
- var bangs=5; // how many can be launched simultaneously (note that using too many can slow the script down)
- var colours=new Array('#03f', '#f03', '#0e0', '#93f', '#0cf', '#f93', '#f0c');
- // blue red green purple cyan orange pink
- /****************************
- * Clicksplosion Effect *
- * (c) 2012 mf2fm web-design *
- * http://www.mf2fm.com/rv *
- * DON'T EDIT BELOW THIS BOX *
- ****************************/
- var intensity=new Array();
- var Xpos=new Array();
- var Ypos=new Array();
- var dX=new Array();
- var dY=new Array();
- var stars=new Array();
- var decay=new Array();
- var timers=new Array();
- var swide=800;
- var shigh=600;
- var sleft=sdown=0;
- var count=0;
- function addLoadEvent(funky) {
- var oldonload=window.onload;
- if (typeof(oldonload)!='function') window.onload=funky;
- else window.onload=function() {
- if (oldonload) oldonload();
- funky();
- }
- }
- addLoadEvent(clicksplode);
- function clicksplode() { if (document.getElementById) {
- var i, j;
- window.onscroll=set_scroll;
- window.onresize=set_width;
- document.onclick=eksplode;
- set_width();
- set_scroll();
- for (i=0; i<bangs; i++) for (j=sparks*i; j<sparks+sparks*i; j++) {
- stars[j]=createDiv('*', 13);
- document.body.appendChild(stars[j]);
- }
- }}
- function createDiv(char, size) {
- var div, sty;
- div=document.createElement('div');
- sty=div.style;
- sty.font=size+'px monospace';
- sty.position='absolute';
- sty.backgroundColor='transparent';
- sty.visibility='hidden';
- sty.zIndex='101';
- div.appendChild(document.createTextNode(char));
- return (div);
- }
- function bang(N) {
- var i, Z, A=0;
- for (i=sparks*N; i<sparks*(N+1); i++) {
- if (decay[i]) {
- Z=stars[i].style;
- Xpos[i]+=dX[i];
- Ypos[i]+=(dY[i]+=1.25/intensity[N]);
- if (Xpos[i]>=swide || Xpos[i]<0 || Ypos[i]>=shigh+sdown || Ypos[i]<0) decay[i]=1;
- else {
- Z.left=Xpos[i]+'px';
- Z.top=Ypos[i]+'px';
- }
- if (decay[i]==15) Z.fontSize='7px';
- else if (decay[i]==7) Z.fontSize='2px';
- else if (decay[i]==1) Z.visibility='hidden';
- decay[i]--;
- }
- else A++;
- }
- if (A!=sparks) timers[N]=setTimeout('bang('+N+')', speed);
- }
- function eksplode(e) {
- var x, y, i, M, Z, N;
- set_scroll();
- y=(e)?e.pageY:event.y+sdown;
- x=(e)?e.pageX:event.x+sleft;
- N=++count%bangs;
- M=Math.floor(Math.random()*3*colours.length);
- intensity[N]=5+Math.random()*4;
- for (i=N*sparks; i<(N+1)*sparks; i++) {
- Xpos[i]=x;
- Ypos[i]=y-5;
- dY[i]=(Math.random()-0.5)*intensity[N];
- dX[i]=(Math.random()-0.5)*(intensity[N]-Math.abs(dY[i]))*1.25;
- decay[i]=16+Math.floor(Math.random()*16);
- Z=stars[i].style;
- if (M<colours.length) Z.color=colours[i%2?count%colours.length:M];
- else if (M<2*colours.length) Z.color=colours[count%colours.length];
- else Z.color=colours[i%colours.length];
- Z.fontSize='13px';
- Z.visibility='visible';
- }
- clearTimeout(timers[N]);
- bang(N);
- }
- function set_width() {
- var sw_min=999999;
- var sh_min=999999;
- if (document.documentElement && document.documentElement.clientWidth) {
- if (document.documentElement.clientWidth>0) sw_min=document.documentElement.clientWidth;
- if (document.documentElement.clientHeight>0) sh_min=document.documentElement.clientHeight;
- }
- if (typeof(self.innerWidth)=='number' && self.innerWidth) {
- if (self.innerWidth>0 && self.innerWidth<sw_min) sw_min=self.innerWidth;
- if (self.innerHeight>0 && self.innerHeight<sh_min) sh_min=self.innerHeight;
- }
- if (document.body.clientWidth) {
- if (document.body.clientWidth>0 && document.body.clientWidth<sw_min) sw_min=document.body.clientWidth;
- if (document.body.clientHeight>0 && document.body.clientHeight<sh_min) sh_min=document.body.clientHeight;
- }
- if (sw_min==999999 || sh_min==999999) {
- sw_min=800;
- sh_min=600;
- }
- swide=sw_min-7;
- shigh=sh_min-7;
- }
- function set_scroll() {
- if (typeof(self.pageYOffset)=='number') {
- sdown=self.pageYOffset;
- sleft=self.pageXOffset;
- }
- else if (document.body && (document.body.scrollTop || document.body.scrollLeft)) {
- sdown=document.body.scrollTop;
- sleft=document.body.scrollLeft;
- }
- else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
- sleft=document.documentElement.scrollLeft;
- sdown=document.documentElement.scrollTop;
- }
- else {
- sdown=0;
- sleft=0;
- }
- }
- // ]]>
- </script>
- {/block:iffireworks}
- {block:ifrainbowhover}
- <script type='text/javascript'>
- //<![CDATA[
- var rate = 50;
- if (document.getElementById)
- window.onerror=new Function("return true")
- var objActive; // The object which event occured in
- var act = 0; // Flag during the action
- var elmH = 0; // Hue
- var elmS = 128; // Saturation
- var elmV = 255; // Value
- var clrOrg; // A color before the change
- var TimerID; // Timer ID
- if (document.all) {
- document.onmouseover = doRainbowAnchor;
- document.onmouseout = stopRainbowAnchor;
- }
- else if (document.getElementById) {
- document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
- document.onmouseover = Mozilla_doRainbowAnchor;
- document.onmouseout = Mozilla_stopRainbowAnchor;
- }
- function doRainbow(obj)
- {
- if (act == 0) {
- act = 1;
- if (obj)
- objActive = obj;
- else
- objActive = event.srcElement;
- clrOrg = objActive.style.color;
- TimerID = setInterval("ChangeColor()",100);
- }
- }
- function stopRainbow()
- {
- if (act) {
- objActive.style.color = clrOrg;
- clearInterval(TimerID);
- act = 0;
- }
- }
- function doRainbowAnchor()
- {
- if (act == 0) {
- var obj = event.srcElement;
- while (obj.tagName != 'A' && obj.tagName != 'BODY') {
- obj = obj.parentElement;
- if (obj.tagName == 'A' || obj.tagName == 'BODY')
- break;
- }
- if (obj.tagName == 'A' && obj.href != '') {
- objActive = obj;
- act = 1;
- clrOrg = objActive.style.color;
- TimerID = setInterval("ChangeColor()",100);
- }
- }
- }
- function stopRainbowAnchor()
- {
- if (act) {
- if (objActive.tagName == 'A') {
- objActive.style.color = clrOrg;
- clearInterval(TimerID);
- act = 0;
- }
- }
- }
- function Mozilla_doRainbowAnchor(e)
- {
- if (act == 0) {
- obj = e.target;
- while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
- obj = obj.parentNode;
- if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
- break;
- }
- if (obj.nodeName == 'A' && obj.href != '') {
- objActive = obj;
- act = 1;
- clrOrg = obj.style.color;
- TimerID = setInterval("ChangeColor()",100);
- }
- }
- }
- function Mozilla_stopRainbowAnchor(e)
- {
- if (act) {
- if (objActive.nodeName == 'A') {
- objActive.style.color = clrOrg;
- clearInterval(TimerID);
- act = 0;
- }
- }
- }
- function ChangeColor()
- {
- objActive.style.color = makeColor();
- }
- function makeColor()
- {
- // Don't you think Color Gamut to look like Rainbow?
- // HSVtoRGB
- if (elmS == 0) {
- elmR = elmV; elmG = elmV; elmB = elmV;
- }
- else {
- t1 = elmV;
- t2 = (255 - elmS) * elmV / 255;
- t3 = elmH % 60;
- t3 = (t1 - t2) * t3 / 60;
- if (elmH < 60) {
- elmR = t1; elmB = t2; elmG = t2 + t3;
- }
- else if (elmH < 120) {
- elmG = t1; elmB = t2; elmR = t1 - t3;
- }
- else if (elmH < 180) {
- elmG = t1; elmR = t2; elmB = t2 + t3;
- }
- else if (elmH < 240) {
- elmB = t1; elmR = t2; elmG = t1 - t3;
- }
- else if (elmH < 300) {
- elmB = t1; elmG = t2; elmR = t2 + t3;
- }
- else if (elmH < 360) {
- elmR = t1; elmG = t2; elmB = t1 - t3;
- }
- else {
- elmR = 0; elmG = 0; elmB = 0;
- }
- }
- elmR = Math.floor(elmR).toString(16);
- elmG = Math.floor(elmG).toString(16);
- elmB = Math.floor(elmB).toString(16);
- if (elmR.length == 1) elmR = "0" + elmR;
- if (elmG.length == 1) elmG = "0" + elmG;
- if (elmB.length == 1) elmB = "0" + elmB
- elmH = elmH + rate;
- if (elmH >= 360)
- elmH = 0;
- return '#' + elmR + elmG + elmB;
- }
- //]]>
- </script>
- {/block:ifrainbowhover}
- <meta charset="utf-8">
- <meta https-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- {block:Description}
- <meta name="description" content="{MetaDescription}" />
- {/block:Description}
- <title>{Title}</title>
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <link rel="stylesheet" href="https://static.tumblr.com/qxrkgx6/RWPmgn2qa/normalize.min.css">
- <script src="https://static.tumblr.com/qxrkgx6/LuRmgn2rm/modernizr-2.6.2.min.js"></script>
- <meta name="image:sidebar" content="">
- <meta name="image:background" content="">
- <meta name="image:post background" content="">
- <meta name="image:sidebar background" content="">
- <meta name="image:container background" content="">
- <meta name="color:background" content="">
- <meta name="color:sidebar" content="">
- <meta name="color:post" content="">
- <meta name="color:container" content="">
- <meta name="color:text" content="">
- <meta name="color:link" content="">
- <meta name="color:link hover" content="">
- <meta name="color:border" content="">
- <meta name="color:highlight text" content="#fff">
- <meta name="color:highlight background" content="#000">
- <meta name="select:border line" content="none" title="none">
- <meta name="select:border line" content="solid" title="solid">
- <meta name="select:border line" content="dashed" title="dashed">
- <meta name="select:border line" content="dotted" title="dotted">
- <meta name="if:description" content="">
- <meta name="if:caption" content="">
- <meta name="if:tags" content="">
- <meta name="if:background cover" content="">
- <meta name="if:rainbow hover" content="">
- <meta name="if:fireworks" content="">
- <meta name="text:font" content="arial">
- <meta name="text:text size" content="16">
- <meta name="text:post size" content="400">
- <meta name="text:sidebar size" content="150">
- <meta name="text:border density" content="1">
- <meta name="text:divider" content="/">
- <meta name="text:link 1" content="home">
- <meta name="text:link 1 url" content="/">
- <meta name="text:link 2" content="ask">
- <meta name="text:link 2 url" content="/ask">
- <style type="text/css">
- ::-webkit-scrollbar {width: 0px; height: 0px; background:transparent;}
- ::-webkit-scrollbar-thumb {background-color:transparent; border:none;}
- ::selection {
- background: {color:highlight background};
- color: {color:highlight text};
- }
- ::-moz-selection {
- background: {color:highlight background};
- color: {color:highlight text};
- }
- /*
- general text styles, fonts and colours
- */
- body {
- background:{color:background} url({image:background});
- background-image: url('{image:background}');
- background-attachment: fixed;
- background-position: top left;
- background-size:{block:ifbackgroundcover}cover;{/block:ifbackgroundcover}
- margin:0px;
- font-family:{text:font};
- font-size:{text:text size}px;
- line-height:140%;
- color: {color:text};
- }
- p{
- margin:0 0 10px 0;
- padding:0;
- }
- pre {
- white-space: pre-wrap;
- white-space: -moz-pre-wrap;
- white-space: -pre-wrap;
- white-space: -o-pre-wrap;
- word-wrap: break-word;
- }
- a{
- color:{color:link};
- text-decoration:none;
- }
- a:hover{
- color:{color:link hover};
- text-decoration:none;
- }
- li{
- margin-left:-15px;
- }
- /*
- containers etc
- */
- #wrapper{
- width:600px;
- margin:50px auto;
- }
- #sidebar{
- width:{text:sidebar size}px;
- position:fixed;
- text-align:center;
- margin-top:70px;
- margin-left:-50px;
- background:{color:sidebar} url({image:sidebar background});
- background-image: url('{image:sidebar background}');
- background-size:cover;
- padding:7px;
- border:{text:border density}px {select:border line} {color:border};
- }
- #content{
- width:{text:post size}px;
- margin-left:200px;
- }
- .post{
- width:{text:post size}px;
- margin:0 0 50px 0;
- background:{color:post} url({image:post background});
- background-image: url('{image:post background}');
- background-size:cover;
- padding:7px;
- border:{text:border density}px {select:border line} {color:border};
- }
- #sidebar img, .post img{
- max-width:100%;
- }
- #nav{
- margin:50px 0 0 0;
- }
- #container{
- width:770px;
- height:670px;
- margin:40px auto;
- overflow:auto;
- text-align:left;
- background-color:{color:container};
- background-image:url('{image:container background}');
- background-size:cover;
- border:{text:border density}px {select:border line} {color:border};
- }
- #lover{
- position:fixed;
- bottom:2px;
- right:10px;
- padding:0px;
- font-size:8px;
- font-weight:normal;
- }
- /*
- content in the body of the posts - quotes, asks, etc
- "media" contains photos, photosets, videos, audio posts
- */
- .media{
- margin:0 0 10px 0;
- }
- .title{
- font-weight:normal;
- font-size:18px;
- margin:0 0 10px 0;
- }
- .quote{
- font-weight:normal;
- font-size:16px;
- font-style:italic;
- margin:0 0 10px 0;
- }
- .question{
- margin-bottom:10px;
- }
- blockquote{
- margin:0 0 10px 10px;
- padding:0 0 0 10px;
- border-left:solid 1px {color:text};
- }
- /*
- post footers - date, tags, via and source
- */
- .post .footer{
- margin:0;
- text-align:center;
- }
- /*
- post notes
- */
- ol.notes{
- list-style-type:none;
- padding:0;
- margin:0;
- }
- ol.notes li.note img{
- width:16px;
- height:16px;
- }
- ol.notes li.note{
- margin:0px;
- }
- {CustomCSS}
- </style>
- </head>
- <body>
- <div id="container">
- <div id="wrapper">
- <div id="sidebar">
- <a href="/"><img src="{image:sidebar}"></a>
- {block:ifDescription}
- <p>{Description}</p>
- {/block:ifDescription}
- <a href="{text:link 1 url}">{text:link 1}</a> {text:divider}
- <a href="{text:link 2 url}">{text:link 2}</a>
- {block:HasPages}
- {block:Pages}
- <a href="{URL}">{Label}</a><br>
- {/block:Pages}
- {/block:HasPages}
- </div>
- <div id="content">
- {block:Posts}
- <div class="post">
- {block:Text}
- {block:Title}
- <div class="title">{Title}</div>
- {/block:Title}
- {Body}
- {/block:Text}
- {block:Photo}
- <div class="media">{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}"/>{LinkCloseTag}</div>
- {block:ifCaption}<div class="caption">{Caption}</div>{/block:ifCaption}
- {/block:Photo}
- {block:Photoset}
- <div class="media">{Photoset-400}</div>
- {block:ifcaption}<div class="caption">{Caption}</div>{/block:ifcaption}
- {/block:Photoset}
- {block:Quote}
- <div class="quote">"{Quote}"</div>
- {block:Source}
- <div class="quotesource">{Source}</div>
- {/block:Source}
- {/block:Quote}
- {block:Link}
- <div class="title"><a href="{URL}">{Name}</a></div>
- {block:Description}
- <div class="description">{Description}</div>
- {/block:Description}
- {/block:Link}
- {block:Chat}
- {block:Title}
- <div class="title">{Title}</div>
- {/block:Title}
- {block:Lines}
- <div class="{Alt} user_{UserNumber}">
- {block:Label}
- <b>{Label}</b>{/block:Label}
- {Line}
- </div>
- {/block:Lines}
- {/block:Chat}
- {block:Video}
- <div class="media">{Video-400}</div>
- {block:ifcaption}<div class="caption">{Caption}</div>{/block:ifcaption}
- {/block:Video}
- {block:Audio}
- <div class="media">
- {block:AlbumArt}<img src="{AlbumArtURL}">{/block:AlbumArt}
- {AudioPlayerWhite}
- {block:TrackName}{TrackName}<br>{/block:TrackName}
- {block:Artist}{Artist}<br>{/block:Artist}
- {block:Album}{Album}{/block:Album}
- </div>
- {block:ifcaption}{Caption}{/block:ifcaption}
- {/block:Audio}
- {block:Answer}
- <div class="question">{Asker}: {Question}</div>
- <div class="caption">{Answer}</div>
- {/block:Answer}
- {block:Date}
- <div class="footer">
- <a href="{Permalink}">{block:NoteCount}{NoteCountWithLabel}{/block:NoteCount}</a>
- {block:iftags}{block:HasTags}<br>#{block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags}{/block:HasTags}{/block:iftags}
- {block:RebloggedFrom}<br><a href="{ReblogParentURL}">via</a>{/block:RebloggedFrom}
- {block:ContentSource} {text:divider} <a href="{SourceURL}">src</a>{/block:ContentSource}
- </div>
- {block:PermalinkPage}
- {block:NoteCount}
- {block:PostNotes}{PostNotes}{/block:PostNotes}
- {/block:NoteCount}
- {/block:PermalinkPage}
- {/block:Date}
- </div>
- {/block:Posts}
- {block:Pagination}
- <div id="nav">
- {block:PreviousPage}<a href="{PreviousPage}">prev</a> {text:divider}{/block:PreviousPage}
- {block:NextPage}<a href="{NextPage}">next</a>{/block:NextPage}
- </div>
- {/block:Pagination}
- </div>
- </div>
- </div>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
- <script>window.jQuery || document.write('<script src="https://static.tumblr.com/qxrkgx6/q6kmgn2w2/jquery-1.8.3.min.js"><\/script>')</script>
- <!----
- DO NOT TOUCH THIS CODE
- ----->
- <div id="lover"><a title="credit" href="https://classroom.tumblr.com/"><img src="https://68.media.tumblr.com/tumblr_lqwdh1l4TA1qcfn0j.gif"></a></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement