timer.jquery
timer.jquery copied to clipboard
countdown timer shows negative time.
Hi,
I have an issue where the timer shows negative time and callback is not called when the mobile screen is locked. When screen is unlocked how to make sure that the timer stops at 0 and doesn't display negative values. Below is my config.
var totalSeconds = 20;
$("#t").timer({
action: 'start',
duration: totalSeconds,
countdown: true,
callback: function () {
location.reload();
}
});
Regards, Bhavana C