Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- if (window.location.pathname.split( '/' )[1] == 'post'){
- $(window).on("scroll",function(e){
- if($(window).scrollTop() + $(window).height() > $(document).height() - 100) {
- var a = $('.more_notes_link')[0];
- var e = document.createEvent('MouseEvents');
- e.initEvent( 'click', true, true );
- a.dispatchEvent(e);
- }
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement