thooyork / thooClock

jQuery analogue AlarmClock Plugin
MIT License
30 stars 17 forks source link

auto alarm atop #14

Closed sibony88 closed 6 years ago

sibony88 commented 6 years ago

hi is thare a way to auto stop the alarm like after a minut

thooyork commented 6 years ago

You can do that by manually call the clearAlarm method after your desired time, e.g. one minute. Just set a Timeout in the alarm function to clear alarm afterwards. like

setTimeout(function(){ //do your stuff here $.fn.thooClock.clearAlarm }, 60000);