Created
November 7, 2016 14:44
-
-
Save manegame/4f1dd5ef5673cb64b9b63e73141b1d2e to your computer and use it in GitHub Desktop.
Reach bottom jQuery
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
$(window).scroll(function() { | |
if($(window).scrollTop() + $(window).height() == $(document).height()) { | |
alert("bottom!"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment