Created
April 14, 2016 15:57
-
-
Save paulkmiller/63af994f0b42253b5b1a5e2ccac4c83c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scrollLoad = true; | |
$(window).scroll(function () { | |
if (scrollLoad && $(window).scrollTop() >= $(document).height() - $(window).height() - 300) { | |
scrollLoad = false; | |
//Add something at the end of the page | |
alert("triggered"); | |
$.get('/honorees/json_test.php', function(data) { | |
console.log(data); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment