Update 'covid-speedrun/index.html'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Han Dai 2022-08-21 21:59:24 +00:00
parent 9bc56cbcf1
commit f48c77db0e

View File

@ -89,15 +89,15 @@
var cell2 = row.insertCell(1); var cell2 = row.insertCell(1);
cell1.style.color = "#00ff00"; cell1.style.color = "#00ff00";
cell2.style.color = "#00ff00"; cell2.style.color = "#00ff00";
// Still Running // // Still Running
cell1.innerHTML = "NOW"; // cell1.innerHTML = "NOW";
function now() { // function now() {
cell2.innerHTML = timeSince(new Date() - timeline["First Positive"]); // cell2.innerHTML = timeSince(new Date() - timeline["First Positive"]);
} // }
setInterval(now, 10); // setInterval(now, 10);
// // Win // Win
// cell1.innerHTML = "🏆 Tested Negative!"; cell1.innerHTML = "🏆 Tested Negative!";
// cell2.innerHTML = timeSince(new Date("Aug xx, 2022 xx:00:00.000") - timeline["First Positive"]); cell2.innerHTML = timeSince(new Date("Aug 21, 2022 17:50:57.303") - timeline["First Positive"]);
function timeSince(timestamp) { function timeSince(timestamp) {