Refer to the jQuery yycountdown website for examples.
<link rel="stylesheet" href="css/jquery.yycountdown.css">
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/jquery.yycountdown.min.js"></script>
$('#timer').yycountdown({
endDateTime : '2020/07/24 00:00:00'
});
$('#timer2').yycountdown({
startDateTime : '2020/07/23 23:59:55',
endDateTime : '2020/07/24 00:00:00',
unit : {d: '日', h: '時間', m: '分', s: '秒'},
complete : function(_this){
_this.find('.yycountdown-box').fadeOut();
}
});
<div id="timer"></div>
<div id="timer2"></div>
Open sample.html