Categories
Tech

Hello Widgets!

After recovering from a pretty bad morning yesterday, I did the thing that comes naturally to me, I started writing code! I decided to widgetize my sidebar on the blog here. Setting up for the widget plugin was pretty easy and in the process I discovered some nasty stuff that was going on when my site was viewed in IE (it was my fault…). Next I decided to take a shot at building my own widget. I had always wanted to display the local time and date for a few select places around the globe. So first I wrote some PHP code to do what I wanted and then I used the Google Search widget as a template to create a widget that used the time code I’d written. After a few hiccups, I came up with the widget you see in the sidebar below the calendar. The widget shows the time in Chicago, Hong Kong, and Osaka which is a sister city of Chicago. I’ll package the widget code a little later for download so that anyone can use it. It isn’t a realtime flash clock, just good ol’ PHP. And the three places displayed are configurable.