var countDownDateA = 1740178800 * 1000
var countDownDateB = 1738969200 * 1000;
var countDownDateC = 1739574000 * 1000;
var countDownDateCorse = 1739574000 * 1000;
var now = 1738213448 * 1000;
// Update the count down every 1 second
var x = setInterval(function() {
// Get todays date and time
// 1. JavaScript
// var now = new Date().getTime();
// 2. PHP
now = now + 1000;
// Find the distance between now an the count down date
var distanceA = countDownDateA - now;
var distanceB = countDownDateB - now;
var distanceC = countDownDateC - now;
var distanceCorse = countDownDateCorse - now;
// Time calculations for days, hours, minutes and seconds
var daysA = Math.floor(distanceA / (1000 * 60 * 60 * 24));
var hoursA = Math.floor((distanceA % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutesA = Math.floor((distanceA % (1000 * 60 * 60)) / (1000 * 60));
var secondsA = Math.floor((distanceA % (1000 * 60)) / 1000);
var daysB = Math.floor(distanceB / (1000 * 60 * 60 * 24));
var hoursB = Math.floor((distanceB % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutesB = Math.floor((distanceB % (1000 * 60 * 60)) / (1000 * 60));
var secondsB = Math.floor((distanceB % (1000 * 60)) / 1000);
var daysC = Math.floor(distanceC / (1000 * 60 * 60 * 24));
var hoursC = Math.floor((distanceC % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutesC = Math.floor((distanceC % (1000 * 60 * 60)) / (1000 * 60));
var secondsC = Math.floor((distanceC % (1000 * 60)) / 1000);
var daysCorse = Math.floor(distanceCorse / (1000 * 60 * 60 * 24));
var hoursCorse = Math.floor((distanceCorse % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutesCorse = Math.floor((distanceCorse % (1000 * 60 * 60)) / (1000 * 60));
var secondsCorse = Math.floor((distanceCorse % (1000 * 60)) / 1000);
document.getElementById("cA").innerHTML = 'Prochaines vacances dans :
' + daysA + '
Jours' + hoursA + '
Heures' + minutesA + '
Minutes' + secondsA + '
Secondes';
document.getElementById("cB").innerHTML = 'Prochaines vacances dans :
' + daysB + '
Jours' + hoursB + '
Heures' + minutesB + '
Minutes' + secondsB + '
Secondes';
document.getElementById("cC").innerHTML = 'Prochaines vacances dans :
' + daysC + '
Jours' + hoursC + '
Heures' + minutesC + '
Minutes' + secondsC + '
Secondes';
document.getElementById("cCorse").innerHTML = 'Prochaines vacances dans :
' + daysCorse + '
Jours' + hoursCorse + '
Heures' + minutesCorse + '
Minutes' + secondsCorse + '
Secondes';
}, 1000);