Lexxus / jq-timeTo

jQuery plugin - timer countdown digital clock

Home Page:http://lexxus.github.io/jq-timeTo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reset time

ankkk opened this issue · comments

commented

Hi, tell me how to reset the timer after time is over?

Hello, I think you can try call timer again in callback function. Somethink like this:
function showMyTimer(groupSeconds)
{
$('#timer').timeTo({
seconds: groupSeconds,
countdownAlertLimit: 10,
callback: trigerTimeOut
});
}

showMyTimer(30);

function trigerTimeOut()
{
    showMyTimer(30);
}

Hi,

I've already fixed the reset method, so you can reset the timer in this way:

$('#timer').timeTo('reset');

However, there are another issues therefor I didn't release new version yet.

On 25 February 2015 at 21:13, X-factor89 notifications@github.com wrote:

Hello, I think you can try call timer again in callback function.
Somethink like this:
function showMyTimer(groupSeconds)
{
$('#timer').timeTo({
seconds: groupSeconds,
countdownAlertLimit: 10,
callback: trigerTimeOut
});
}

showMyTimer(30);

function trigerTimeOut()
{
showMyTimer(30);
}


Reply to this email directly or view it on GitHub
#17 (comment).