-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
125 lines (103 loc) · 5.26 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="dashboard-functions.js"></script>
<script src="node_modules/plotly.js/dist/plotly-basic.min.js"></script>
<script src="node_modules/papaparse/papaparse.min.js"></script>
<link rel="stylesheet" href="covid19r.css" />
<link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet" />
<link rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="node_modules/select2/dist/css/select2.css" rel="stylesheet" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Covid-19 Effective Reproduction Number (R) Estimates</title>
</head>
<body style="background-color: #fff" onload="initPlot()" class="vh-100">
<div class="wrapper">
<div id="plotcontainer" class="float-left w-100 h-100">
<div class="h-100 d-flex flex-column">
<div class="flex-column" style="padding-left: 15px; padding-top: 10px;">
<h1 class="d-block d-xl-none">Covid Curves</h1>
<h1 class="d-none d-xl-block">Covid-19 Effective Reproduction Number (R) Estimates</h1>
</div>
<div id="mainplot" class="flex-column flex-grow-1 overflow-auto"></div>
</div>
</div>
<div id="sidebarsmall" class="d-block d-xl-none">
<a href="https://poware.org"><img class="powarelogosmall" src="poware-logo.svg" /></a>
<button type="button" class="btn" onclick="toggleSidebar();">
<i class="fas fa-bars" ></i>
</button>
</div>
<div id="sidebar" class="float-right d-none d-xl-block" style="">
<div id="logocontainer" >
<a href="https://poware.org/covid19"><img id="powarelogo" src="poware-logo.svg" /></a>
</div>
<div id="curveselect">
Curve:
<select id="curveType" onchange="recalculateCurvesAndPlot(/*autoscale=*/true)">
<option value="R" selected>Estimated R</option>
<option value="C">Total Reported Cases</option>
<option value="c">New Reported Cases</option>
<option value="D">Total Reported Deaths</option>
<option value="d">New Reported Deaths</option>
<option value="P">New Cases, "Diamond Princess Estimate"</option>
<option value="p">"Diamond Princess Estimate" to Reported New Cases</option>
</select>
</div>
<div id="curvevariants">
Variants:
<li>
<input id="checkboxShowRaw" type="checkbox" onchange="recalculateCurvesAndPlot()">
<label for="checkboxShowRaw">Show Raw Curves</label>
</li>
<li>
<input id="checkboxShowSmoothened" type="checkbox" checked onchange="recalculateCurvesAndPlot()">
<label for="checkboxShowSmoothened">Show Smoothened Curves</label>
</li>
<li>
<input id="checkboxNormalize" type="checkbox" checked onchange="recalculateCurvesAndPlot()">
<label for="checkboxNormalize">Normalize by Population</label>
</li>
</div>
<div id="countrylistbox">
Countries:
<select name="Languages" id="countrylist" class="form-control" multiple="multiple" style="width: 100%; height: 50px;" size="1">
<option value="NONE">loading...</option>
</select>
</div>
<div id="rparameters">
R-Estimator Parameters:
<div class="rangewrap">
<label for="infectivityDays">Average Infectious Days:<!-- TODO: explainer --></label>
<div class="rangeInfo" id="infectivityDaysInfo">Unset</div>
<input type="range" min="5" max="40" value="14" class="range" id="infectivityDays" oninput="updateControlInfos()" onchange="recalculateCurvesAndPlot()" />
</div>
<div>
<label for="peakDayActive">Peak Infectiousness Day: <!-- TODO: explainer --></label>
<div class="rangeInfo" id="peakDayActiveInfo">Unset</div>
<input type="range" min="3" max="40" value="5" class="range" id="peakDayActive" oninput="updateControlInfos()" onchange="recalculateCurvesAndPlot()" />
</div>
<div>
<label for="firstDayActive">First Infectious Day: <!-- TODO: explainer --></label>
<div class="rangeInfo" id="firstDayActiveInfo">Unset</div>
<input type="range" min="-20" max="0" value="-2" class="range" id="firstDayActive" oninput="updateControlInfos()" onchange="recalculateCurvesAndPlot()">
</div>
<div id="infectivityplot"></div>
</div>
<div id="smoothenparameters">
Smoother Parameters:
<div>
<label for="smoothenDays">Period [Days]:<!-- TODO: explainer --></label>
<input type="range" min="3" max="50" value="7" class="range" id="smoothenDays" oninput="updateControlInfos()" onchange="recalculateCurvesAndPlot()">
<div class="rangeInfo" id="smoothenDaysInfo">Unset</div>
</div>
</div>
</div>
</div>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="node_modules/select2/dist/js/select2.min.js"></script>
</body>
</html>