Skip to content

Time format for decimal like #25

@kimolalekan

Description

@kimolalekan

Thanks for the plugin!

Time format for decimal like leadingZeroes method.

Example
15000 will be format as 15.00

I tried this, but it didn't work

$('.counter').countdown({
date: +(new Date) + 15000,
render: function(data) {
var ti= this.leadingZeros(data.sec, 2);
var ts= ti.toFixed(2);
$(this.el).text(ts + " sec");
}
});

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