Beautifully-Flawless

Theme 25: Felicity

Sep 7th, 2013
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.52 KB | None | 0 0
  1. <!----
  2. THEME 25: Felicity
  3. By:Beautifully Flawless
  4. PLEASE KEEP ALL CREDITS! THANK YOU!
  5. PLEASE KEEP ALL CREDITS! THANK YOU!
  6. PLEASE KEEP ALL CREDITS! THANK YOU!
  7. ENJOY:D
  8. ----->
  9.  
  10. <html>
  11. <head>
  12.  
  13. <script type="text/javascript">
  14. // <![CDATA[
  15. var bgcolour="{color:Header Color 1}"; // background colour
  16. var fgcolour="{color:Header Color 2}"; // foreground colour
  17. var speed=100; // speed of bubbling, lower is faster
  18. var shades=10; // number of shades of bubble
  19.  
  20. /****************************
  21. * Bubbling Text Effect *
  22. *(c) 2003-6 mf2fm web-design*
  23. * http://www.mf2fm.com/rv *
  24. * DON'T EDIT BELOW THIS BOX *
  25. ****************************/
  26. var bubbcol=new Array();
  27. var bubbler, bubbtxt;
  28. var bubbchr=new Array();
  29. window.onload=function() { if (document.getElementById) {
  30. for (bubbler=0; bubbler<=shades; bubbler++) {
  31. bubbtxt="#";
  32. for (var i=1; i<6; i+=2) {
  33. var bg=parseInt(bgcolour.substring(i,i+2),16);
  34. bubbtxt+=dechex(Math.floor(bg+(parseInt(fgcolour.substring(i,i+2),16)-bg)*(bubbler/shades)));
  35. }
  36. bubbcol[bubbler+1]=bubbtxt;
  37. }
  38. bubbler=document.getElementById("bubble");
  39. bubbtxt=bubbler.firstChild.nodeValue;
  40. while (bubbler.childNodes.length) bubbler.removeChild(bubbler.childNodes[0]);
  41. for (var i=0; i<bubbtxt.length; i++) {
  42. var bubbi=document.createElement("span");
  43. bubbi.setAttribute("id", "bubb"+i);
  44. bubbi.appendChild(document.createTextNode(bubbtxt.charAt(i)));
  45. bubbler.appendChild(bubbi);
  46. }
  47. bubbler=setInterval ("bubbling()", speed);
  48. }}
  49.  
  50. function dechex(dec) {
  51. var hex=dec.toString(16);
  52. if (dec<16) return "0"+hex;
  53. else return hex;
  54. }
  55.  
  56. function bubbling() {
  57. for (var i=0; i<bubbtxt.length; i++) {
  58. var bubbme=document.getElementById("bubb"+i);
  59. if (bubbchr[i]) {
  60. bubbme.style.color=bubbcol[bubbchr[i]];
  61. bubbchr[i]=(bubbchr[i]+1)%bubbcol.length;
  62. }
  63. else if (Math.random()<0.75/bubbchr.length) bubbchr[i]=1;
  64. }
  65. }
  66. // ]]>
  67. </script>
  68.  
  69. <script type="text/javascript"
  70. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  71.  
  72. <title>{Title}</title>
  73. <link rel="shortcut icon" href="{favicon}">
  74. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  75. {block:Description}<meta name="description"content="{MetaDescription}"/>{/block:Description}
  76.  
  77. <!--Variables-->
  78.  
  79. <meta name="color:background" content="#fff" />
  80. <meta name="color:text" content="#000" />
  81. <meta name="color:Links" content="#535250" />
  82. <meta name="color:link hover" content="#999" />
  83. <meta name="color:Posts BG" content="#fff"/>
  84. <meta name="color:Posts Border" content="#ddd" />
  85. <meta name="color:Permalink BG" content="#fff" />
  86. <meta name="color:Permalink Text" content="#000" />
  87. <meta name="color:Navigation BG" content="#fff" />
  88. <meta name="color:Navigation Border" content="#888" />
  89. <meta name="color:Navigation Text" content="#000" />
  90. <meta name="color:Navigation Hover BG" content="#ddd" />
  91. <meta name="color:Navigation Hover Text" content="#000" />
  92. <meta name="color:Navigation Hover Shadow" content="#888" />
  93. <meta name="color:Banner" content="#000" />
  94. <meta name="color:Banner Shadow" content="#ddd" />
  95. <meta name="color:Header Color 1" content="#d649cd"/>
  96. <meta name="color:Header Color 2" content="#deccdd"/>
  97. <meta name="color:Sidebar Border" content="#DECCDD"/>
  98. <meta name="color:HOVER BG" content="#fff"/>
  99. <meta name="color:HOVER Border" content="#BC12B1"/>
  100. <meta name="color:HOVER Text Shadow" content="#BC12B1"/>
  101. <meta name="color:HOVER Box Shadow" content="#D079CA"/>
  102. <meta name="color:HOVER Sidebar BG" content="#fff"/>
  103. <meta name="color:HOVER Sidebar Shadow" content="#ddd"/>
  104. <meta name="color:HOVER Sidebar Border" content="#ddd"/>
  105. <meta name="color:Blogroll BG" content="#fff"/>
  106. <meta name="color:Blogroll Border" content="#DDA2DA"/>
  107. <meta name="color:Blogroll Box Shadow" content="#888"/>
  108.  
  109. <meta name="image:sidebar" content="http://static.tumblr.com/gdh5wux/ZY5m856sw/females_detail_face_flow_flowing_fragment-fa233d9a64677f42ea481464d87868c7_h.jpg"/>
  110. <meta name="image:background" content="" />
  111.  
  112. <meta name="text:STATS 1" content="INSERT STAT HERE" />
  113. <meta name="text:STATS 2" content="INSERT STAT HERE" />
  114. <meta name="text:STATS 3" content="INSERT STAT HERE" />
  115. <meta name="text:STATS 4" content="INSERT STAT HERE" />
  116.  
  117. <!--Variables-->
  118. <style type="text/css">
  119.  
  120. ::-webkit-scrollbar {width: 9px; height: 4px;background:transparent;}
  121. ::-webkit-scrollbar-thumb { background-color:#d079ca;-webkit-box-shadow:0 0 6px #000;-webkit-border-radius: 10px;
  122. border-radius: 10px;
  123. }
  124.  
  125. #tumblr_controls{
  126. position:fixed !important;
  127. -webkit-filter: invert(100%);
  128. }
  129.  
  130.  
  131. @font-face { font-family: "tinytots";src: url('http://static.tumblr.com/rmj06l2/Usellxb4i/tinytots.ttf'); }
  132.  
  133. @font-face{font-family:"silkscreen";src:url('http://static.tumblr.com/1kdckk4/9yjlolf0w/slkscr.ttf');}
  134.  
  135. @font-face{font-family:"Tall";src:url('http://static.tumblr.com/w1f0ilq/4m9lyy51c/tall_film.ttf');}
  136.  
  137. @font-face{font-family:"oregano";src:url('http://static.tumblr.com/gdh5wux/mmimerymw/oregano-regular.ttf');}
  138.  
  139.  
  140.  
  141. body {
  142. margin: 0px;
  143. background-color:{color:background};
  144. background-image:url({image:Background});
  145. background-attachment:fixed;
  146. background-repeat:repeat;
  147. background-position:center;
  148. }
  149.  
  150. body, div, p, textarea, submit, input {
  151. font-family:"tinytots";
  152. font-size:8px;
  153. line-height:12px;
  154. color:{color:Text};
  155. text-transform:uppercase;
  156. }
  157.  
  158. a:link, a:active, a:visited{
  159. color:{color:Links};
  160. text-decoration: none;
  161. -webkit-transition: color 0.5s ease-out;
  162. -moz-transition: color 0.5s ease-out;
  163. transition: color 0.5s ease-out;
  164. }
  165.  
  166. a:hover{
  167. color:{color:Link Hover};
  168. -webkit-transition: color 0.5s ease-out;
  169. -moz-transition: color 0.5s ease-out;
  170. }
  171.  
  172. div#posts {
  173. float:left;
  174. width:850px;
  175. z-index:99;
  176. margin-left:450px;
  177. }
  178.  
  179. .entry {
  180. margin:3px;
  181. float:left;
  182. padding:6px;
  183. border:1px solid {color:Posts Border};
  184. background-color:{color:Posts BG};
  185. {block:IndexPage}
  186. width:320px;
  187. {/block:IndexPage}
  188. {block:PermalinkPage}
  189. width:500px;
  190. {/block:PermalinkPage}
  191. -webkit-transition: opacity 0.9s linear;
  192. -webkit-transition: all 0.9s ease-in-out;
  193. -moz-transition: all 0.9s ease-in-out;
  194. -o-transition: all 0.9s ease-in-out;
  195. }
  196.  
  197. .entry:hover #permalink{
  198. opacity:0.8;
  199. top:6px;
  200. -webkit-transition: opacity 0.3s ease-out;
  201. -webkit-transition: all 0.3s ease-out;
  202. -moz-transition: all 0.3s ease-out;
  203. transition: all 0.3s ease-out;
  204. }
  205.  
  206. #permalink{
  207. position:absolute;
  208. background-color:{color:Permalink BG};
  209. border:1px solid #ddd;
  210. min-width:150px;
  211. height:15px;
  212. top:-17px;
  213. left:10px;
  214. overflow:hidden;
  215. padding:5px;
  216. opacity:0.0;
  217. font-family:calibri;
  218. font-size:8px;
  219. color:{color:Permalink Text};
  220. line-height:15px;
  221. text-align:center;
  222. letter-spacing:1px;
  223. text-transform:uppercase;
  224. border-radius:3px;
  225. -webkit-transition: opacity 0.6s ease-out;
  226. -webkit-transition: all 0.6s ease-out;
  227. -moz-transition: all 0.6s ease-out;
  228. transition: all 0.6s ease-out;
  229. }
  230.  
  231. #info{
  232. font-family:'silkscreen';
  233. color:#888;
  234. font-size:8px;
  235. text-align:right;
  236. line-height:15px;
  237. margin-top:1px;
  238. border-top:1px dotted #aaa;
  239. text-transform:uppercase;
  240. }
  241.  
  242. #infscr-loading{
  243. bottom: -70px;
  244. position: absolute;
  245. left: 50%;
  246. margin-left:-8px;
  247. width:16px;
  248. height:11px;
  249. overflow:hidden;
  250. margin-bottom: 50px;
  251. }
  252.  
  253. @font-face { font-family: "lily"; src: url('http://static.tumblr.com/gdh5wux/jMNmoz1x8/lilyscript.ttf'); }
  254.  
  255. .title{
  256. font-family:'lily';
  257. text-transform:none;
  258. font-size:25px;
  259. line-height:30px;
  260. color:#333;
  261. text-align:center;
  262. }
  263.  
  264. .quote{
  265. font-family:'oregano';
  266. font-size:15px;
  267. text-transform:none;
  268. line-height:25px;
  269. text-align:right;
  270. color:#aaa;
  271. }
  272.  
  273. asker{
  274. font-family:'oregano';
  275. font-size:10px;
  276. text-transform:uppercase;
  277. color:#888;
  278. }
  279.  
  280. .askerimg img{
  281. width:40px;
  282. align:left;
  283. float:left;
  284. padding:3px;
  285. background:#ddd;
  286. margin-right:6px;
  287. border-radius:30px;
  288. box-shadow:0px 1px 1px #888;
  289. }
  290.  
  291. #ask{
  292. padding:3px;
  293. font-family:'silkscreen';
  294. font-size:8px;
  295. text-transform:uppercase;
  296. color:#999;
  297. }
  298.  
  299. #askbox{
  300. border:3px solid #ddd;
  301. margin-top:5px;
  302. overflow:hidden;
  303. padding:4px;
  304. box-shadow: 1px 1px 1px #000;
  305. }
  306.  
  307. blockquote{
  308. padding:0px 0px 2px 5px;
  309. margin:0px 0px 2px 10px;
  310. border-left: 7px solid #999999;
  311. }
  312.  
  313. ul, ol, li{list-style:circle; margin:5px; margin-left:10px; padding-left:3px;}
  314. .user_1 .label, .user_4 .label, .user_7 .label, .user_2 .label, .user_5 .label, .user_8 .label, .user_3 .label, .user_6 .label,
  315. .user_9 .label {color:text};}
  316.  
  317. .notes img{width:10px; position:relative; top:3px;}
  318.  
  319. #sidebar{
  320. width:400px;
  321. height:350px;
  322. position:fixed;
  323. left:15px;
  324. top:0px;
  325. border-radius:0px;
  326. border:2px inset {color:Sidebar Border};
  327. }
  328.  
  329. #sidebar img{width:100%; height:100%;}
  330.  
  331. #contain{
  332. color:#000;
  333. top:350px;
  334. left:45px;
  335. width:200px;
  336. position:fixed;
  337. text-align:left;
  338. border-radius:15px 0px 0px 15px;
  339. -webkit-transition: opacity 0.9s linear;
  340. -webkit-transition: all 0.9s ease-in-out;
  341. -moz-transition: all 0.9s ease-in-out;
  342. -o-transition: all 0.9s ease-in-out;
  343. opacity:1;}
  344.  
  345. #contain:hover{top:657px;opacity:1;}
  346.  
  347. @font-face{font-family:"quicksand";src:url('http://static.tumblr.com/fxpo5zq/ad0m5vybr/quicksand_light.otf');}
  348.  
  349. #containtab{
  350. width:400px;
  351. height:30px;
  352. opacity:1;
  353. color:#000;
  354. font-size:25px;
  355. line-height:10px;
  356. margin-left:-30px;
  357. text-align:center;
  358. margin-bottom:-105px;
  359. font-family:'quicksand';
  360. border-radius:0px 0px 20px 20px;
  361. background-color:{color:HOVER BG};
  362. border:2px inset {color:HOVER Border};
  363. text-shadow:1px 1px 5px {color:HOVER Text Shadow};
  364. box-shadow:2px 1px 10px {color:HOVER Box Shadow};
  365. }
  366.  
  367. #box{
  368. width:400px;
  369. height:300px;
  370. color:black;
  371. float:left;
  372. z-index:99999;
  373. overflow:hidden;
  374. margin-top:-230px;
  375. margin-left:-30px;
  376. background-color:{color:HOVER Sidebar BG};
  377. border:1px solid {color:HOVER Sidebar Border};
  378. box-shadow: 0 0 20px {color:HOVER Sidebar Shadow};}
  379.  
  380.  
  381. #name{
  382. color:#000;
  383. font-size:25px;
  384. line-height:25px;
  385. text-transform:none;
  386. font-family:'Bilbo Swash';
  387. border-bottom:1px solid #888;
  388. }
  389.  
  390. @font-face { font-family: "Bilbo Swash"; src: url('http://static.tumblr.com/gdh5wux/JN4moz1dn/bilbo.ttf'); }
  391.  
  392. .heart {
  393. display:block;
  394. font-size:8px;
  395. font-family:'tinytots';
  396. color:#000;
  397. line-height:10px;
  398. text-align:center;
  399. text-transform:uppercase;
  400. vertical-align:middle;
  401. -webkit-transition-duration:.50s;
  402. background: url('http://lh5.ggpht.com/_njDosNyhJmA/TOnR2kjZlqI/AAAAAAAACNk/FnpKEFuCm5c/s400/coracaoroxo-cahveiga.png') no-repeat left;
  403. padding-left:20px;
  404. padding-bottom:2px;
  405. }
  406.  
  407. div.navigate a{
  408. height:20px;
  409. width:70px;
  410. border-radius:5px;
  411. font-family:tinytots;
  412. font-size:8px;
  413. text-transform:uppercase;
  414. margin:3px;
  415. margin-left:10px;
  416. float:left;
  417. text-align:center;
  418. line-height:20px;
  419. color:{color:Navigation Text};
  420. background-color:{color:Navigation BG};
  421. border:1px dotted {color:Navigation Border};
  422. -webkit-transition: all 1s ease-in;
  423. -moz-transition: all 1s ease-in;
  424. transition: all 1s ease-in;
  425. }
  426.  
  427.  
  428. div.navigate a:hover{
  429. background-color:{color:Navigation Hover BG};
  430. color:{color:Navigation Hover Text};
  431. text-shadow:1px 0px 1px {color:Navigation Hover Shadow};
  432. -webkit-transition: all 1s ease-out;
  433. -moz-transition: all 1s ease-out;
  434. transition: all 1s ease-out;
  435. }
  436.  
  437. #banner1{
  438. position:fixed;
  439. font-family:"tangerine";
  440. font-size:80px;
  441. line-height:60px;
  442. text-transform:none;
  443. top:10px;
  444. left:20px;
  445. text-align:center;
  446. letter-spacing:1px;
  447. color:{color:Banner};
  448. text-shadow:1px 1px 1px {color:Banner Shadow};
  449. }
  450.  
  451. #blogroll{
  452. position:fixed;
  453. width:420px;
  454. height:60px;
  455. margin-left:-10px;
  456. margin-top:-60px;
  457. background-color:{color:Blogroll BG};
  458. border:1px solid {color:Blogroll Border};
  459. box-shadow:2px 2px 10px {color:Blogroll Box Shadow};
  460. }
  461.  
  462. {CustomCSS}
  463. </style>
  464. <body>
  465.  
  466. <div id="contain">
  467. <div id="containtab"><br>HOVER</div>
  468. <div id="box">
  469. <div id="name">About the Blogette</div>
  470. {description}
  471. <div id="name">Stats</div>
  472. <div class="heart">{text:STATS 1}</div>
  473. <div class="heart">{text:STATS 2}</div>
  474. <div class="heart">{text:STATS 3}</div>
  475. <div class="heart">{text:STATS 4}</div>
  476. <div id="name">Navigation</div>
  477. <div class="navigate">
  478. <center>
  479. <a href="/">Home</a>
  480. <a href="/ask">Inbox</a>
  481. <a href="/submit">Submit</a>
  482. <a href=".faves">Favs</a>
  483. <a href="/links">Links</a>
  484. <a href="http://beautifully-flawless.tumblr.com/">Credit</a>
  485. </center>
  486. </div>
  487.  
  488. </div>
  489. </div>
  490.  
  491.  
  492. <div id="sidebar">
  493. <img src="{image:sidebar}">
  494. <div id="blogroll">
  495. <marquee behavior="scroll" scrollamount="5" direction="left" onmouseover="this.stop();" onmouseout="this.start();">{block:Following}{block:Followed}<a target='_blank' href='{FollowedURL}'><img border='0' src='{FollowedPortraitURL-96}' width="60px" height="60px" />{/block:Followed}{/block:Following}</marquee>
  496. </div>
  497. </div>
  498.  
  499. <div id="banner1"><span id="bubble">{title}</span></div>
  500.  
  501.  
  502. <img style="position:fixed;right:0px;bottom:0px;height:260px;"src="http://static.tumblr.com/gdh5wux/1Mnm852h5/07.gif">
  503.  
  504. <div id="posts">
  505. {block:Posts}
  506. <div class="entry">
  507.  
  508. {block:Text}
  509. {block:Title}
  510. <div class="title">{Title}</div>
  511. {/block:Title}
  512. <span class="entrytext">{Body}</span>
  513. <div id="info">
  514. <a href="{Permalink}"><a href="{permalink}">{NoteCountWithLabel}</a> . <a href="{ReblogURL}" target="_blank"> reblog</a>&nbsp;
  515. </div>
  516. {/block:Text}
  517.  
  518. {block:Link}
  519. <div class="title"><a href="{URL}">{Name}</a></div>
  520. {block:Description}
  521. {Description}
  522. {/block:Description}
  523. <div id="info">
  524. <a href="{Permalink}"><a href="{permalink}">{NoteCountWithLabel}</a> . <a href="{ReblogURL}" target="_blank"> reblog</a>&nbsp;
  525. </div>
  526. {block:Link}
  527.  
  528. {block:Photo}
  529. {block:IndexPage}
  530. <div id="permalink">
  531. <a href="{Permalink}"><a href="{permalink}">{NoteCountWithLabel}</a> / <a href="{ReblogURL}" target="_blank"> reblog</a>&nbsp;
  532. </div>
  533. {LinkOpenTag}
  534. <div class="photo"><a href="{permalink}">
  535. <img class="photo"src="{PhotoURL-HighRes}"alt="{PhotoAlt}"width="100%"/></a></div>
  536. {LinkCloseTag}
  537. {/block:IndexPage}
  538. {block:PermalinkPage}
  539. {LinkOpenTag}
  540. <a href="{permalink}"><img class="photo" src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="500"/></a>
  541. {LinkCloseTag}
  542. {/block:PermalinkPage}
  543. {/block:Photo}
  544.  
  545. {block:Photoset}
  546. {block:IndexPage}
  547. <div id="permalink">
  548. <a href="{Permalink}"><a href="{permalink}">{NoteCountWithLabel}</a> / <a href="{ReblogURL}" target="_blank"> reblog</a>&nbsp;
  549. </div>
  550. {Photoset-250}
  551. {/block:IndexPage}
  552. {block:PermalinkPage}
  553. <center>
  554. {Photoset-500}
  555. </center>
  556. {/block:PermalinkPage}
  557. {/block:Photoset}
  558.  
  559. {block:Quote}
  560. {Quote}
  561. </span>
  562. {block:Source}
  563. <div class="quote">{Source}</div>
  564. {/block:Source}
  565. <div id="info">
  566. <a href="{Permalink}"><a href="{permalink}">{NoteCountWithLabel}</a> . <a href="{ReblogURL}" target="_blank"> reblog</a>&nbsp;
  567. </div>
  568. {/block:Quote}
  569.  
  570. {block:Chat}
  571. {block:Title}
  572. <span class="title">{Title}</span>
  573. {/block:Title}
  574. <ul class="chat">
  575. {block:Lines}
  576. <li class="user_{UserNumber}">
  577. {block:Label}
  578. <span class="label">{Label}</span>
  579. {/block:Label}
  580. {Line}
  581. </li>
  582. {/block:Lines}
  583. </ul>
  584. <div id="info">
  585. <a href="{Permalink}"><a href="{permalink}">{NoteCountWithLabel}</a> . <a href="{ReblogURL}" target="_blank"> reblog</a>&nbsp;
  586. </div>
  587. {/block:Chat}
  588.  
  589. {block:Audio}
  590. <center>
  591. {AudioPlayerWhite}
  592. </center>
  593. <div id="info">
  594. <a href="{Permalink}"><a href="{permalink}">{NoteCountWithLabel}</a> . <a href="{ReblogURL}" target="_blank"> reblog</a>&nbsp;
  595. </div>
  596. {/block:Audio}
  597.  
  598. {block:Video}
  599. {block:IndexPage}
  600. <center>
  601. {Video-250}
  602. </center>
  603. <div id="info">
  604. <a href="{Permalink}"><a href="{permalink}">{NoteCountWithLabel}</a> . <a href="{ReblogURL}" target="_blank"> reblog</a>&nbsp;
  605. </div>
  606. {/block:IndexPage}
  607. {block:PermalinkPage}
  608. <center>
  609. {Video-500}
  610. </center>
  611. {/block:PermalinkPage}
  612. {block:Video}
  613.  
  614. {block:Answer}
  615. <div id="askbox">
  616. <div class="askerimg"><img src="{AskerPortraitURL-40}"></div>
  617. <asker>{Asker}:</asker>
  618. <div id="ask">{Question}</div>
  619. </div>
  620. {Answer}
  621. <div id="info">
  622. <a href="{Permalink}"><a href="{permalink}">{NoteCountWithLabel}</a> . <a href="{ReblogURL}" target="_blank"> reblog</a>&nbsp;
  623. </div>
  624. {/block:Answer}
  625.  
  626. {block:PermalinkPage}
  627. <center>
  628. <br>
  629. {block:Caption}
  630. {Caption}
  631. {/block:Caption}
  632.  
  633. {block:ContentSource}<a href="{SourceURL}"> </a>{block:ContentSource}
  634.  
  635. {block:RebloggedFrom}
  636. <a href="{ReblogParentURL}"> </a>
  637. <a href="{ReblogRootURL}"> </a>
  638. {/block:RebloggedFrom}
  639.  
  640. {block:NoteCount}
  641. {NoteCountWithLabel}
  642. {/block:NoteCount}
  643.  
  644. {block:HasTags}
  645. &middot;{block:Tags}<a href="TagURL">#{Tag}</a>{/block:Tags}
  646. {/block:hasTags}
  647. </center>
  648. {/block:PermalinkPage}
  649.  
  650.  
  651. {block:PostNotes}
  652. {PostNotes}
  653. {/block:PostNotes}
  654. </div>
  655.  
  656. {/block:Posts}
  657. </div>
  658. </div>
  659.  
  660.  
  661. {block:IndexPage}
  662. {block:Pagination}
  663. <div id="pagination">
  664. {block:NextPage}
  665. <a id="nextPage" href="{NextPage}"></a>
  666. {/block:NextPage}
  667. {block:PreviousPage}
  668. <a href="{PreviousPage}"></a>
  669. {/block:PreviousPage}
  670. </div>
  671. {/block:Pagination}
  672. {/block:IndexPage}
  673.  
  674. {block:IndexPage}
  675. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  676. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  677.  
  678. <script type="text/javascript">
  679. $(window).load(function () {
  680. var $content = $('#posts');
  681. $content.masonry({itemSelector: '.entry'}),
  682. $content.infinitescroll({
  683. navSelector : 'div#pagination',
  684. nextSelector : 'div#pagination a#nextPage',
  685. itemSelector : '.entry',
  686. loading: {
  687. finishedMsg: '',
  688. img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif'
  689. },
  690. bufferPx : 600,
  691. debug : false,
  692. },
  693. // call masonry as a callback.
  694. function( newElements ) {
  695. var $newElems = $( newElements );
  696. $newElems.hide();
  697. // ensure that images load before adding to masonry layout
  698. $newElems.imagesLoaded(function(){
  699. $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(400);} );
  700.  
  701.  
  702. });
  703. });
  704. });
  705. </script>
  706. {/block:IndexPage}
  707. </div>
  708. </body>
  709. </html>
Advertisement
Add Comment
Please, Sign In to add comment