Create a swiss railway inspired clock.
$ component install matthewmueller/clock
var clock = new Clock;
clock.refresh();
document.body.appendChild(clock.el);
setInterval(function() {
clock.refresh();
}, 1000);
Initialize a Clock
Refresh the clock to the current time
clock.refresh()
Get or set the hour.
clock.hour(5)
Get or set the minute
clock.minute(30)
Get or set the second
clock.second(45)
MIT