Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).endlessScroll({
- fireOnce: false,
- fireDelay: 100000,
- insertAfter: "#content",
- callback: function(p){
- // don't do the scrolling on permalink page
- if ( $('body').attr('class') != 'permalink' ){
- var start = $('article').size();
- var str = 'num=15&start='+start+'';
- // get posts
- getPosts(str, callback, function (result) {
- $('#content article:last').after(result);
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement