SHARE
TWEET

jyoseph

a guest Aug 12th, 2009 479 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).endlessScroll({
  2.     fireOnce: false,
  3.     fireDelay: 100000,
  4.     insertAfter: "#content",
  5.     callback: function(p){
  6.                
  7.     // don't do the scrolling on permalink page
  8.     if ( $('body').attr('class') != 'permalink' ){
  9.  
  10.         var start = $('article').size();
  11.         var str = 'num=15&start='+start+'';
  12.        
  13.         // get posts
  14.         getPosts(str, callback, function (result) {
  15.             $('#content article:last').after(result);
  16.         });
  17. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top