Image 01
profile-image

ussich

giorgio bellussi
Adjustable Clock

Plasma 4 Extensions by Emdek 354 comments

(for errors please complain to google translate)
Dedicated to fussy people like me:
so the hour hand of the analog clock moves progressively with the passing of minutes I changed the function updateClock replacing the line:
document.getElementById('hour').style.webkitTransform = 'rotate(' + (270 - (Clock.getValue(Clock.Hour, {'short': true, 'alternative': !alternativeHoursMode}) * (alternativeHoursMode ? -15 : -30))) + 'deg)';

with:
document.getElementById('hour').style.webkitTransform = 'rotate(' + (
270 -
(Clock.getValue(Clock.Hour, {'short': true, 'alternative': !alternativeHoursMode}) * (alternativeHoursMode ? -15 : -30)) -
(Clock.getValue(Clock.Minute, {'short': true, 'alternative': !alternativeHoursMode}) / (alternativeHoursMode ? -4 : -2))
) + 'deg)';

Cheers - Jul 22 2015