jCounter by Catalin Berta
Abstract
jCounter is a simple light-weight extensible jQuery plugin that helps you create various date-based countdowns, countups and custom timers.
Description
jCounter is a simple light-weight extensible jQuery plugin that helps you create various date-based countdowns, countups and custom timers. It comes with server-side timezone support to display accurate countdowns across the globe, native methods to easily control the countdown and various settings to serve most needs.
Code Snippet
$(".countdown").jCounter({
date: "1 january 2013 12:00:00",
timezone: "Europe/Bucharest",
format: "dd:hh:mm:ss",
twoDigits: 'on',
fallback: function() { console.log("Counter finished!") }
});
$('.pause').click(function() {
$(".countdown").jCounter('pause');
});
$('.stop').click(function() {
$(".countdown").jCounter('stop');
});
$('.start').click(function() {
$(".countdown").jCounter('start');
});


Leave a Response
(0 comments)