Last active
August 29, 2015 14:15
-
-
Save nachoal/a6a4f8c6c882b503958e 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
javascript: | |
i = 0; | |
minutos = 4; // cambia esto de acuerdo al tiempo que quieras | |
cuenta = minutos * 60; | |
function autoScroll() | |
{ | |
if (i < cuenta) | |
{ | |
window.scrollTo(0, document.body.scrollHeight); i++; | |
} | |
setTimeout(autoScroll, 1000); | |
} | |
autoScroll(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment