Skip to content

countdown timer shows negative time.  #102

@bhavanac24

Description

@bhavanac24

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions