daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Ajax pages */
  2.    
  3.     if ($("span.curr_page").length) {
  4.         $("#loader").show();
  5.     }
  6.     pulling = false;
  7.  
  8.     function grabPage(next_page) {
  9.         if (next_page && pulling == false) {
  10.             pulling = true;
  11.             $.get(next_page,
  12.  
  13.             function(data) {
  14.                 var pages = data.split("<!--PAGES-->");
  15.                 var new_pages = pages[1];
  16.  
  17.                 var posts = data.split("<!--POSTS-->");
  18.                 var new_posts = posts[1];
  19.                 $("div.post:last").after(new_posts);
  20.                 $("div#pagination").html(new_pages);
  21.                 pulling = false;
  22.             });
  23.         }
  24.     }
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