Advertisement
lucitor

Loaf Baby theme

Mar 19th, 2018
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.75 KB | None | 0 0
  1. <!--
  2. 。・:*:・゚★,。・:*:・゚☆   。・:*:・゚★,。・:*:・゚☆
  3.  
  4. base code by chraliecox
  5.  
  6. theme by abby yummiland Σd(≧ω≦*) グッ
  7.  
  8. all i ask is dont remove the credit~
  9.  
  10. if you have anyquestions or if theres any bugs send me an ask!! i hope u like it ilysm thanks for using!!
  11. 。・:*:・゚★,。・:*:・゚☆   。・:*:・゚★,。・:*:・゚☆
  12.  
  13. -->
  14.  
  15. <!DOCTYPE html>
  16.  
  17. <head>
  18. {block:iflights}<script type="text/javascript">
  19. // <![CDATA[
  20. var colour="{color:lights}"; // what colour are the blobs
  21. var speed=66; // speed of animation, lower is faster
  22. var blobs=20; // how many blobs are in the jar
  23. var charc=String.fromCharCode(9679); // a blob - can be changed to charc='hello' or charc='*' for a different effect
  24.  
  25. /***************************\
  26. * Blobs in a Jar Effect *
  27. *(c)2012-13 mf2fm web-design*
  28. * http://www.mf2fm.com/rv *
  29. * DON'T EDIT BELOW THIS BOX *
  30. \***************************/
  31.  
  32. var div;
  33. var xpos=new Array();
  34. var ypos=new Array();
  35. var zpos=new Array();
  36. var dx=new Array();
  37. var dy=new Array();
  38. var dz=new Array();
  39. var blob=new Array();
  40. var swide=800;
  41. var shigh=600;
  42. var ie_version=(navigator.appVersion.indexOf("MSIE")!=-1)?parseFloat(navigator.appVersion.split("MSIE")[1]):false;
  43.  
  44. function addLoadEvent(funky) {
  45. var oldonload=window.onload;
  46. if (typeof(oldonload)!='function') window.onload=funky;
  47. else window.onload=function() {
  48. if (oldonload) oldonload();
  49. funky();
  50. }
  51. }
  52.  
  53. addLoadEvent(fill_the_jar);
  54.  
  55. function fill_the_jar() {
  56. var i, dvs;
  57. div=document.createElement('div');
  58. dvs=div.style;
  59. dvs.position='fixed';
  60. dvs.left='0px';
  61. dvs.top='0px';
  62. dvs.width='1px';
  63. dvs.height='1px';
  64. document.body.appendChild(div);
  65. set_width();
  66. for (i=0; i<blobs; i++) {
  67. add_blob(i);
  68. jamjar(i);
  69. }
  70. }
  71.  
  72. function add_blob(ref) {
  73. var dv, sy;
  74. dv=document.createElement('div');
  75. sy=dv.style;
  76. sy.position='absolute';
  77. sy.textAlign='center';
  78. if (ie_version && ie_version<10) {
  79. sy.fontSize="10px";
  80. sy.width="100px";
  81. sy.height="100px";
  82. sy.paddingTop="40px";
  83. sy.color=colour;
  84. dv.appendChild(document.createTextNode(charc));
  85. }
  86. else if (ie_version) {
  87. sy.fontSize="1px";
  88. sy.width="0px";
  89. sy.height="0px";
  90. }
  91. else {
  92. dv.appendChild(document.createTextNode(charc));
  93. sy.color='rgba(0,0,0,0)';
  94. }
  95. ypos[ref]=Math.floor(shigh*Math.random());
  96. dy[ref]=(0.5+Math.random())*(Math.random()>.5?2:-2);
  97. xpos[ref]=Math.floor(swide*Math.random());
  98. dx[ref]=(0.5+Math.random())*(Math.random()>.5?2:-2);
  99. zpos[ref]=Math.random()*20;
  100. dz[ref]=(0.5+Math.random())*(Math.random()>.5?.5:-.5);
  101. blob[ref]=dv;
  102. div.appendChild(blob[ref]);
  103. set_blob(ref);
  104. }
  105.  
  106. function rejig(ref, xy) {
  107. if (xy=='y') {
  108. dx[ref]=(0.5+Math.random())*sign(dx[ref]);
  109. dy[ref]=(0.5+Math.random())*-sign(dy[ref]);
  110. }
  111. else {
  112. dx[ref]=(0.5+Math.random())*-sign(dx[ref]);
  113. dy[ref]=(0.5+Math.random())*sign(dy[ref]);
  114. }
  115. }
  116.  
  117. function sign(a) {
  118. if (a<0) return (-2);
  119. else if (a>0) return (2);
  120. else return (0);
  121. }
  122.  
  123. function set_blob(ref) {
  124. var sy;
  125. sy=blob[ref].style;
  126. sy.top=ypos[ref]+'px';
  127. sy.left=xpos[ref]+'px';
  128. if (ie_version && ie_version<10) {
  129. sy.filter="glow(color="+colour+",strength="+zpos[ref]+")";
  130. sy.fontSize=30-zpos[ref]+"px";
  131. }
  132. else if (ie_version) {
  133. sy.boxShadow="0px 0px 40px "+zpos[ref]+"px "+colour;
  134. }
  135. else {
  136. sy.textShadow=colour+' 0px 0px '+zpos[ref]+'px';
  137. sy.fontSize=40+zpos[ref]+'px';
  138. }
  139. }
  140.  
  141. function jamjar(ref) {
  142. if (ypos[ref]+dy[ref]<-50 || ypos[ref]+dy[ref]>shigh) rejig(ref, 'y');
  143. ypos[ref]+=dy[ref];
  144. if (xpos[ref]+dx[ref]<-50 || xpos[ref]+dx[ref]>swide) rejig(ref, 'x');
  145. xpos[ref]+=dx[ref];
  146. if (zpos[ref]+dz[ref]<0 || zpos[ref]+dz[ref]>20) dz[ref]=-dz[ref];
  147. zpos[ref]+=dz[ref];
  148. set_blob(ref);
  149. setTimeout("jamjar("+ref+")", speed);
  150. }
  151.  
  152. window.onresize=set_width;
  153. function set_width() {
  154. var sw_min=999999;
  155. var sh_min=999999;
  156. if (document.documentElement && document.documentElement.clientWidth) {
  157. if (document.documentElement.clientWidth>0) sw_min=document.documentElement.clientWidth;
  158. if (document.documentElement.clientHeight>0) sh_min=document.documentElement.clientHeight;
  159. }
  160. if (typeof(self.innerWidth)!="undefined" && self.innerWidth) {
  161. if (self.innerWidth>0 && self.innerWidth<sw_min) sw_min=self.innerWidth;
  162. if (self.innerHeight>0 && self.innerHeight<sh_min) sh_min=self.innerHeight;
  163. }
  164. if (document.body.clientWidth) {
  165. if (document.body.clientWidth>0 && document.body.clientWidth<sw_min) sw_min=document.body.clientWidth;
  166. if (document.body.clientHeight>0 && document.body.clientHeight<sh_min) sh_min=document.body.clientHeight;
  167. }
  168. if (sw_min==999999 || sh_min==999999) {
  169. sw_min=800;
  170. sh_min=600;
  171. }
  172. swide=sw_min;
  173. shigh=sh_min;
  174. }
  175. // ]]>
  176. </script>{/block:iflights}
  177.  
  178. <title>{Title}</title>
  179.  
  180. <link rel="shortcut icon" href="{Favicon}">
  181. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  182. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  183.  
  184. <!--Default Variables-->
  185.  
  186. <meta name="color:background" content="#ffffff"/>
  187. <meta name="color:text" content="#2b2b2b"/>
  188. <meta name="color:lights" content="#2b2b2b"/>
  189. <meta name="color:link" content="#2b2b2b"/>
  190. <meta name="color:linkglow" content="#ffffff"/>
  191. <meta name="color:link hover" content="#949494"/>
  192. <meta name="color:blockquote" content="#dadada"/>
  193.  
  194. <meta name="image:sidebar" content=""/>
  195. <meta name="image:background" content=""/>
  196.  
  197. <meta name="image:home" content="/"/>
  198. <meta name="image:ask" content="/ask"/>
  199. <meta name="text:home" content=""/>
  200. <meta name="text:ask" content=""/>
  201. <meta name="image:link 1" content=""/>
  202. <meta name="text:link 1 URL" content=""/>
  203. <meta name="image:link 2" content=""/>
  204. <meta name="text:link 2 URL" content=""/>
  205.  
  206. <meta name="text:title" content=""/>
  207. <meta name="text:header" content=""/>
  208.  
  209. <meta name="if:desc" content="" />
  210. <meta name="if:permalink" content="" />
  211. <meta name="if:linkglow" content="" />
  212. <meta name="if:lights" content="" />
  213. <meta name="if:title" content="" />
  214.  
  215.  
  216.  
  217. <!--eeeeeeeee -->
  218.  
  219.  
  220. <style type="text/css">
  221.  
  222. #s-m-t-tooltip{
  223. position:absolute;
  224. margin-top: 15px;
  225. z-index:9999;
  226. background:{color:background};
  227. }
  228.  
  229. /*basics*/
  230.  
  231. blockquote {
  232. padding-left:12px;
  233. border-left:1px solid {color:blockquote};
  234. margin-left:8px;
  235. }
  236.  
  237. ul {
  238. list-style:none;
  239. text-align:left;
  240. padding-left:0;
  241. }
  242.  
  243. li {
  244. position:relative;
  245. padding-left:30px;
  246. }
  247.  
  248. ul li:before {
  249. position:absolute;
  250. left:15px;
  251. vertical-align:baseline!important;
  252. content:'›';
  253. }
  254.  
  255. body {
  256. background:{color:background};
  257. background: {color:Background} url('{image:Background}') repeat;
  258. color:{color:text};
  259. font-family:arial;
  260. font-size:18px;
  261. margin:0;
  262. text-align:justify;
  263. line-height:22px;
  264. }
  265.  
  266. a {
  267. color:{color:link};
  268. -moz-transition-duration:0.4s;
  269. -webkit-transition-duration:0.4s;
  270. -o-transition-duration:0.4s;
  271. text-decoration:none;
  272. {block:iflinkglow}text-shadow:1px 1px 5px {color:linkglow};{block:iflinkglow}
  273. }
  274.  
  275. a:hover {
  276. color:{color:link hover};
  277. -moz-transition-duration:0.4s;
  278. -webkit-transition-duration:0.4s;
  279. -o-transition-duration:0.4s;
  280. }
  281.  
  282. img {
  283. opacity:1;
  284. border:none;
  285. text-decoration:none;
  286. }
  287.  
  288. small {
  289. font-size:15px;
  290. }
  291.  
  292. big {
  293. font-size:18px;
  294. }
  295.  
  296. #title {font-size:25px;
  297. line-height:18px;
  298. margin-bottom:10px;
  299. font-weight:bold;
  300. text-transform:none;
  301. text-align:left;
  302. }
  303.  
  304. /*sidebar*/
  305.  
  306. #sidebar {
  307. text-align:center;
  308. position:center;
  309. margin-left:-0px;
  310. margin-top:36px;
  311. width:330px;
  312. }
  313.  
  314. #sidebar img {
  315. width:{text:header};
  316. }
  317.  
  318. #links {
  319. font-size:18px;
  320. margin-top:10px;
  321. text-align:center;
  322. font-weight: bold;
  323. }
  324.  
  325. #links img {
  326. width: auto;
  327. border-radius:0px;
  328. }
  329.  
  330. #links a {
  331. margin-bottom:0px;
  332. -moz-transition-duration:0.4s;
  333. -webkit-transition-duration:0.4s;
  334. -o-transition-duration:0.4s;
  335. }
  336.  
  337. #description {
  338. margin-top:10px;
  339. text-align:center;
  340. }
  341.  
  342. /*pagination*/
  343.  
  344. #pagination {
  345. text-transform:lowercase;
  346. text-align:center;
  347. font-size:17px;
  348. margin-bottom:120px;
  349. }
  350.  
  351. #pagination a {
  352. padding:0 3px;
  353. }
  354.  
  355. /*container*/
  356.  
  357. #con {
  358. left:50%;
  359. margin-left:-140px;
  360. position:absolute;
  361. }
  362.  
  363. /*posts*/
  364.  
  365. #entries {
  366. margin-top:95px;
  367. width:500px;
  368. }
  369.  
  370. #posts {
  371. width:470px;
  372. {block:IndexPage}
  373. margin-bottom:80px;
  374. {/block:IndexPage}
  375. {block:PermalinkPage}
  376. margin-bottom:50px;
  377. {/block:PermalinkPage}
  378. }
  379.  
  380. #posts img {
  381. max-width:470px;
  382. }
  383.  
  384. #posts img, #posts li, #posts blockquote {
  385. max-width: 90%;
  386. }
  387.  
  388. .caption {
  389. width:100%;
  390. margin-top:13px;
  391. margin-bottom:12px;
  392. }
  393.  
  394. a.tumblr_blog {
  395. font-weight:bold;
  396. -moz-transition-duration:0.4s;
  397. -webkit-transition-duration:0.4s;
  398. -o-transition-duration:0.4s;
  399. }
  400.  
  401. /*quote*/
  402.  
  403. #titlequote {
  404. text-align:left;
  405. font-size:18px;
  406. line-height:17px;
  407. font-weight:bold;
  408. }
  409.  
  410. #source {
  411. margin-top:0px;
  412. margin-bottom:11px;
  413. margin-left:0px;
  414. }
  415.  
  416. /*asks*/
  417.  
  418. .q {
  419. line-height:17px;
  420. font-size:17px;
  421. }
  422.  
  423. .as {
  424. font-weight:normal;
  425. }
  426.  
  427. .a {
  428. margin-top:13px;
  429. }
  430.  
  431. /*chat*/
  432.  
  433. .chat ol {
  434. padding:0;
  435. list-style:none;
  436. }
  437.  
  438. .line {
  439. padding:0px 0;
  440. }
  441.  
  442. .label {
  443. font-weight:bold;
  444. }
  445.  
  446. /*permalink and notes*/
  447.  
  448. #permalink {
  449. font-size:22px;
  450. text-align:left;
  451. margin-top:9px;
  452. text-transform:lowercase;
  453. }
  454.  
  455. #permalink a {
  456. margin-right:0px;
  457. }
  458.  
  459. .tags {
  460. font-size:17px;
  461. text-transform:none;
  462. }
  463.  
  464. .pagenotes {
  465. {block:IndexPage}
  466. display: none!important;
  467. {/block:IndexPage}
  468. width:500px;
  469. text-align:left;
  470. }
  471.  
  472. .pagenotes img {
  473. display:none!important;
  474. }
  475.  
  476. .pagenotes li {
  477. list-style-type:none;
  478. padding:2px 0px;
  479. text-align:left;
  480. margin:0 0 0 -40px;
  481. }
  482.  
  483. {CustomCSS}
  484.  
  485. </style>
  486.  
  487. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  488. <script src ="//static.tumblr.com/fwgzvyf/l6jnyutne/shythemes.vr.js"></script>
  489.  
  490. {block:iftitle}<script type="text/javascript">
  491. var rev = "fwd";
  492. function titlebar(val)
  493. {
  494. var msg = "TITLE HERE";
  495. var res = " ";
  496. var speed = 100;
  497. var pos = val;
  498. msg = "{text:title}";
  499. var le = msg.length;
  500. if(rev == "fwd"){
  501. if(pos < le){
  502. pos = pos+1;
  503. scroll = msg.substr(0,pos);
  504. document.title = scroll;
  505. timer = window.setTimeout("titlebar("+pos+")",speed);}
  506. else{
  507. rev = "bwd";
  508. timer = window.setTimeout("titlebar("+pos+")",speed);}}
  509. else{
  510. if(pos > 0){
  511. pos = pos-1;
  512. var ale = le-pos;
  513. scrol = msg.substr(ale,le);
  514. document.title = scrol;
  515. timer = window.setTimeout("titlebar("+pos+")",speed);}
  516. else{
  517. rev = "fwd";
  518. timer = window.setTimeout("titlebar("+pos+")",speed);
  519. }}}
  520. titlebar(0);
  521. </script>{/block:iftitle}</head>
  522.  
  523. <body>
  524.  
  525. <div id="con">
  526.  
  527. <div id="sidebar">
  528.  
  529.  
  530. <div id="sidebar img"><img src="{image:sidebar}"></div>
  531.  
  532.  
  533. {block:ifdesc}<div id="description">{Description}</div>{/block:ifdesc}
  534. <form action="/search" method="get">
  535. <input type="text" name="q" value="{SearchQuery}"/>
  536. <input type="submit" value="Search"/>
  537. </form>
  538. <div id="links">
  539. <a href="{text:home}" title="{Text:home}"><img src="{image:home}"></a>
  540. <a href="{text:ask}" title="{Text:ask}"><img src="{image:ask}"></a>
  541. <a href="{text:link 1 URL}" title="{Text:link 1}"><img src="{image:link 1}"></a>
  542. <a href="{text:link 2 URL}" title="{Text:link 2}"><img src="{image:link 2}"></a>
  543.  
  544. </div>
  545.  
  546. </div>
  547.  
  548. <div id="entries">
  549.  
  550.  
  551. {block:Posts}
  552.  
  553. <div id="posts">
  554.  
  555. {block:Quote}
  556. <div id="titlequote"><i class="fa fa-quote-left"></i>&nbsp; {Quote} &nbsp;<i class="fa fa-quote-right"></i></div>
  557. {block:Source}<div id="source">&mdash; {Source}</div>{/block:Source}
  558. {/block:Quote}
  559.  
  560. {block:Text}
  561. {block:Title}
  562. <div id="title">{Title}</div>{/block:Title}
  563. {Body}
  564. {/block:Text}
  565.  
  566. {block:link}
  567. <div id="title"><a href="{URL}"><i class="fa fa-link"></i>&nbsp; {Name}</a></div>
  568. {block:Description}{Description}{/block:Description}
  569. {/block:link}
  570.  
  571. {block:Chat}
  572. {block:Title}
  573. <div id="title">{Title}</div>{/block:Title}
  574. {/block:Text}
  575. {block:lines}
  576. {block:label}
  577. <br><b>{label}</b>
  578. {/block:label}
  579. {line}
  580. {/block:lines}
  581. {/block:Chat}
  582.  
  583. {block:Photo}
  584. {linkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}"/>{linkCloseTag}
  585. {/block:Photo}
  586.  
  587. {block:Photoset}
  588. {Photoset-500}
  589. {/block:Photoset}
  590.  
  591. <div class="video">{Video-500}</div>
  592.  
  593. {block:Audio}
  594. {block:AudioEmbed}{AudioEmbed-500}{/block:AudioEmbed}
  595. {/block:Audio}
  596.  
  597. {block:Answer}
  598. <div class="q">
  599. <div class="as"> <b><big>{Asker} asked:</big></b>
  600. {Question}</div></div>
  601. <div class="a">{Answer}</div>
  602. {/block:Answer}
  603.  
  604. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  605.  
  606. <!-- {block:ContentSource} {SourceURL} {/block:ContentSource} {block:RebloggedFrom} {ReblogRootURL} {ReblogParentURL} {/block:RebloggedFrom} -->
  607.  
  608. {block:Date}
  609. <div id="permalink">
  610. {block:ifpermalink}<a href="{Permalink}" ><b>{ShortMonth} {DayOfMonthWithSuffix}</b></a>
  611. {block:NoteCount} with <a href="{Permalink}">{NoteCountWithLabel}</a>{/block:NoteCount}<div style="float:right;">{block:RebloggedFrom}<a href="{ReblogParentURL}" title="{ReblogParentName}"></a>{block:ContentSource} <a href="{ReblogRootURL}" title="{ReblogRootName}"></a>{/block:ContentSource}{/block:RebloggedFrom}</div>{/block:ifpermalink}
  612. {block:Date}
  613. {block:HasTags}<div class="tags">{block:Tags}<a href="{TagUrl}">#{Tag}</a>&nbsp;&nbsp;{/block:Tags}</div>{/block:HasTags}
  614.  
  615. </div>
  616.  
  617. {/block:Date}
  618.  
  619. </div>
  620.  
  621. {block:PostNotes}
  622. <div class="pagenotes">
  623. {PostNotes}
  624. </div>
  625. {/block:PostNotes}
  626.  
  627. {/block:Posts}
  628.  
  629. <div id="pagination">
  630. {block:Pagination}
  631. {block:PreviousPage}
  632. <a href="{PreviousPage}">previous page</a>
  633. {/block:PreviousPage}
  634.  
  635.  
  636. {block:NextPage}
  637. <a href="{NextPage}">next page</a>
  638. {/block:NextPage}
  639. {/block:Pagination}
  640. </div>
  641.  
  642. </div>
  643.  
  644. </div>
  645.  
  646. <div style="position:fixed;bottom:10px;opacity:1;right:20px;padding:px;font-size:19px;font-weight:normal;"><a title="theme by abby
  647. ヾ(@⌒ー⌒@)ノ" href="https://yummiland.tumblr.com/"><img src="https://78.media.tumblr.com/tumblr_m1k63i5HZR1qb1380.gif"></a></div></body></html></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement