Jquery countdown warn user 5 minutes before time over -


i'm using jquery countdown in project (http://hilios.github.io/jquery.countdown/). want warn user 5 minutes before end counter (displaying alert) , 10 minutes after end of counter . in website documentation saw that, there event called elapsed giving information time over.

any suggestions please? guess have work event call finaldate.

problem fixed. warn user , used offset.minutes event on update callback. here code

flag2 = true;  $('#clock').countdown(dateseance, { elapse: true }).on('update.countdown', function (event) {                  if (event.offset.minutes == (4) && flag2) {                     alert("less 5 minutes before end of counter");                     flag2 = false;                 } 

we use flag2 display alert once. when counter 4mn 59 s alert displayed.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo