Get started with jquery.countdown CDN
MIT licensed
JQuery Countdown is a plugin that allows creating and managing countdown timers on webpages.
Tags:- countdown
- coupons
- auction
- clock
- datetime
- date
Stable version
Copied!
How to start using jquery.countdown CDN
$(document).ready(function() {
// Set the deadline for the countdown
var deadline = new Date("Jan 5, 2023 00:00:00").getTime();
// Initialize the countdown
$('.countdown').countdown({
timestamp: deadline,
offset: -3 * 60 * 60, // adjust for your timezone (GMT-3 in this example)
onExpiry: function() {
// Do something when the countdown expires
alert("Time's up!");
},
format: function(days, hours, minutes, seconds) {
return days + "d " + hours + ":" + minutes + ":" + seconds;
}
});
});
Copied!
Copied!