Changement affichage du temps
continuous-integration/drone/push Build was killed Details

ServeurDeTest
Noé GARNIER 2 years ago
parent b595ea98df
commit f9dd2e8f0f

@ -57,7 +57,15 @@
if (remainingSeconds < 10) {
remainingSeconds = "0" + remainingSeconds;
}
if (hours == 0){
document.getElementById('countdown').innerHTML = minutes + " minutes " + remainingSeconds + " secondes";
}
else if (minutes == 0){
document.getElementById('countdown').innerHTML = "Il reste moins d'une minute.";
}
else {
document.getElementById('countdown').innerHTML = hours + " heures " + minutes + " minutes " + remainingSeconds + " secondes";
}
if (seconds == 0) {
clearInterval(countdown);
window.location.href = 'http://82.165.180.114/Scripted/index.php?action=endGame'

@ -200,7 +200,15 @@
if (remainingSeconds < 10) {
remainingSeconds = "0" + remainingSeconds;
}
if (hours == 0){
document.getElementById('countdown').innerHTML = minutes + " minutes " + remainingSeconds + " secondes";
}
else if (minutes == 0){
document.getElementById('countdown').innerHTML = "Il reste moins d'une minute.";
}
else {
document.getElementById('countdown').innerHTML = hours + " heures " + minutes + " minutes " + remainingSeconds + " secondes";
}
if (seconds == 0) {
clearInterval(countdown);
window.location.href = 'http://82.165.180.114/Scripted/index.php?action=endGame'

Loading…
Cancel
Save