A Neat, Subtle Archives Widget
23 February 2010
Update: I’ve removed the archives widget in favor of a dedicated page/section. The widget was a fun experiment, but never really worked the way I wanted it to. I’m leaving this article up for posterity and so others can still use and adapt the widget if they so desire.
You may have noticed I rearranged some elements of Geek & Mild over the weekend. Or maybe you didn’t.
The biggest change is the location of the archives widget timeline thing, which I moved to the opposite side of the window. The reasoning has to do with Fitt’s law and the widget sharing vicinity with the browser scrollbar. I was never comfortable with how close the two interface elements were.
I’m still unsure if the widget works for its purpose, but since I haven’t gotten any particularly negative feedback about it, I figure it must do its job adequately.
The widget itself – the code, I mean – is so simple I thought I’d share it.
The HTML (plus ExpressionEngine)
Then I stick this in the
<head> of the index page:
There you have it. Feel free to reuse and repurpose the widget for your own project or website. Let me know if you do, I’d love to see how it’s adapted.
(Thanks to Coda for the code formatting via ‘copy-as-XHTML’ function!)