Advertisement
yLii

Infinite Scroll Bare Minimum.01

Jan 16th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.60 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Infinite Scroll Bare Minimum</title>
  5.  
  6.  
  7.  
  8. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js">
  9. </script>
  10.  
  11. <script type="text/javascript" src="http://static.tumblr.com/m9qxvhq/lCDmhw3in/isotope.js"></script>
  12.  
  13.  
  14.  
  15.  
  16. <script type="text/javascript">
  17. $('#content').isotope({
  18. // options
  19. itemSelector : '.entry',
  20. layoutMode : 'masonry'
  21. });
  22. $('#container').isotope({
  23. masonry: {
  24. gutterWidth: 3
  25. }
  26. });
  27.  
  28.  
  29. $(document).ready(function(){
  30. var $container = $('#content');
  31. $container.isotope({
  32. filter: '*',
  33. animationOptions: {
  34. duration: 750,
  35. easing: 'linear',
  36. queue: false,
  37. }
  38. });
  39.  
  40. $('#nav a').click(function(){
  41. var selector = $(this).attr('data-filter');
  42. $container.isotope({
  43. filter: selector,
  44. animationOptions: {
  45. duration: 750,
  46. easing: 'linear',
  47. queue: false,
  48. }
  49. });
  50.  
  51. return false;
  52. });
  53. });
  54. </script>
  55.  
  56.  
  57. <script type="text/javascript" src="http://static.tumblr.com/m9qxvhq/SWTmhumkz/jquery-1.7.1.min.js"></script>
  58. <script type="text/javascript" src="http://static.tumblr.com/m9qxvhq/lCDmhw3in/isotope.js"></script>
  59. <script src="http://static.tumblr.com/twte3d7/qNulm663d/infinite.js"></script>
  60. <script>
  61. $(function(){
  62.  
  63. var $container = $('#content');
  64.  
  65. $container.imagesLoaded( function(){
  66. $container.isotope({
  67. itemSelector : '.entry',
  68. isAnimated: true,
  69. });
  70. });
  71.  
  72. $container.infinitescroll({
  73. navSelector : 'div.navigation',
  74. nextSelector : '.navigation a#next',
  75. itemSelector : '#content .entry',
  76. },
  77.  
  78. function( newElements ) {
  79. var $newElems = $( newElements ).css({ opacity: 0 });
  80. $newElems.imagesLoaded(function(){
  81. $newElems.animate({ opacity: 1 });
  82. $container.isotope( 'appended', $newElems, true );
  83. });
  84. }
  85. );
  86. });
  87. </script>
  88.  
  89.  
  90.  
  91.  
  92. <meta name="image:Background" content="" />
  93. <meta name="image:Lollipop Background" content="" />
  94. <meta name="image:Quote Background" content="" />
  95. <meta name="image:HeaderBackground" content="" />
  96. <meta name="color:Background" content="#369fa0" />
  97. <meta name="color:Links" content="#619251" />
  98. <meta name="color:Text highlight" content="#d83e5c" />
  99. <meta name="color:Lollipop" content="#000000" />
  100. <meta name="color:Lollipop Hover" content="#b7512e" />
  101. <meta name="color:Hover" content="#b7512e" />
  102.  
  103. <meta name="text:Post Width" content="500px" />
  104. <meta name="text:Text Width" content="500px" />
  105. <meta name="text:Post margin" content="10px" />
  106. <meta name="text:Columns" content="4" />
  107.  
  108.  
  109.  
  110. <meta name="text:Font size" content='0.8em'/>
  111. <meta name="text:Google Analytics ID" content=''/>
  112. <meta name="text:Twitter Username" content=''/>
  113.  
  114. <meta name="if:Fade" content="1" />
  115. <meta name="if:Infinite Scroll" content="1" />
  116.  
  117.  
  118. <meta name="viewport" content="width=device-width, maximum-scale=1, minimum-scale=1" />
  119.  
  120.  
  121.  
  122.  
  123.  
  124. <link rel="shortcut icon" href="{Favicon}">
  125. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  126. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  127.  
  128.  
  129.  
  130.  
  131.  
  132. <style type="text/css">
  133.  
  134.  
  135. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  136. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  137. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  138. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  139. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  140. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  141. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  142.  
  143.  
  144. ::-webkit-scrollbar {width: 8px; height: 4px; background: #ffffff; opacity:0.5;}
  145. ::-webkit-scrollbar-thumb { background-color: #aaaaaa; -webkit-border-radius: 2ex; opacity:0.5; }
  146. ::-moz-scrollbar {width: 8px; height: 4px; background: #ffffff; }
  147. ::-moz-scrollbar-thumb { background-color: #aaaaaa; -moz-border-radius: 2ex; opacity:0.4; }
  148. ::-o-scrollbar {width: 8px; height: 4px; background: #ffffff; }
  149. ::-o-scrollbar-thumb { background-color: #aaaaaa; -o-border-radius: 2ex; opacity:0.4; }
  150.  
  151.  
  152.  
  153.  
  154. ::selection {background: #d83e5c;color: #fff;}
  155. ::-moz-selection {background: #d83e5c;color: #fff;}
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164. body {
  165. background: #ffffff;
  166. font-family: Tahoma;
  167. font-size: 11px;
  168. margin-left:20px;
  169. }
  170.  
  171. #content {
  172. }
  173.  
  174.  
  175.  
  176. .oiolosse a {
  177. position:relative;
  178. text-transform:uppercase;
  179. text-decoration:none;
  180. padding-top:50px;
  181. font-family:Mayo;
  182. font-size:90px;
  183. text-align:center;
  184. color:{color:Lollipop};
  185. -webkit-transition: color 0.7s ease-out;
  186. -moz-transition: color 0.7s ease-out;
  187. }
  188.  
  189. .oiolosse a:hover {
  190. color: {color:Lollipop Hover};
  191. text-align:center;
  192. -webkit-transition: color 0.7s ease-out;
  193. -moz-transition: color 0.7s ease-out;
  194. background-image:url('{image:Lollipop Background}');
  195. background-attachment: fixed;
  196. background-position: center center;
  197. background-repeat: no-repeat;
  198. }
  199.  
  200.  
  201.  
  202. .title {
  203. font-family:"Buffet";
  204. font-size: 25px;
  205. margin-bottom: 10px;
  206. }
  207.  
  208. .entry {
  209. color: #212121;
  210. float: left;
  211. background: #ffffff;
  212. margin-left:3px;
  213. margin-bottom:1px;
  214. }
  215.  
  216.  
  217. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  218. #infscr-loading {display:none;}
  219. .navigation {display:none!important;}
  220.  
  221.  
  222.  
  223.  
  224. .text {
  225. width:{text:Text Width};
  226. }
  227.  
  228. .photo {
  229. width:{text:Post Width};
  230. }
  231.  
  232. .panorama {
  233. width:{text:Text Width};
  234. }
  235.  
  236. .panorama:first-child {
  237. width:{text:Post Width};
  238. }
  239.  
  240. .photoset {
  241. width:{text:Post Width};
  242. }
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252. </style>
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263. </head>
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276. <body>
  277.  
  278.  
  279.  
  280. <div class="oiolosse">
  281.  
  282. <h1><center><a href="/" title="{lang:Home}">{Title}</a></center></h1>
  283. {block:Description}
  284. <p>{Description}</p>
  285. {block:Description}
  286. </div>
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293. <div id="content">
  294. {block:Posts}
  295.  
  296. {block:Text}
  297. <div class="entry text">
  298. {block:Title}<h1 class="title"><a href="{Permalink}">{Title}</a></h1>{/block:Title}
  299. {Body}
  300. {/block:Text}
  301.  
  302.  
  303.  
  304. {block:Photo}
  305.  
  306. {block:IndexPage}
  307.  
  308. <div class="entry photo">
  309. <div class="heart" data-reblog="{ReblogURL}" data-id="{PostID}" title="Like"></div>
  310.  
  311. {LinkOpenTag}
  312. <a href="{Permalink}">
  313. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="{text:Post Width}" />
  314. </a>
  315. {LinkCloseTag}
  316.  
  317.  
  318. {/block:IndexPage}
  319.  
  320.  
  321.  
  322.  
  323. {block:PermalinkPage}
  324. <div class="photo" align="center">
  325. {LinkOpenTag}<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" min-width="800px" />{LinkCloseTag}
  326. </div>
  327.  
  328.  
  329.  
  330.  
  331. </div>
  332.  
  333. {/block:PermalinkPage}
  334.  
  335.  
  336.  
  337. {/block:Photo}
  338.  
  339.  
  340.  
  341. {block:Panorama}
  342. {block:IndexPage}
  343. <div class="entry photo panorama">
  344. <div class="heart" data-reblog="{ReblogURL}" data-id="{PostID}" title="Like"></div>
  345. {LinkOpenTag}<img src="{PhotoURL-Panorama}" alt="{PhotoAlt}" width="{text:Text Width}" />{LinkCloseTag}
  346.  
  347. {/block:IndexPage}
  348.  
  349. {block:PermalinkPage}
  350. <div class="panorama">
  351. {LinkOpenTag} <img src="{PhotoURL-Panorama}" alt="{PhotoAlt}" width="100%"/>
  352. {LinkCloseTag}
  353. </div>
  354. {block:Caption}
  355. <div class="caption">{Caption}</div>
  356. {/block:Caption}
  357.  
  358. {/block:PermalinkPage}
  359.  
  360. {/block:Panorama}
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367. {block:Photoset}
  368. <div class="entry photo photoset">
  369. {block:IndexPage}{Photoset-250}{/block:IndexPage}
  370. {block:PermalinkPage}{Photoset-700}{/block:PermalinkPage}
  371. {block:Caption}{Caption}{/block:Caption}
  372. {/block:Photoset}
  373.  
  374.  
  375.  
  376.  
  377. </div>
  378.  
  379.  
  380. {/block:Posts}
  381. </div>
  382.  
  383.  
  384. <div class="navigation">
  385. {block:Pagination}
  386. {block:NextPage}<p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>{/block:NextPage}
  387. {block:PreviousPage}<a style="float:left" href="{PreviousPage}">? Newer</a></p>{/block:PreviousPage}
  388. {/block:Pagination}
  389. </div>
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401. </body>
  402. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement