JSFiddle - React, Tailwind, and code Playground
HTML
<div id="countdown">
</div>
CSS
.fto-txt-timer {
border: 3px solid #8C8C8C;
background: #F6F6F6;
width: 44px;
font: 20px arial;
text-align: center;
margin-top: 5px;
height: 36px;
}
.mar8left {
margin-left: 8px;
}
.countdown_amount {
font-size: 150%;
}
.countdown_row {
clear: both;
width: 100%;
padding: 0px 2px;
text-align: center;
}
.mar5left {
margin-left: 5px;
}
.fl {
float: left;
}
.center {
text-align: center;
}
JavaScript
expirydate = new Date();
expiry = new Date(expirydate.getFullYear(), 1-1, 23, 23, 59, 59);
$("#countdown").countdown({until: expiry, significant: 4});