Unable to load image

How "Deaths Today" is counted

What rule and algorithm

5
Jump in the discussion.

No email address required.

const dt=new Date();let death_counter=parseInt(dt.getSeconds()+(60dt.getMinutes())+(6060*dt.getHours())*1.93);function update_death_counter(){death_counter+=1

for(const el of document.getElementsByClassName('deaths-today'))

el.innerHTML=commas(death_counter)}

update_death_counter()

setInterval(update_death_counter,518);


It just adds each second based off of current data of how many people die a second :nice:

Jump in the discussion.

No email address required.

No, it seems to add one death every 518ms from the basic ass JS i understood?

Jump in the discussion.

No email address required.

yeah it's like 1.93 each seconds or half that each 518 :nice:

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.