[Starkit] styled version of tclkit download matrix
Jeff Hobbs
jeffh at activestate.com
Mon May 8 13:46:03 CEST 2006
Jean-Claude Wippler wrote:
> Yeah, I thought of reversing it as well. Did that part, and reduced
> font size a bit (or is that too small?). Also added a note that you
> get additional info when hovering over a specific entry.
That looks better. A pity that alphabetical order doesn't well reflect
popularity order in any way.
> The autodetect part I'll be happy to leave to someone more versed in
> web-lingo than me...
It goes something like this:
set platform unknown
if {[info exists ::env(HTTP_USER_AGENT)]} {
# We can't do this for cached pages - or do it in js
switch -glob $::env(HTTP_USER_AGENT) {
*Windows* { set platform Windows }
*Macintosh* { set platform "Mac OS X" }
*Linux* { set platform Linux }
*SunOS* - *Solaris* { set platform Solaris }
}
...
but then what you do with $platform is up to you. I've not drilled down to
how you might differentiate OS subtypes, if possible. I didn't find anything
online that is complete about what user agents you might expect.
Jeff
More information about the Starkit
mailing list