Fix damage
This commit is contained in:
@@ -8,7 +8,7 @@ function update_time() {
|
|||||||
const now = new Date();
|
const now = new Date();
|
||||||
|
|
||||||
if(now >= target) {
|
if(now >= target) {
|
||||||
countdown.innerHTML = "Akce již proběhla.<br>Děkujeme všem za návštěvu.";
|
countdown.innerHTML = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ function update_time() {
|
|||||||
if (day == "0") {
|
if (day == "0") {
|
||||||
countdown.innerHTML = `${hour}:${min}:${sec}`;
|
countdown.innerHTML = `${hour}:${min}:${sec}`;
|
||||||
} else {
|
} else {
|
||||||
countdown.innerHTML = `${day} dní ${hour}:${min}:${sec}`;
|
countdown.innerHTML = `${day}d ${hour}:${min}:${sec}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user