How to reset the countdown timer

2 replies · opened Oct 13, 2017

MmayconprrOct 13, 2017

Hi, first of all, thanks for the support and the beautiful job !

I want to reset the countdown timer when it is finished. Or add a new date once it has finished automatically. Is it possible ?

MmayconprrOct 13, 2017

Hi, I want to reset the countdown when it is finished. Or add a new date once it has finished automatically. Is it possible ?

MmayconprrOct 20, 2017

Thanks :


jQuery(document).ready( function($){
    var currentDate = new Date();
    currentDate.setSeconds(currentDate.getSeconds() + 5);
    $('#countdown-ex1').countdown({
        until: currentDate,
        onExpiry: function(){
            currentDate = new Date();
            currentDate.setSeconds(currentDate.getSeconds() + 5);
            $('#countdown-ex1').countdown('option', {until: currentDate});
        }
    });
});

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard