-
Notifications
You must be signed in to change notification settings - Fork 1
/
desktop.html
191 lines (158 loc) · 5.83 KB
/
desktop.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<html>
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-164444048-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-164444048-2');
</script>
<meta charset="UTF-8">
<script language="javascript" type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script>
<script language="javascript" type="text/javascript" src="SocialDistancingSimulator0.js"></script>
<script type="text/javascript">
<!--
if (screen.width <= 700) {
document.location = "mobile.html";
}
//-->
</script>
<link href='https://fonts.googleapis.com/css?family=Overpass' rel='stylesheet'>
<link rel="stylesheet" href="style.css">
<title>COVID-19 Transmission Simulator</title
</head>
<body>
<h1>Transmission Simulator</h1>
<div class="container">
<div id="topRow">
<div id="options">
<div id="policy">
<span class="OptionsLabel"><span class = "icon"><img class = "imgpolicyicon" src="images/Policy.png"></span><span class = "label">Quarantine policy</span></span>
<table class='parameters'>
<tr>
<td>
<label class="checkcontainer noHover">Sick Leave
<input type="radio" id="leave" name="quarantine" value="leave" disabled="true">
<span class="checkmark"></span>
</label>
</td>
</tr>
<tr>
<td>
<label class="checkcontainer">No Sick Leave
<input type="radio" id="other" name="quarantine" value="stay" checked="checked">
<span class="checkmark"></span>
</label>
</tr>
</table>
</div>
<div id="ppe">
<span class="OptionsLabel"><span class = "icon"><img class = "imglungicon" src="images/Lungs.png"></span><span class = "label">Respiratory Protection</span></span>
<table class='parameters'>
<tr>
<td>
<label class="checkcontainer noHover">N95 Respirator
<input type="radio" id="n95" name="ppe" value="n95" disabled="true">
<span class="checkmark"></span></label>
</td>
</tr>
<tr>
<td>
<label class="checkcontainer noHover">Surgical Mask
<input type="radio" id="mask" name="ppe" value="mask" disabled="true">
<span class="checkmark"></span></label>
</tr>
<tr>
<td>
<label class="checkcontainer">None
<input type="radio" id="none" name="ppe" value="none" checked="checked">
<span class="checkmark"></span></label>
</td>
</tr>
</table>
</div>
</div>
<div id="ball-simulation0"></div>
<div id = "statistics">
<div id="topStats">
<div id="sickStat">
<span id="sick-stat0">0%</span>
<br>Positive Patients & Providers
</div>
<!--<div id="providerPercentage">
<span id="provider-percentage">0%</span>
<br>Provider Initiated Transmission
</div>-->
</div>
<div id="bottomStats">
<div id="deathStats">
<h2>Death Toll</h2>
<br>
<div id="doctorDeaths">
<span id="doctor-deaths"></span>
Provider(s)
</div>
<div id="patientDeaths">
<span id="patient-deaths"></span>
Community
</div>
</div>
</div>
</div>
</div>
<div id="midRow">
<div id="buttonDiv">
<input id='restart-button0' type='image' src='images/Button_1.png' value='Restart'/>
<label id="RestartButtonLabel" for="restart-button0">RESET</label>
</div>
<div id='graphDiv'>
<h2>Total COVID+ Cases</h2>
<div id="ball-graph0"></div>
<div id="timeGraph">
<div id="progressBar"></div>
<table id="timeTable" cellpadding="0">
<tr>
<td class= "timeLabel"></td>
<td class= "timeLabel"></td>
<td class= "timeLabel"></td>
<td class= "timeLabel"></td>
<td class= "timeLabel"></td>
<td class= "timeLabel">6 Months</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div id="bottomBar">
<div id="legend">
<table cellpadding="5">
<tr>
<th class="sideHeader">Healthy</th>
<td><span class="dot HealthyCivilian"></span></td>
<td><span class="HealthyProvider"><img class="HealthyProvider" src="images/HealthyProvider.png"></span></td>
<td rowspan="3"><span class="QuarantineIcon"></span></td>
<td rowspan="3"><span class="HospitalIcon"><img class="HospitalIcon" src="images/Hospital.png"></span></td>
</tr>
<tr>
<th class="sideHeader">COVID +</th>
<td><span class="dot InfectedCivilian"></span></td>
<td><span class="InfectedProvider"><img class="InfectedProvider" src="images/SickProvider.png"></span></td>
</tr>
<tr>
<th class="sideHeader">Deceased</th>
<td><span class="dot DeceasedCivilian"></span></td>
<td><span class="DeceasedProvider"><img class="DeceasedProvider" src="images/DeceasedProvider.svg"></span></td>
</tr>
<tr>
<td></td>
<th class="bottomHeader">Community<br>Member</th>
<th class="bottomHeader">Provider</th>
<th class="bottomHeader">Quarantine</th>
<th class="bottomHeader">Hospital</th>
</tr>
</table>
</div>
</div>
</body>
</html>