Skip navigation.

exploreopera

| Help

Sign up | Help

photo

Helmers

being a good student

Updated the analog clock Widget

, , ,

Last week I updated the analog clock Widget with some fresher graphics. For some reason, it is the second most downloaded widget of all times, with over 400.000 downloads.

When updated it, I added a small tweak to help out our Linux users:

if (navigator.platform.toLowerCase().indexOf('linux') > -1 ) { document.body.className ="linux" };
It checks if the Widget is run on the Linux platform, and if it is, sets class name of the <body> to "linux". I then have special backgrounds for Linux added in CSS. This way Linux users will get prettier clocks without the annoying drop-shadows (Widgets on Linux don't support more than 1bit transparency).

Thanks to our JS developers for that little bit of code. :angel:

You, the awesome machineI know who you are...

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Please type this security code : 8c23e5

Smilies