Skip to content

Instantly share code, notes, and snippets.

@timaschew
Created December 18, 2016 22:05
Show Gist options
  • Save timaschew/49bc0a59597e6312c6473cb51e9f36e7 to your computer and use it in GitHub Desktop.
Save timaschew/49bc0a59597e6312c6473cb51e9f36e7 to your computer and use it in GitHub Desktop.
just copy and paste in your browser developer toolbar
timeInSeconds = 10;
maxNumber = 3;
rounds = 55;
while (rounds > 0) {console.log(rounds); setTimeout(() => {document.body.textContent = 1 + Math.floor(Math.random()* maxNumber) }, 1000 * timeInSeconds * Math.random()); rounds--}
setTimeout(() => {document.writeln("<br><h1>FERTIG</h1>")}, 1000 * timeInSeconds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment