diff --git a/_posts/demos/2011-01-02-infinite-scroll.html b/_posts/demos/2011-01-02-infinite-scroll.html index f222301..882539b 100644 --- a/_posts/demos/2011-01-02-infinite-scroll.html +++ b/_posts/demos/2011-01-02-infinite-scroll.html @@ -35,13 +35,10 @@ infinite_scroll: true navSelector : '#page_nav', // selector for the paged navigation nextSelector : '#page_nav a', // selector for the NEXT link (to page 2) itemSelector : '.element', // selector for all items you'll retrieve - donetext : 'No more pages to load.', - loadingImg : 'http://i.imgur.com/qkKy8.gif', - debug: false, - errorCallback: function() { - // fade out the error message after 2 seconds - $('#infscr-loading').animate({opacity: .8},2000).fadeOut('normal'); - } + loading: { + finishedMsg: 'No more pages to load.', + img: 'http://i.imgur.com/qkKy8.gif' + } }, // call Isotope as a callback function( newElements ) { diff --git a/css/style.css b/css/style.css index 5b386c6..5bc7038 100644 --- a/css/style.css +++ b/css/style.css @@ -750,6 +750,7 @@ code .nd { color: #9FAD7E; } /* CSS pseudo selector */ #infscr-loading { position: fixed; + text-align: center; bottom: 30px; left: 42%; z-index: 100;