timer.jquery icon indicating copy to clipboard operation
timer.jquery copied to clipboard

countdown timer shows negative time.

Open bhavanac24 opened this issue 4 years ago • 0 comments

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

bhavanac24 avatar Sep 20 '21 10:09 bhavanac24