Skip to content

Instantly share code, notes, and snippets.

@loethen
Created January 7, 2017 04:43
Show Gist options
  • Save loethen/42eaaf03ab387f27aced7f02f0a1e7c8 to your computer and use it in GitHub Desktop.
Save loethen/42eaaf03ab387f27aced7f02f0a1e7c8 to your computer and use it in GitHub Desktop.
touchToBottom: function(fn){
if($(window).height() + $(window).scrollTop() >= $(document).height() - 80){
fn && fn();
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment