开发者

Output the countdown has ended when countdown is zero JS

开发者 https://www.devze.com 2023-04-04 06:13 出处:网络
http://keith-wood.name/countdown.html I am using this jQuery plugin. $(\'#noDays\').countdown({ 开发者_高级运维until: enddate_final, format: \'HMS\', compact: true, description: \'\', timeSeparator:

http://keith-wood.name/countdown.html

I am using this jQuery plugin.

$('#noDays').countdown({
开发者_高级运维    until: enddate_final, format: 'HMS', compact: true, description: '', timeSeparator: ' : '});

Is what I have and works fine. I wish to output "The countdown has ended" if/when the countdown is 00:00:00.

How can i do this?


See docs on page you posted,

Tab: Callbacks Example no.3

using configuration property expiryText

$('#expireMessage').countdown({
    until: shortly.setSeconds(shortly.getSeconds() + 5.5), 
    expiryText: '<div class="over">It\'s all over</div>'
}); 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号