Code

Support for CircleTimer - jQuery Countdown Timer

AthenaStudio

AthenaStudio supports this item

Supported

This author's response time can be up to 5 business days.

Popular questions for this item

How to countdown for a few minutes?

You can countdown the timer for a few minutes like that:

$(document).ready(function() {

    function formatDate(date) {
        var year = date.getFullYear();
        var month = ('0'+(date.getMonth()+1)).slice(-2);
        var day = ('0'+date.getDate()).slice(-2);
        var hour = ('0'+date.getHours()).slice(-2);
        var minute = ('0'+date.getMinutes()).slice(-2);
        var second = ('0'+date.getSeconds()).slice(-2);                

        return year+"/"+month+"/"+day+" "+hour+":"+minute+":"+second;
    }

    var startDate = new Date();
    var endDate = new Date(startDate);
    var addMinute = 3; //Change minutes
    endDate.setMinutes(endDate.getMinutes()+addMinute);    

    //Countdown timer
    $(".countdown").circleTimer({
        startDate:formatDate(startDate),
        endDate:formatDate(endDate),
        showDay:false,
        showHour:false,
        timeZone:-5, //Time zone of New York (Change time zone)
        onFinish:function() {
            alert("Countdown ended");
        }
    });

});

You should write your time zone to make it work properly.

Contact the author

This author provides limited support for this item through this item's comments.

Item support includes:

  • Availability of the author to answer questions
  • Answering technical questions about item’s features
  • Assistance with reported bugs and issues
  • Help with included 3rd party assets

However, item support does not include:

  • Customization services
  • Installation services

View the item support policy

by
by
by
by
by
by