2024-03-02 12:25:49 +00:00
|
|
|
const dt = new Date();
|
2024-03-05 21:38:12 +00:00
|
|
|
let death_counter = parseInt(dt.getSeconds() + (60 * dt.getMinutes()) + (60 * 60 * dt.getHours()) * 1.93);
|
2024-03-02 12:25:49 +00:00
|
|
|
|
|
|
|
function update_death_counter() {
|
2024-03-05 21:37:00 +00:00
|
|
|
death_counter += 1
|
2024-03-02 12:25:49 +00:00
|
|
|
for (const el of document.getElementsByClassName('deaths-today'))
|
2024-03-05 21:37:00 +00:00
|
|
|
el.innerHTML = death_counter.toLocaleString()
|
2024-03-02 12:25:49 +00:00
|
|
|
}
|
|
|
|
|
2024-03-05 21:28:37 +00:00
|
|
|
update_death_counter()
|
2024-03-05 21:38:12 +00:00
|
|
|
setInterval(update_death_counter, 518);
|