Advertisement
d34d4u

"did someone call a doctor?" theme by waylons

Feb 17th, 2018
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 12.87 KB | None | 0 0
  1. <!--
  2.  
  3. "did someone call a doctor?" theme by val!
  4.  
  5.  
  6. dont remove my creidt and lmk if anythings messed up ! this is my first theme !
  7.  
  8. base theme by creamsofa !
  9.  
  10.  
  11.  
  12.  
  13. -->
  14.  
  15. <html>
  16. <head>
  17.  
  18.  
  19.  
  20. <link rel="shortcut icon" href="{Favicon}" />
  21. <link rel="alternate" type="application/rss+xml" href="{RSS}" />
  22. <title>{Title}</title>
  23. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  24.  
  25.  
  26.  
  27.     <meta name="color:background" content="#ffffff">
  28.     <meta name="color:text" content="#c0bdb8" />
  29.     <meta name="color:link hover" content="#fdfdfd" />
  30.     <meta name="color:link" content="#c0bdb8" />
  31.     <meta name="color:sparkles" content="#fff" title="sparkles">
  32.    
  33.     <meta name="image:sidebar" content=""/>
  34.     <meta name="image:favicon" content="">
  35.    
  36.     <meta name="if:mouse sparkles" content="1"/>
  37.     <meta name="if:rainbow hover" content="1" />
  38.    
  39.     <meta name="text:link1" content="url" />
  40.     <meta name="text:name1" content="link" />
  41.    
  42.    
  43.  </head>
  44.        
  45. {block:ifmousesparkles}
  46. <script type="text/javascript">
  47. // <![CDATA[
  48. var colour="{color:sparkles}";
  49. var sparkles=120;
  50.  
  51. var x=ox=400;
  52. var y=oy=300;
  53. var swide=800;
  54. var shigh=600;
  55. var sleft=sdown=0;
  56. var tiny=new Array();
  57. var star=new Array();
  58. var starv=new Array();
  59. var starx=new Array();
  60. var stary=new Array();
  61. var tinyx=new Array();
  62. var tinyy=new Array();
  63. var tinyv=new Array();
  64.  
  65. window.onload=function() { if (document.getElementById) {
  66.  var i, rats, rlef, rdow;
  67.  for (var i=0; i<sparkles; i++) {
  68.    var rats=createDiv(3, 3);
  69.    rats.style.visibility="hidden";
  70.    document.body.appendChild(tiny[i]=rats);
  71.    starv[i]=0;
  72.    tinyv[i]=0;
  73.    var rats=createDiv(5, 5);
  74.    rats.style.backgroundColor="transparent";
  75.    rats.style.visibility="hidden";
  76.    var rlef=createDiv(1, 5);
  77.    var rdow=createDiv(5, 1);
  78.    rats.appendChild(rlef);
  79.    rats.appendChild(rdow);
  80.    rlef.style.top="2px";
  81.    rlef.style.left="0px";
  82.    rdow.style.top="0px";
  83.    rdow.style.left="2px";
  84.    document.body.appendChild(star[i]=rats);
  85.  }
  86.  set_width();
  87.  sparkle();
  88. }}
  89.  
  90. function sparkle() {
  91.  var c;
  92.  if (x!=ox || y!=oy) {
  93.    ox=x;
  94.    oy=y;
  95.    for (c=0; c<sparkles; c++) if (!starv[c]) {
  96.      star[c].style.left=(starx[c]=x)+"px";
  97.      star[c].style.top=(stary[c]=y)+"px";
  98.      star[c].style.clip="rect(0px, 5px, 5px, 0px)";
  99.      star[c].style.visibility="visible";
  100.      starv[c]=50;
  101.      break;
  102.    }
  103.  }
  104.  for (c=0; c<sparkles; c++) {
  105.    if (starv[c]) update_star(c);
  106.    if (tinyv[c]) update_tiny(c);
  107.  }
  108.  setTimeout("sparkle()", 40);
  109. }
  110.  
  111. function update_star(i) {
  112.  if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";
  113.  if (starv[i]) {
  114.    stary[i]+=1+Math.random()*3;
  115.    if (stary[i]<shigh+sdown) {
  116.      star[i].style.top=stary[i]+"px";
  117.      starx[i]+=(i%5-2)/5;
  118.      star[i].style.left=starx[i]+"px";
  119.    }
  120.    else {
  121.      star[i].style.visibility="hidden";
  122.      starv[i]=0;
  123.      return;
  124.    }
  125.  }
  126.  else {
  127.    tinyv[i]=50;
  128.    tiny[i].style.top=(tinyy[i]=stary[i])+"px";
  129.    tiny[i].style.left=(tinyx[i]=starx[i])+"px";
  130.    tiny[i].style.width="2px";
  131.    tiny[i].style.height="2px";
  132.    star[i].style.visibility="hidden";
  133.    tiny[i].style.visibility="visible"
  134.  }
  135. }
  136.  
  137. function update_tiny(i) {
  138.  if (--tinyv[i]==25) {
  139.    tiny[i].style.width="1px";
  140.    tiny[i].style.height="1px";
  141.  }
  142.  if (tinyv[i]) {
  143.    tinyy[i]+=1+Math.random()*3;
  144.    if (tinyy[i]<shigh+sdown) {
  145.      tiny[i].style.top=tinyy[i]+"px";
  146.      tinyx[i]+=(i%5-2)/5;
  147.      tiny[i].style.left=tinyx[i]+"px";
  148.    }
  149.    else {
  150.      tiny[i].style.visibility="hidden";
  151.      tinyv[i]=0;
  152.      return;
  153.    }
  154.  }
  155.  else tiny[i].style.visibility="hidden";
  156. }
  157.  
  158. document.onmousemove=mouse;
  159. function mouse(e) {
  160.  set_scroll();
  161.  y=(e)?e.pageY:event.y+sdown;
  162.  x=(e)?e.pageX:event.x+sleft;
  163. }
  164.  
  165. function set_scroll() {
  166.  if (typeof(self.pageYOffset)=="number") {
  167.    sdown=self.pageYOffset;
  168.    sleft=self.pageXOffset;
  169.  }
  170.  else if (document.body.scrollTop || document.body.scrollLeft) {
  171.    sdown=document.body.scrollTop;
  172.    sleft=document.body.scrollLeft;
  173.  }
  174.  else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
  175.    sleft=document.documentElement.scrollLeft;
  176.     sdown=document.documentElement.scrollTop;
  177.  }
  178.  else {
  179.    sdown=0;
  180.    sleft=0;
  181.  }
  182. }
  183.  
  184. window.onresize=set_width;
  185. function set_width() {
  186.  if (typeof(self.innerWidth)=="number") {
  187.    swide=self.innerWidth;
  188.    shigh=self.innerHeight;
  189.  }
  190.  else if (document.documentElement && document.documentElement.clientWidth) {
  191.    swide=document.documentElement.clientWidth;
  192.    shigh=document.documentElement.clientHeight;
  193.  }
  194.  else if (document.body.clientWidth) {
  195.    swide=document.body.clientWidth;
  196.    shigh=document.body.clientHeight;
  197.  }
  198. }
  199.  
  200. function createDiv(height, width) {
  201.  var div=document.createElement("div");
  202.  div.style.position="absolute";
  203.  div.style.height=height+"px";
  204.  div.style.width=width+"px";
  205.  div.style.overflow="hidden";
  206.  div.style.backgroundColor=colour;
  207.  return (div);
  208. }
  209. // ]]>
  210. </script>
  211. {/block:ifmousesparkles}
  212.  
  213. {block:Ifrainbowhover}
  214.     <script type='text/javascript'>
  215. //<![CDATA[
  216. var rate = 50;
  217. if (document.getElementById)
  218. window.onerror=new Function("return true")
  219.  
  220. var objActive; // The object which event occured in
  221. var act = 0; // Flag during the action
  222. var elmH = 0; // Hue
  223. var elmS = 128; // Saturation
  224. var elmV = 255; // Value
  225. var clrOrg; // A color before the change
  226. var TimerID; // Timer ID
  227. if (document.all) {
  228. document.onmouseover = doRainbowAnchor;
  229. document.onmouseout = stopRainbowAnchor;
  230. }
  231. else if (document.getElementById) {
  232. document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
  233. document.onmouseover = Mozilla_doRainbowAnchor;
  234. document.onmouseout = Mozilla_stopRainbowAnchor;
  235. }
  236. function doRainbow(obj)
  237. {
  238. if (act == 0) {
  239. act = 1;
  240. if (obj)
  241. objActive = obj;
  242. else
  243. objActive = event.srcElement;
  244. clrOrg = objActive.style.color;
  245. TimerID = setInterval("ChangeColor()",100);
  246. }
  247. }
  248. function stopRainbow()
  249. {
  250. if (act) {
  251. objActive.style.color = clrOrg;
  252. clearInterval(TimerID);
  253. act = 0;
  254. }
  255. }
  256. function doRainbowAnchor()
  257. {
  258. if (act == 0) {
  259. var obj = event.srcElement;
  260. while (obj.tagName != 'A' && obj.tagName != 'BODY') {
  261. obj = obj.parentElement;
  262. if (obj.tagName == 'A' || obj.tagName == 'BODY')
  263. break;
  264. }
  265. if (obj.tagName == 'A' && obj.href != '') {
  266. objActive = obj;
  267. act = 1;
  268. clrOrg = objActive.style.color;
  269. TimerID = setInterval("ChangeColor()",100);
  270. }
  271. }
  272. }
  273. function stopRainbowAnchor()
  274. {
  275. if (act) {
  276. if (objActive.tagName == 'A') {
  277. objActive.style.color = clrOrg;
  278. clearInterval(TimerID);
  279. act = 0;
  280. }
  281. }
  282. }
  283. function Mozilla_doRainbowAnchor(e)
  284. {
  285. if (act == 0) {
  286. obj = e.target;
  287. while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
  288. obj = obj.parentNode;
  289. if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
  290. break;
  291. }
  292. if (obj.nodeName == 'A' && obj.href != '') {
  293. objActive = obj;
  294. act = 1;
  295. clrOrg = obj.style.color;
  296. TimerID = setInterval("ChangeColor()",100);
  297. }
  298. }
  299. }
  300. function Mozilla_stopRainbowAnchor(e)
  301. {
  302. if (act) {
  303. if (objActive.nodeName == 'A') {
  304. objActive.style.color = clrOrg;
  305. clearInterval(TimerID);
  306. act = 0;
  307. }
  308. }
  309. }
  310. function ChangeColor()
  311. {
  312. objActive.style.color = makeColor();
  313. }
  314. function makeColor()
  315. {
  316. // Don't you think Color Gamut to look like Rainbow?
  317. // HSVtoRGB
  318. if (elmS == 0) {
  319. elmR = elmV; elmG = elmV; elmB = elmV;
  320. }
  321. else {
  322. t1 = elmV;
  323. t2 = (255 - elmS) * elmV / 255;
  324. t3 = elmH % 60;
  325. t3 = (t1 - t2) * t3 / 60;
  326. if (elmH < 60) {
  327. elmR = t1; elmB = t2; elmG = t2 + t3;
  328. }
  329. else if (elmH < 120) {
  330. elmG = t1; elmB = t2; elmR = t1 - t3;
  331. }
  332. else if (elmH < 180) {
  333. elmG = t1; elmR = t2; elmB = t2 + t3;
  334. }
  335. else if (elmH < 240) {
  336. elmB = t1; elmR = t2; elmG = t1 - t3;
  337. }
  338. else if (elmH < 300) {
  339. elmB = t1; elmG = t2; elmR = t2 + t3;
  340. }
  341. else if (elmH < 360) {
  342. elmR = t1; elmG = t2; elmB = t1 - t3;
  343. }
  344. else {
  345. elmR = 0; elmG = 0; elmB = 0;
  346. }
  347. }
  348. elmR = Math.floor(elmR).toString(16);
  349. elmG = Math.floor(elmG).toString(16);
  350. elmB = Math.floor(elmB).toString(16);
  351. if (elmR.length == 1) elmR = "0" + elmR;
  352. if (elmG.length == 1) elmG = "0" + elmG;
  353. if (elmB.length == 1) elmB = "0" + elmB
  354. elmH = elmH + rate;
  355. if (elmH >= 360)
  356. elmH = 0;
  357. return '#' + elmR + elmG + elmB;
  358. }
  359. //]]>
  360. </script>
  361.     {/block:IfrainbowHover}
  362.  
  363. <style type="text/css">
  364. body {color:{color:text}; background-color:{color:background}; background:{image:background}; font-family:verdana; font-size:17px; line-height:17px; text-align:justify}
  365.  
  366. a:link, a:active, a:visited{color: {color:link}; text-decoration:none}
  367.  
  368. a:hover {
  369. color:{color:link hover};-webkit-transition: all 0.2s linear; -moz-transition: all 0.2s linear; transition: all 0.2s linear;}
  370.  
  371. small{font-size:auto}
  372.  
  373. big{font-size:auto}
  374.  
  375. b, strong{color:{color:bold}}
  376.  
  377. h1 {font-size:15px;}
  378.  
  379. i, em {color:{color:italic}}
  380.  
  381. p{margin-top:6px; margin-bottom:6px}
  382.  
  383. blockquote {padding:0px; padding-left:10px; margin:8px; border-left:2px solid {color:text}}
  384.  
  385. img a{border:none; width:100%;}
  386.  
  387. #container {background-color:transparent; width: 400px; margin: 0 auto -10px auto}
  388.  
  389. #entries {margin-left:500px; text-align: justify;}
  390.  
  391.  
  392.  
  393. #posts {margin: 70px 0 0px 0; width: 400px;text-align: justify; padding: 10px;border: 1px solid #aaa; background-color:#ffffff;}
  394.  
  395. #posts img {max-width:100%;}
  396.  
  397. #sidebar{ position:fixed; width:200px; background:white; border:1px solid #aaa; padding:7px; overflow:hidden;left:150px; top:140px;
  398. }
  399.  
  400. h2 {
  401. font-family:helvetica; font-weight:100; line-height:17px;
  402. }
  403.  
  404. #pagination {font-family:calibri; text-align:center; font-size:24px; margin-bottom:2px;}
  405.  
  406. #credit{position:fixed; bottom:10px; left:10px; font-size:11px; font-family:calibri;color:{color:text}; text-transform:uppercase;letter-spacing: 0px; font-style:normal; background:white; border:1px solid #aaa; padding:3px;}
  407.  
  408. #info{padding-top:5px; display:block; padding-bottom:5px; width:auto; font-size:10px; font-family:verdana; text-transform:uppercase;}
  409.  
  410. .audio{background-color:black; display:block}
  411.  
  412. /* this is your chats, you can stylize however you want */
  413.  
  414. .user_1 .label {color:{color:link}; font-weight:bold}
  415. .user_2 .label {color:{color:text}; font-weight:italic}
  416. .user_3 .label {color:{color:link}; font-weight:text}
  417.  
  418.  
  419. ul.chat, .chat ol, .chat li {list-style:none; margin:0px; padding:0px}
  420.  
  421. .notes img{width:10px; position:relative; top:1px}
  422. ol.notes, .notes li{width:490px; list-style:none; margin:0px 0 -1px 5px; padding:0px}
  423.  
  424.  
  425. </style>
  426.  
  427.  
  428. <body>
  429. <div id="sidebar">
  430. <a href="/"><img src="{image:sidebar}" style="width:190px;position:inline;
  431. padding:5px;"></a>
  432. <center>
  433. {description}<p>
  434. <a href="/">home</a> /
  435. <a href="/ask">ask</a> /
  436. <a href="{text:link1}">{text:name1}</a>
  437. <div id="pagination">{block:Pagination}{block:PreviousPage}<a href="{PreviousPage}">«</a>{/block:PreviousPage} {block:NextPage}<a href="{NextPage}">»</a><br />{/block:NextPage}{/block:Pagination}</div>
  438. </div>
  439. </center>
  440.  
  441.  
  442. <div id="credit"><a href="http://bloodbags.tumblr.com/" title="theme credit"></a></div>
  443.  
  444. <div id="entries">
  445. {block:posts}
  446.  
  447. <div id="posts">
  448. {block:Text}{block:Title}<h1>{Title}</h1>{/block:Title}{Body}{/block:Text}
  449.  
  450.  
  451. {block:Quote}<h2>“{Quote}” — {Source}</h2><br>{/block:Quote}
  452.  
  453. {block:Link}<a href="{URL}"><h1>{Name}</h1></a>
  454. {block:Description}<p>{Description}</p>{/block:Description}{/block:Link}
  455.  
  456. {block:Photo}<center><img src="{PhotoURL-400}"/></center>
  457. {block:Caption}{Caption}{/block:Caption}{/block:Photo}
  458.  
  459. {block:Photoset}<center>{Photoset-400}</center>
  460. {block:Caption}{Caption}{/block:Caption}{/block:Photoset}
  461.  
  462. {block:Chat}<ul class="chat">{block:Lines}<li class="user_{UserNumber}">{block:Label}<span class="label">{Label}</span>{/block:Label}&nbsp;{Line}</li>{/block:Lines}</ul>{/block:Chat}
  463.  
  464. {block:Video}{Video-400}{block:Caption}{Caption}{/block:Caption}{/block:Video}
  465.  
  466. {block:Answer}{Asker} whispered: {Question}<br>{Answer}{/block:Answer}
  467.  
  468.  
  469. {block:Audio}{AudioPlayerWhite}<br>
  470. {block:Caption}{Caption}{/block:Caption} {/block:Audio}
  471.  
  472. <center><div id="info">{block:Date}<a href="{Permalink}"> <a href="{ReblogURL}" target="_blank" class="details"> +Reblog</a><a href="{ReblogParentURL}"> {TimeAgo}</a>{/block:Date}{block:NoteCount} <i>with</i> <a href="{Permalink}">{NoteCountWithLabel}</a>{/block:NoteCount}{block:RebloggedFrom}<br><i>reblogged from</i> <a href="{ReblogParentURL}">{ReblogParentName}</a> - {/block:RebloggedFrom}{block:ContentSource} <i>originally from</i> <a href="{SourceURL}">{SourceLink}</a>{/block:ContentSource}</center><p>
  473.  
  474. <center>{block:HasTags}<u>filed under:</u>{block:Tags} # <a href="{TagURL}">{Tag} </a> {/block:Tags}{/block:HasTags}
  475. <br /></div>
  476.  
  477. {/block:Posts}
  478.  
  479. {block:PostNotes}{PostNotes}{/block:PostNotes}<br />
  480. </div>
  481. </div>
  482.  
  483. </body>
  484. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement