Created
July 30, 2018 02:14
-
-
Save adam-acosta/628783cff5d28703fc511a717dac528d to your computer and use it in GitHub Desktop.
Revisions
-
adam-acosta created this gist
Jul 30, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ var lastScrollHeight = 0; function autoScroll() { var sh = document.documentElement.scrollHeight; if (sh != lastScrollHeight) { lastScrollHeight = sh; document.documentElement.scrollTop = sh; } } window.setInterval(autoScroll, 100);