Update 'covid-speedrun/index.html'
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Han Dai 2022-08-20 22:35:39 +00:00
parent 93334e4e9f
commit b8f6e44d2f
1 changed files with 4 additions and 8 deletions

View File

@ -80,23 +80,19 @@
}
}
// Still Running
// Last Row
var row = table.insertRow();
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
cell1.innerHTML = "NOW";
cell1.style.color = "#00ff00";
cell2.style.color = "#00ff00";
// Still Running
cell1.innerHTML = "NOW";
function now() {
cell2.innerHTML = timeSince(new Date() - timeline["First Positive"]);
}
setInterval(now, 10);
// Win
// var row = table.insertRow();
// var cell1 = row.insertCell(0);
// var cell2 = row.insertCell(1);
// cell1.style.color = "#00ff00";
// cell2.style.color = "#00ff00";
// // Win
// cell1.innerHTML = "Tested Negative!";
// cell2.innerHTML = timeSince(new Date("Aug xx, 2022 xx:00:00.000") - timeline["First Positive"]);