Skip to content

Instantly share code, notes, and snippets.

@caarlos0
Last active December 10, 2015 14:18
Show Gist options
  • Save caarlos0/4446577 to your computer and use it in GitHub Desktop.
Save caarlos0/4446577 to your computer and use it in GitHub Desktop.
document.body.innerHTML="";setInterval(function(){document.body.style.background='#'+(Math.random()*0x1000000<<0).toString(16)},50);
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="colors.js HUEHUHEUHEUEHU">
<meta name="viewport" content="width=device-width">
</head>
<body>
<script src="color.js"></script>
</body>
</html>
@ashishtyagi10
Copy link

Nice one

@caarlos0
Copy link
Author

caarlos0 commented Jan 9, 2013

thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment