-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (72 loc) · 2.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<style>
.footer {
position:fixed;
left:0px;
bottom:0px;
height:30px;
width: 100%;
background-color: #a3834b;
color: white;
text-align: center;
}
ul {
display: flex;
align-items: stretch;
justify-content: space-between;
width: 100%;
margin: 0;
padding: 0;
}
li {
display: block;
flex: 0 1 auto;
list-style-type: none;
}
p {
font-size: large;
}
</style>
<html>
<head>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
</head>
<body style="background-color: wheat; margin: 0; font-family: 'Courier New', Courier, monospace; margin: 40px;">
<div>
<h1 style="text-align: center;">COVID-19 Simulator</h1>
<ul>
<li></li>
<li>
<h3>Sick</h3>
<p id="sickCount"></p>
</li>
<li>
<h3>Healthy</h3>
<p id="healthyCount"></p>
</li>
<li>
<h3>Recovered</h3>
<p id="recoveredCount"></p>
</li>
<li></li>
</ul>
</div>
<div id="simSettings" style="text-align: center;">
<h3>Simulation Type</h3>
<input type="radio" name="simType" value="freeForAll" checked>Free-for-all<br>
<input type="radio" name="simType" value="distancing">Distancing<br>
<div>
<label style="margin: 5px;" for="percentage" id="percentageLabel" hidden>Percentage of people distancing:</label><br>
<input style="margin: 5px;" type="number" id="percentage" min="0" max="100" value="50" hidden>
</div>
<button id="newSim" style="margin: 10px;">New Simulation</button>
</div>
<div id="chart" style="margin: 15px;">
<canvas style="display: block; margin: 0 auto;"id="statusChart" width="600" height="250"></canvas>
</div>
<div class="footer">
<p style="margin: 5px;">©2020 Evan Wilt</p>
</div>
<script src="index.js"></script>
</body>
</html>