| « New Rule: Don't edit files on media | She was kind of stupid, I guess » |
[Update 2010/07/01]The clock was lost when I upgraded to the new version of B2 Evolution. I like it, so I have to re-install the change.[End Update]
If you've ever read this blog before, or you've ever seen the B2Evolution blog software that runs this blog, you'll notice something new here. The (digital) clock that appears on the right side of the page (for most of the skins; one skin has no right side and the clock appears on the top).
I decided to do a little "surgery" to the code of this blog in order to get the clock inserted. It requires creating a page to define the clock, changing the main page of every skin to insert the clock, and include a Javascript function to change the time each second. Oh, and yes, if you're reading this blog and your clock gets to midnight, the date changes too.
What's the next step? Put it an analog clock. Actually, I have one; on the "custom" skin, about 1/2 way down I include an analog clock from a time service. Only thing is, this calls a Flash animation and an external function library, I'm figuring the whole thing can be done with Javascript, locally. (Actually, I've seen it done; someone programmed a text-based clock to follow the mouse. But what I'm considering is actually drawing on the screen, something I just discovered can be done at run-time.) I remember, maybe 25 years ago, that there was a program I saw, written in ordinary Basic, that actually drew a clock, with hour, minute and second hand, that refreshed each second. So it can be done, it's not that hard.
Oh, there is a slight difference. Javascript runs on your computer, so the time shown on the top right of this blog is the local time where you are. The analog clock I use (on the "custom" skin) shows the time on the East Coast. So the two clocks may not be the same.