stylish analogue alarm-clock
jQuery plugin
⚠️ This Plugin is deprecated!
You can still use and modify this code, but it will no longer be maintained. Use ThyClock WebComponent instead
Change the colors of hands, dial foreground- and background colors, set brandtext and numerals on dial.
Set alarm time and fire custom events.
So you're in control what hapens on alarm.
In this example, alarm set to 14:30
customized callback:
onAlarm:function(){
console.log('14:30h - ALARM!');
}
Fire event every second just by provide a callback function to onEverySecond().
Set time to +X or -X hours or minutes.
-2 hours and 20 minutes |
+3 hours |
+1 hours, 15 minutes |
Get an automatic clock style by setting sweepingSeconds to true.
Decide which numerals to be shown.
3,6,9,12 |
2,4,6,8,10,12 |
Roman |
Uses HTML5 Canvas element, runs all modern browsers (Internet Explorer >=9)