node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

hextimebg

Hex Time BG

Tiny, simple project. Pass in one or more selectors (including jQuery selectors) and it'll automatically update their background colour every second. Derives the colour from the current hour, minute and second and expresses as a HEX value.

var hexbg = require("hextimebg");
hexbg.init(document.body, $("nav"));

To stop: hexbg.stop()

To restart: hexbg.loop()