Skip to content

Instantly share code, notes, and snippets.

@craigcoles
Created May 13, 2015 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigcoles/e2f19149cf587a05db98 to your computer and use it in GitHub Desktop.
Save craigcoles/e2f19149cf587a05db98 to your computer and use it in GitHub Desktop.
Dat Glitch
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