Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time format for decimal like #25

Open
kimolalekan opened this issue May 7, 2015 · 0 comments
Open

Time format for decimal like #25

kimolalekan opened this issue May 7, 2015 · 0 comments

Comments

@kimolalekan
Copy link

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");
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant