Skip to content

Instantly share code, notes, and snippets.

View dallinbryce's full-sized avatar

Dallin Bryce dallinbryce

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dallinbryce on github.
  • I am dallinbryce (https://keybase.io/dallinbryce) on keybase.
  • I have a public key ASBo6-Pq3gnVUzljWTPep0uLNpbAkUOMMPijGcVPowscuAo

To claim this, I am signing this object:

@dallinbryce
dallinbryce / randomColor.js
Last active August 29, 2015 14:12
Script that randomly changes the background color for a webpage.
(function () {
"use strict";
function changeColor() {
var b = Math.floor(Math.random() * 16777215).toString(16);
b = "#" + ("000000" + b).slice(-6);
document.bgColor = b;
}
setInterval(changeColor, 150);
}());