1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
| <script type="text/javascript">
$('#clock01').countdown('2035/11/12 08:15:36')
.on('update.countdown', function(event) {
var format = '%H:%M:%S';
if(event.offset.minutes = 2) {
alert('Le temps 1 est écoulé'); /* Affiche l'alerte */
}
if(event.offset.days > 0) {
format = '%-dj%!d ' + format;
}
if(event.offset.weeks > 0) {
format = '%-wsem%!w ' + format;
}
$(this).html(event.strftime(format));
})
.on('finish.countdown', function(event) {
$(this).parent()
.addClass('disabled')
.html('<strong>Terminé</strong>');
});
$('#clock02').countdown('2018/11/12 08:15:36')
.on('update.countdown', function(event) {
var format = '%H:%M:%S';
if(event.offset.minutes = 2) {
alert('Le temps 1 est écoulé'); /* Affiche l'alerte */
}
if(event.offset.days > 0) {
format = '%-dj%!d ' + format;
}
if(event.offset.weeks > 0) {
format = '%-wsem%!w ' + format;
}
$(this).html(event.strftime(format));
})
.on('finish.countdown', function(event) {
$(this).parent()
.addClass('disabled')
.html('<strong>Terminé</strong>');
});
$('#clock04').countdown('2016/11/12 08:15:36')
.on('update.countdown', function(event) {
var format = '%H:%M:%S';
if(event.offset.minutes = 2) {
alert('Le temps 1 est écoulé'); /* Affiche l'alerte */
}
if(event.offset.days > 0) {
format = '%-dj%!d ' + format;
}
if(event.offset.weeks > 0) {
format = '%-wsem%!w ' + format;
}
$(this).html(event.strftime(format));
})
.on('finish.countdown', function(event) {
$(this).parent()
.addClass('disabled')
.html('<strong>Terminé</strong>');
});
$('#clock05').countdown('2015/11/12 08:15:36')
.on('update.countdown', function(event) {
var format = '%H:%M:%S';
if(event.offset.minutes = 2) {
alert('Le temps 1 est écoulé'); /* Affiche l'alerte */
}
if(event.offset.days > 0) {
format = '%-dj%!d ' + format;
}
if(event.offset.weeks > 0) {
format = '%-wsem%!w ' + format;
}
$(this).html(event.strftime(format));
})
.on('finish.countdown', function(event) {
$(this).parent()
.addClass('disabled')
.html('<strong>Terminé</strong>');
});
</script>
// etc, etc... |