Created
May 4, 2014 03:04
-
-
Save grant/60544ed82443ff1e678b to your computer and use it in GitHub Desktop.
Fun with javascript
This file contains hidden or 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 () { | |
var color = 'rgb('+Math.floor(Math.random()*255)+','+Math.floor(Math.random()*255)+','+Math.floor(Math.random()*255)+')'; | |
console.log(color); | |
document.getElementsByTagName('header')[0].style['background-color'] = color; | |
}, 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment