Created
April 24, 2016 18:32
-
-
Save Edznux/4bd378fb96b12a0c385563af98d054f2 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
var all = document.getElementsByTagName("*"); | |
for (var i=0, max=all.length; i < max; i++) { | |
color = "#"+Math.floor(Math.random()*16777215).toString(16); | |
while(color.length < 7){ | |
color+="0"; | |
} | |
console.log(i + " : " + color); | |
all[i].style.background = color; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment