Created
May 13, 2015 11:46
-
-
Save craigcoles/e2f19149cf587a05db98 to your computer and use it in GitHub Desktop.
Dat Glitch
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
setInterval( function() { | |
d=document.getElementsByTagName('div'); | |
for(i=0; i<d.length; i++) { | |
d[i].style.background='#'+Math.floor(Math.random()*16777215).toString(16); | |
} | |
}, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment