Update 'covid-speedrun/index.html'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
23f9c2e2e7
commit
ca5e93ed2c
@ -41,13 +41,15 @@
|
||||
<h1>Han's Covid Speedrun Record</h1>
|
||||
<h2>Any% - Omicron Variant</h2>
|
||||
<h4>(Started at 5:51pm EDT on Aug 17 2022)</h4>
|
||||
<table id="speedrun">
|
||||
<table>
|
||||
<tbody id="speedrun">
|
||||
<tr>
|
||||
<th>Checkpoint</th>
|
||||
<th>Time</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="final"></tbody>
|
||||
</table>
|
||||
<table><tbody><tr><td style="color: rgb(0, 255, 0);font-size: 30px;text-align: right;">🏆 3d 23:59:47.180</td></tr></tbody></table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
@ -55,6 +57,7 @@
|
||||
</table>
|
||||
<script>
|
||||
var table = document.getElementById("speedrun");
|
||||
var final = document.getElementById("final");
|
||||
|
||||
var timeline = { // I actually can't recall that much detail so this is just a rough estimate
|
||||
"Possible Exposure": new Date("Aug 14, 2022 22:00:00"),
|
||||
@ -99,7 +102,13 @@
|
||||
// Win
|
||||
cell1.innerHTML = "Tested Negative!";
|
||||
cell2.innerHTML = timeSince(new Date("Aug 21, 2022 17:50:57.303") - timeline["First Positive"]);
|
||||
|
||||
var row = final.insertRow();
|
||||
var cell = row.insertCell(0);
|
||||
cell.colSpan = 2;
|
||||
cell.innerHTML = "🏆 3d 23:59:47.180";
|
||||
cell.style.color = "#00ff00";
|
||||
cell.style.fontSize = "30px";
|
||||
cell.style.textAlign = "right";
|
||||
|
||||
function timeSince(timestamp) {
|
||||
var sign = "+";
|
||||
|
Loading…
Reference in New Issue
Block a user