Last active
August 29, 2015 14:25
-
-
Save wizardishungry/18ea384f51d1b9c25e6c to your computer and use it in GitHub Desktop.
fun javscript stuff I made
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
/* | |
scroll an infinite scrolling window forever | |
*/ | |
var pos=-1; var f = function() { if(pos==document.body.scrollHeight) return; window.scrollTo(0,document.body.scrollHeight); pos=document.body.scrollHeight; window.setTimeout(f, 1000); }; f(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment