Advertisement
teenageblog

New York Theme

May 19th, 2013
1,144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.40 KB | None | 0 0
  1.  
  2. <!-----------------------------------------
  3. ╭━━━┳╮╱╱╱╱╱╱╱╱╱╱╭╮╱╭━━━━┳╮
  4. ┃╭━╮┃┃╱╱╱╱╱╱╱╱╱╱┃┃╱┃╭╮╭╮┃┃
  5. ┃┃╱╰┫╰━┳━━┳━╮╭━━┫┃╱╰╯┃┃╰┫╰━┳━━┳╮╭┳━━┳━━╮
  6. ┃┃╱╭┫╭╮┃╭╮┃╭╮┫┃━┫┃╱╱╱┃┃╱┃╭╮┃┃━┫╰╯┃┃━┫━━┫
  7. ┃╰━╯┃┃┃┃╭╮┃┃┃┃┃━┫╰╮╱╱┃┃╱┃┃┃┃┃━┫┃┃┃┃━╋━━┃
  8. ╰━━━┻╯╰┻╯╰┻╯╰┻━━┻━╯╱╱╰╯╱╰╯╰┻━━┻┻┻┻━━┻━━╯
  9.  
  10. Please keep credit (✿◠‿◠)
  11. ----------------------------------------------->
  12.  
  13. <html lang="en">
  14. <!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  15. <html xmlns="http://www.w3.org/1999/xhtml">
  16. <script type="text/javascript"
  17. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  18.  
  19. <head>
  20. <!-- DEFAULT VARIABLES -->
  21. <title>{Title}</title>
  22. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  23. <meta name="color:Background" content="#fff"/>
  24. <meta name="color:Navigation bg" content="#000000"/>
  25. <meta name="color:Nav link hover bg" content="#b68d76">
  26. <meta name="color:Nav link" content="#ffffff">
  27. <meta name="color:Nav link hover" content="#ffffff">
  28. <meta name="color:Blogtitle" content="#83cdf8"/>
  29. <meta name="color:Text" content="#000"/>
  30. <meta name="color:Link" content="#ccc"/>
  31. <meta name="color:Title" content="#000"/>
  32. <meta name="color:Hover" content="#f0fbff"/>
  33. <meta name="color:Scrollbar" content="#ccc"/>
  34.  
  35. <meta name="if:Scrollbar" content="1">
  36. <meta name="if:SmallCursor" content="0"/>
  37. <meta name="if:Title Font 1" content="1"/>
  38. <meta name="if:Title Font 2" content="0"/>
  39. <meta name="if:Title Font 3" content="0"/>
  40. <meta name="if:Topbutton" content="1"/>
  41. <meta name="if:Use Banner" content="1">
  42. <meta name="if:Show blog title" content="0"/>
  43.  
  44. <meta name="image:Banner" content="http://static.tumblr.com/e715551ebfabca577233b40a135a18ee/m52lhg5/iRfmos4cj/tumblr_static_tumblr_mfr8s8vbjg1qfj0ndo1_500.gif">
  45. <meta name="image:Background" content="0"/>
  46.  
  47. <meta name="text:Link 1 Title" content=""/>
  48. <meta name="text:Link 1 URL" content=""/>
  49. <meta name="text:Link 2 Title" content=""/>
  50. <meta name="text:Link 2 URL" content=""/>
  51. <meta name="text:Link 3 Title" content=""/>
  52. <meta name="text:Link 3 URL" content=""/>
  53. <meta name="text:Link 4 Title" content=""/>
  54. <meta name="text:Link 4 URL" content=""/>
  55. <meta name="text:Link 5 Title" content=""/>
  56. <meta name="text:Link 5 URL" content=""/>
  57.  
  58.  
  59. <style type="text/css">
  60.  
  61. #toTop {
  62. text-align:center;
  63. padding:5px;
  64. position:fixed;
  65. bottom:10px;
  66. right:10px;
  67. cursor:pointer;
  68. display:none;
  69. color:#000;
  70. z-index: 99999999999999999999;
  71. font-size:10px;
  72. }
  73. #header h1 {
  74. color:#000;
  75. position:absolute;
  76. top:0px;
  77. left:74px;
  78. text-transform:uppercase;
  79. text-align: center;
  80. font:16px;
  81. font-family:Arial,'DejaVu Sans','Liberation Sans',Freesans,sans -serif;
  82. letter-spacing:-1px;
  83. font-weight:bold;
  84. margin:0;
  85. padding:0;
  86. {block:ifusebanner}display:none;{/block:ifusebanner}
  87. }
  88.  
  89.  
  90. #mainRight {
  91. width:100%;
  92. margin:0;
  93. padding:5px;
  94. text-align:center;
  95. }
  96.  
  97. #holder {
  98. width:100%;
  99. }
  100. {block:ifsmallcursor}body, a:hover {cursor: url(http://i.imgur.com/ZOrzC.png), progress !important;} a:hover {cursor: url(http://cur.cursors-4u.net/others/oth-6/oth589.cur), progress !important;}{/block:ifsmallcursor}
  101. {block:ifscrollbar}::-webkit-scrollbar {width: 5px; height: 4px; background: {color:background};}
  102. ::-webkit-scrollbar-thumb { background-color: {color:scrollbar};}{/block:ifscrollbar}
  103.  
  104. iframe#tumblr_controls {right:3px !important; position: fixed !important;-webkit-transition: opacity 0.7s linear;opacity: 0.2;-webkit-transition: all 0.8s ease-out;-moz-transition: all 0.8s ease-out;transition: all 0.8s ease-out;}
  105.  
  106. iframe#tumblr_controls:hover{-webkit-transition: opacity 0.7s linear;opacity: 1;-webkit-transition: all 0.4s ease-out;-moz-transition: all 0.4s ease-out;transition: all 0.4s ease-out;}
  107.  
  108.  
  109.  
  110.  
  111. @font-face { font-family: "ronda"; src: url'http://static.tumblr.com/rmj06l2/kcLlo1q2y/pf_ronda_seven.ttf'); }
  112.  
  113.  
  114. .wrapper{
  115. margin: 0px auto;
  116. margin-left: 60px;
  117. width: 1045px;
  118. }
  119.  
  120. .header{
  121. float: left;
  122. width: 100%;
  123. }
  124.  
  125. .left{
  126. float: left;
  127. margin-right: 20px;
  128. width:1045;
  129. }
  130.  
  131. .right{
  132. float: right;
  133. width: 200px;
  134. background-color: #fff;
  135. }
  136.  
  137.  
  138. body {
  139. margin:0px;
  140. background-color: {color:Background};
  141. background-image:url({image:Background});
  142. background-attachment: fixed;
  143. background-repeat: repeat;}
  144. body, div, p, textarea, submit, input{
  145. font-family: 'Ubuntu', sans-serif;
  146. font-size: 11px;
  147. line-height:14px;
  148. letter-spacing:1px;
  149. color:{color:Text};
  150. }
  151.  
  152. ::-webkit-scrollbar {width: 6px; height: 4px; background: #FFFFFF; border-left:0px solid #aaa; }
  153.  
  154. ::-webkit-scrollbar-thumb { background-color: {color:scrollbar}; border: 0px solid #eee; border-radius:40px;}
  155.  
  156.  
  157. p {
  158. margin:0px;
  159. margin-top:0px;
  160. }
  161.  
  162. a:link, a:active, a:visited{
  163. text-decoration: none;
  164. -webkit-transition: color 0.3s ease-out;
  165. -moz-transition: color 0.3s ease-out;
  166. transition: color 0.3s ease-out;
  167. color: {color:Link};
  168. }
  169.  
  170. a:hover {
  171. text-decoration: none;
  172. font-style:;
  173. text-shadow: 0px 0px 2px #000;
  174. color: {color:Permlink Background};
  175. }
  176.  
  177.  
  178.  
  179.  
  180. div#center{
  181. margin:auto;
  182. margin-top:0px;
  183. position:relative;
  184. width:1045px;
  185. background-color:;
  186. overflow:auto;
  187. overflow-y:hidden;
  188. }
  189.  
  190. #nav{
  191. position: absolute;
  192. top:-12px;
  193. left: 0px;
  194. width: 100%;
  195. background-color:{color:navigation bg};
  196. font-family:trebuchet ms;
  197. font-size:9px;
  198. text-transform:uppercase;
  199. letter-spacing:1px;
  200. margin-top:12px;
  201. text-align:center;
  202. padding-top:5px;
  203. padding-bottom:6px;
  204. }
  205.  
  206. .link a{
  207. color:{color:nav link};
  208. margin-right:8px;
  209. padding-top:4px;padding-bottom:5px;padding-right:5px;padding-left:5px;-webkit-transition: all 0.2s linear;
  210. -moz-transition: all 0.2s linear;
  211. transition: all 0.2s linear;
  212. }
  213.  
  214. .link a:hover{
  215. color:{color:nav link hover};
  216. background-color:{color:nav link hover bg};-webkit-transition: all 0.2s linear;
  217. -moz-transition: all 0.2s linear;
  218. transition: all 0.2s linear;
  219. }
  220.  
  221. .entry {
  222. float:left;
  223. display: block;
  224. overflow:hidden;
  225. width:300px;
  226. padding:1px;
  227. margin:2px;
  228. {block:PermalinkPage}
  229. width:520px;
  230. margin-left:0px;
  231. text-align:center;
  232. {/block:PermalinkPage}
  233. }
  234.  
  235. .entry .perma a{
  236. color:;}
  237.  
  238. .entry .perma a:hover {
  239. text-decoration: none;
  240. font-style:;
  241. text-shadow:0px 0px 2px #000;
  242. color: {color:Hover};
  243. }
  244.  
  245. .entry .perma{
  246. width:300px;
  247. height:24px;
  248. margin-left:0px;
  249. position: absolute;
  250. line-height: 24px;
  251. overflow:hidden;
  252. text-align:center;
  253. margin-top:-10px;
  254. background:#000;
  255. word-spacing:1px;
  256. opacity: 0.0;
  257. -webkit-transition: all .7s ease;
  258. -moz-transition: all .7s ease;
  259. -o-transition: all .7s ease;
  260. transition: all .7s ease;
  261.  
  262. }
  263.  
  264. .entry:hover .perma{
  265. overflow:visible;
  266. opacity:1;
  267. margin-top:0px;
  268. }
  269.  
  270. .permalinktext {
  271. display: block;
  272. padding: 5px;
  273. margin: 4px 8px 0px 8px;
  274. text-transform: uppercase;
  275. font-family: calibri;
  276. letter-spacing: 2px;
  277. font-size: 10px;
  278. color: #000000;
  279. line-height: 10px;
  280. text-align: right;
  281. text-decoration: none;
  282. -webkit-transition: color 0.5s ease-out;
  283. -moz-transition: color 0.5s ease-out;
  284. border-top: 1px solid #dcdcdc;
  285. }
  286.  
  287.  
  288.  
  289. .title{
  290. font-family: "Lala";
  291. font-size: 22px;
  292. line-height: 20px;
  293. color: {color:Title};
  294. text-shadow:1px 2px 2px #aaa;
  295. letter-spacing: 1px;
  296. font-weight: normal;
  297. }
  298. @font-face { font-family: "lala"; src: url('http://static.tumblr.com/vpzhdvv/6d7m90v7t/111.woff');}
  299. @font-face {font-family:"Waltograph"; src:url('http://static.tumblr.com/9wzbixa/CaXlyw8mg/waltograph42.otf');}
  300.  
  301. @font-face {font-family:"Pacifico"; src:url('http://static.tumblr.com/9wzbixa/D3Wlyw7u4/pacifico.ttf');}
  302.  
  303. .blogtitle {
  304. text-align:center;
  305. color:{color:Blogtitle};
  306. {Block:IfTitleFont1}font-family: 'Pacifico' !important;{/Block:IfTitleFont1}
  307. {Block:IfTitleFont2}font-family: 'Lala' !important;{/Block:IfTitleFont2}
  308. {Block:IfTitleFont3}font-family: 'Waltograph' !important;{/Block:IfTitleFont3}
  309. padding-bottom:8px;
  310. padding-top:40px;
  311. font-size:60px;
  312. line-height:50px;}
  313.  
  314.  
  315.  
  316.  
  317. .desc {margin-left:255px;width:60%;text-align:center;line-height: 13px;padding-top:7px;font-size:11px;color:{color:text}}
  318.  
  319.  
  320. #posts {
  321. width:1400px;
  322. margin-top: 30px;
  323. margin-left:-5px;
  324. margin-right: auto;
  325. position:relative;
  326. overflow-y: hidden;
  327. {block:iffourcolumns}
  328. margin-left:-10px;
  329. {/block:iffourcolumns}
  330. }
  331.  
  332.  
  333. #infscr-loading{
  334. bottom: -70px;
  335. position: absolute;
  336. left: 50%;
  337. margin-left:-8px;
  338. width:16px;
  339. height:11px;
  340. overflow:hidden;
  341. margin-bottom: 50px;
  342. }
  343.  
  344. #postnotes{
  345. text-align: justify;
  346. }
  347.  
  348. #postnotes blockquote{
  349. border: 0px;
  350. }
  351.  
  352. blockquote{
  353. padding:0px 0px 2px 5px;
  354. margin:0px 0px 2px 1px;
  355. border-left: 1px dotted {color:Text};
  356. }
  357.  
  358. blockquote p, ul{
  359. margin:0px;
  360. padding:0px;
  361. }
  362.  
  363. a img{border: 0px;}
  364. ul, ol, li{list-style:none; margin:0px; padding:0px;}
  365. .user_1 .label, .user_2 .label, .user_3 .label, .user_4 .label, .user_5 .label, .user_6 .label,
  366. .user_7 .label, .user_8 .label, .user_9 .label {color:{color:Title};}
  367. .notes img{width:10px; position:relative; top:3px;
  368. }
  369.  
  370. small{font-size: 90%;}
  371.  
  372. .video embed, .post div.video object {width:260px !important; height:180px !important;}
  373. .video2 embed, .post div.video object {width:400px !important; height:400px !important;}
  374.  
  375. {CustomCSS}
  376.  
  377. </style>
  378.  
  379. {block:IndexPage}
  380.  
  381.  
  382. <script type='text/javascript' src='http://static.tumblr.com/m52lhg5/u9amoiddc/infinite.js'></script>
  383. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  384. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  385.  
  386. <script type="text/javascript">
  387. $(window).load(function () {
  388. var $content = $('#posts');
  389. $content.masonry({itemSelector: '.entry'}),
  390. $content.infinitescroll({
  391. navSelector : 'div#pagination',
  392. nextSelector : 'div#pagination a#nextPage',
  393. itemSelector : '.entry',
  394. loading: {
  395. finishedMsg: '',
  396. img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif'
  397. },
  398. bufferPx : 600,
  399. debug : false,
  400. },
  401. // call masonry as a callback.
  402. function( newElements ) {
  403. var $newElems = $( newElements );
  404. $newElems.hide();
  405. // ensure that images load before adding to masonry layout
  406. $newElems.imagesLoaded(function(){
  407. $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(300);} );
  408.  
  409.  
  410. });
  411. });
  412. });
  413. </script>
  414. {/block:IndexPage}
  415.  
  416.  
  417. <title>{Title}</title>
  418. <link rel="shortcut icon" href="{Favicon}">
  419. <link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}" />
  420. <meta name="viewport" content="width=820" />
  421. </head>
  422.  
  423. <body>
  424. <div id="mainRight">
  425. {block:ifusebanner}<center><a href="/"><img style="max-width:1500px; max-height:300px" src="{image:banner}"/></center></a>{/block:ifusebanner}
  426.  
  427. {block:ifTopButton}<div id="toTop"><img src="http://static.tumblr.com/2plu7ye/iA1meyjey/top.png" /></div>{/block:ifTopButton}
  428. <div id="sidebar"><br>
  429.  
  430. {block:ifshowblogtitle}<div class="blogtitle"><center><a href="/">{title}</div>{/block:ifshowblogtitle}
  431. <div class="desc">{Description}</div>
  432. <div id="nav"><div class="link">
  433. <a href="/">Home</a>
  434. <a href="/ask">message</a>
  435. <a href="/archive">archive</a>
  436. <a href="/submit">submit</a>
  437. {block:ifLink1Title}<a href="{text:Link 1 URL}">{text:Link 1 Title}</a>
  438. {/block:ifLink1Title}
  439.  
  440. {block:ifLink2Title}
  441. <a href="{text:Link 2 URL}">{text:Link 2 Title}</a>
  442. {/block:ifLink2Title}
  443.  
  444. {block:ifLink3Title}
  445. <a href="{text:Link 3 URL}">{text:Link 3 Title}</a>
  446. {/block:ifLink3Title}
  447.  
  448. {block:ifLink4Title}
  449. <a href="{text:Link 4 URL}">{text:Link 4 Title}</a>
  450. {/block:ifLink4Title}
  451.  
  452. {block:ifLink5Title}
  453. <a href="{text:Link 5 URL}">{text:Link 5 Title}</a>
  454. {/block:ifLink5Title}
  455.  
  456. {block:ifLink6Title}
  457. <a href="{text:Link 6 URL}">{text:Link 6 Title}</a>
  458. {/block:ifLink6Title}
  459.  
  460. {block:ifLink7Title}
  461. <a href="{text:Link 7 URL}">{text:Link 7 Title}</a>
  462. {/block:ifLink7Title}
  463.  
  464. {block:ifLink8Title}
  465. <a href="{text:Link 8 URL}">{text:Link 8 Title}</a>
  466. {/block:ifLink8Title}
  467.  
  468. <a href="http://teenageblog.tumblr.com/">theme</a>
  469. </div></div>
  470. <br>
  471.  
  472. </div>
  473.  
  474. <div class="wrapper">
  475. <div class="header">
  476. </div>
  477.  
  478.  
  479.  
  480. <div class="left">
  481. <div id="posts">
  482. {block:Posts}
  483. <div class="entry">
  484.  
  485. {block:Photo}
  486. {block:IndexPage}
  487.  
  488. <div class="perma">
  489. <a href="{ReblogURL}" target="_blank"><font color="#fff"> reblog </font></a><a href="{Permalink}"><font color="#fff">with {notecountwithlabel}</font></a></div>
  490.  
  491. <a href="{Permalink}"><img src="{PhotoURL-500}" alt="{PhotoAlt}" width="100%"></a>
  492.  
  493. {/block:IndexPage}
  494.  
  495. {block:PermalinkPage}
  496. <div align="center">{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}" width="500px">{LinkCloseTag}</div>
  497. {/block:PermalinkPage}
  498.  
  499. {/block:Photo}
  500.  
  501.  
  502. {block:Answer}
  503. <img src="{AskerPortraitURL-30}" width="30" align="left" style="margin-right:3px;"/>
  504. <strong>{Asker}: {Question}</strong>
  505. <div class="caption">
  506. {Answer}</div>
  507. {block:IndexPage}<a href="{permalink}"><div align="right"><div style="font-size:9px;line-height:10px; border-top: 0px #777777 solid; padding-bottom: 2px;">{Notecount} notes</a></span></div></div>{/block:IndexPage}
  508. {/block:Answer}
  509.  
  510. {block:Text}
  511. {block:Title}<span class="title">{Title}</span>{/block:Title}
  512. <span class="entrytext">{Body}</span>
  513. <div class="permalinktext">
  514. <a href="{permalink}">{notecountwithlabel} &middot {timeago}</a>
  515. </div>
  516. {/block:Text}
  517.  
  518. {block:Link}
  519. <center><a href="{URL}"><span class="title">{Name}</span></a></center>
  520. <div style="margin-left:3px;">{block:Description}{Description}{/block:Description}</div>
  521. {block:IndexPage}<div class="permalinktext">
  522. <a href="{permalink}">{notecountwithlabel} &middot {timeago}</a>
  523. </div>
  524. {/block:IndexPage}
  525. {block:Link}
  526.  
  527.  
  528.  
  529. {block:Quote}<span class="title">"{Quote}"</span> — {block:Source}<b>{Source}</b>{/block:Source}<br><p align=right><div class="permalink">
  530. <div class="permalinktext">
  531. <a href="{permalink}">{NoteCount}</a> &middot <a href="{ReblogURL}" target="_blank"> REBLOG </a></span></div></div>{/block:Quote}
  532.  
  533. {block:Chat}{block:Title}<span class="title">{Title}</span>{/block:Title}
  534. <ul class="chat">
  535. {block:Lines}
  536. <li class="user_{UserNumber}">
  537. {block:Label}
  538. <span class="label">{Label}</span>
  539. {/block:Label}
  540.  
  541. {Line}
  542. </li>
  543. {/block:Lines}
  544. <div class="permalink">
  545. <div class="permalinktext">
  546. <a href="{permalink}">{NoteCount}</a> &middot <a href="{ReblogURL}" target="_blank"> REBLOG </a></span></div></div>
  547. {/block:Chat}
  548.  
  549. {block:Audio}
  550. <div style="width:200px; height:30px;">
  551. {AudioPlayerBlack}
  552. </div>
  553. {block:IndexPage}<div class="permalink">
  554. <div class="permalinktext">
  555. <a href="{permalink}">{NoteCount}</a> &middot <a href="{ReblogURL}" target="_blank"> REBLOG </a></span></div></div>
  556. {/block:IndexPage}
  557. {/block:Audio}
  558.  
  559. {block:Video}
  560. {block:IndexPage}
  561. <center>
  562. <div class="permalink">
  563. <div class="permalinktext">
  564. <a href="{permalink}">{NoteCount}</a> &middot <a href="{ReblogURL}" target="_blank"> REBLOG </a></span></div></div>
  565. {Video-250}</center>
  566. {/block:IndexPage}
  567. {block:PermalinkPage}
  568. <center>
  569. {Video-400}</center>
  570. {/block:PermalinkPage}
  571. {block:Video}
  572.  
  573. {block:PostNotes}<div align="middle">{caption}</div>
  574. <center>
  575.  
  576. {block:NoteCount}{NoteCountWithLabel}<br>{/block:NoteCount}
  577.  
  578. {block:HasTags}
  579. tags: {block:Tags}<a href="{TagURL}">{Tag}. </a>{/block:Tags}<br> {/block:HasTags}
  580. {block:RebloggedFrom}
  581. reblogged from <a href="{ReblogParentURL}">{ReblogParentName}</a><br>
  582. posted by <a href="{ReblogRootURL}">{ReblogRootName}</a>
  583.  
  584. {/block:RebloggedFrom}
  585. </center></span>
  586. <br>
  587. <div id="postnotes">{PostNotes}</div><br>
  588.  
  589. <center>{block:ContentSource}
  590. <br><a href="{SourceURL}">
  591. {lang:Source}:
  592. {block:SourceLogo}
  593. <img src="{BlackLogoURL}" width="{LogoWidth}"
  594. height="{LogoHeight}" alt="{SourceTitle}" />
  595. {/block:SourceLogo}
  596. {block:NoSourceLogo}
  597. {SourceLink}
  598. {/block:NoSourceLogo}
  599. </a>
  600. {/block:ContentSource}</center>
  601.  
  602. {/block:PostNotes}
  603. </div>
  604. {/block:Posts}
  605. </div></div>
  606.  
  607. {block:IndexPage}
  608. {block:Pagination}
  609. <div id="pagination">
  610. {block:NextPage}
  611. <a id="nextPage" href="{NextPage}"></a>
  612. {/block:NextPage}
  613. {block:PreviousPage}
  614. <a href="{PreviousPage}"></a>
  615. {/block:PreviousPage}
  616. </div>
  617. {/block:Pagination}
  618. {/block:IndexPage}
  619.  
  620. <script type="text/javascript" src="http://static.tumblr.com/uiqhh9x/2MFlzww4p/likenew.js"></script>
  621.  
  622. <script type="text/javascript">autoscale(new Array('object', 'embed'));</script>
  623.  
  624. <script type="text/javascript" src="http://static.tumblr.com/iddq6cw/cz1m316ry/arny.js"></script>
  625. <iframe id="likeiframe" style="display:none;"></iframe>
  626.  
  627.  
  628. </body>
  629. <script type="text/javascript">
  630.  
  631. $(function() {
  632. $(window).scroll(function() {
  633. if($(this).scrollTop() != 0) {
  634. $('#toTop').fadeIn();
  635. } else {
  636. $('#toTop').fadeOut();
  637. }
  638. });
  639.  
  640. $('#toTop').click(function() {
  641. $('body,html').animate({scrollTop:0},800);
  642. });
  643. });
  644.  
  645.  
  646. $(window).load(function () {
  647.  
  648.  
  649.  
  650.  
  651.  
  652. // endless scrolling
  653. var $container = $('#holder');
  654. $container.imagesLoaded(function(){
  655. $container.masonry({
  656. itemSelector: '.box'
  657. });
  658. });
  659. $container.infinitescroll({
  660. navSelector : '#page-nav', // selector for the paged navigation
  661. nextSelector : '#page-nav a', // selector for the NEXT link (to page 2)
  662. itemSelector : '.box', // selector for all items you'll retrieve
  663. bufferPx: 0,
  664. debug : true,
  665. loading: {
  666. finishedMsg: '',
  667. img: '',
  668. msgText: ''
  669. }
  670. },
  671. // trigger Masonry as a callback
  672. function( newElements ) {
  673. // hide new items while they are loading
  674. var $newElems = $( newElements ).css({ opacity: 0 });
  675. // ensure that images load before adding to masonry layout
  676. $newElems.imagesLoaded(function(){
  677. // show elems now they're ready
  678. $newElems.animate({ opacity: 1 });
  679. $container.masonry( 'appended', $newElems, true );
  680. });
  681. }
  682. );
  683.  
  684. // End of endless scrolling
  685.  
  686. });
  687.  
  688. </script>
  689. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement