Closed harmenzon closed 10 years ago
Use .data('timer', value)
instead, and call .restart()
immediately after the change.
So:
$('#Timer').data('timer', 20).TimeCircles().Restart();
Also, in the latest version (just released 5 minutes ago), I added the .addTime(5)
function. Where the 5 would be the number of seconds you want to add to the countdown.
If you have more questions or problems, feel free to ask
Thanks! Works perfect!
when I change the data-timer the UI is not updated, why is that?
$(".stopWatch").TimeCircles({timer:
Hello. Thanks for this great plugin. I am trying to change the data-timer value with Javascript or by changing the value of an input. So making it a variable. Can you please advice me how to change the value of the data-timer this way? Thanks!