Show HN: SVG Clocks
21–30 of 43 posts
Re: Show HN: SVG Clocks
#22What's the copyright/license on these?
Re: Show HN: SVG Clocks
#23Re: Show HN: SVG Clocks
#24Basically they were rendering an animated gif on the server and streaming to the browser, so that the watch told the correct time, but the hands appeared behind the glass of the photo-realistic watch.
This was when most sites (not that there were many!) only had rudimentary static graphics, with the odd flashing "under construction' sign.
I googled, but couldn't find any reference to it, although Roxen the company still seems to be going, with the Roxen Web Server having become a CMS platform.
Re: Show HN: SVG Clocks
#25Very cool! What's the copyright/license on these?
Re: Show HN: SVG Clocks
#26Re: Show HN: SVG Clocks
#27Re: Show HN: SVG Clocks
#28Very nice indeed. Technically you should be able to do the same thing in CSS... I knocked this together in 20 minutes as a proof of concept: http://codepen.io/onion2k/details/kmouK Sadly you'd need some JS to set them to the right time though, which rather ruins the beauty of it. I think. If anyone knows a way to do it without JS I'd love to hear how.
I made a star chart, which is kind of like a clock in the form of a map of the sky, in pure HTML/CSS, that starts at the correct current time without resorting to JS: http://lee-phillips.org/skymap/ You might consider my solution cheating, however. EDIT: The trick I used is basically what jwarren describes below.
Re: Show HN: SVG Clocks
#29Earlier quoted context omitted.
Is it just that you are in a different timezone than the author?
No. The clocks use the local Date object, but the rotation calculations for hour hand were copied over from a 12 hour clock. One downside of 24 hour clocks: a broken one is only right once a day.