Hacker News new | ask | show | jobs
by bkrausz 5595 days ago
Haha, I just did the same thing: http://nerdlife.net/colorclock.html
3 comments

Guys, get these on github. That way we can fork it & make it awesome as a team faster and better.
https://github.com/adamburmister/colour-clock

HTML5, CSS3, webfonts, and jQuery

Similar pull request sent to you too! :)
Small bug: Single digit hex codes are showing without the leading zero - it's probably affecting the colors as well.
Fixed, thanks.
Great minds and all. If you replace the html file in the screensaver bundle you can use yours (or mine) instead of the flash one.
Instead of:

  window.setInterval(frame, 1000);
Do:

  window.setTimeout('window.setInterval(frame, 1000)', 999-(new Date()).getMilliseconds());
That way the seconds will be properly synchronized.
Instead of a string containing code, you should use an anonymous function.