Browse Source

demos : infinite scroll : couple refinements for v2

pull/96/head
David DeSandro 14 years ago
parent
commit
a684bbd461
  1. 9
      _posts/demos/2011-01-02-infinite-scroll.html
  2. 1
      css/style.css

9
_posts/demos/2011-01-02-infinite-scroll.html

@ -35,12 +35,9 @@ infinite_scroll: true
navSelector : '#page_nav', // selector for the paged navigation navSelector : '#page_nav', // selector for the paged navigation
nextSelector : '#page_nav a', // selector for the NEXT link (to page 2) nextSelector : '#page_nav a', // selector for the NEXT link (to page 2)
itemSelector : '.element', // selector for all items you'll retrieve itemSelector : '.element', // selector for all items you'll retrieve
donetext : 'No more pages to load.', loading: {
loadingImg : 'http://i.imgur.com/qkKy8.gif', finishedMsg: 'No more pages to load.',
debug: false, img: 'http://i.imgur.com/qkKy8.gif'
errorCallback: function() {
// fade out the error message after 2 seconds
$('#infscr-loading').animate({opacity: .8},2000).fadeOut('normal');
} }
}, },
// call Isotope as a callback // call Isotope as a callback

1
css/style.css

@ -750,6 +750,7 @@ code .nd { color: #9FAD7E; } /* CSS pseudo selector */
#infscr-loading { #infscr-loading {
position: fixed; position: fixed;
text-align: center;
bottom: 30px; bottom: 30px;
left: 42%; left: 42%;
z-index: 100; z-index: 100;

Loading…
Cancel
Save