-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
79 lines (75 loc) · 3.65 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
<!DOCTYPE html>
<head>
<title>
COVID-19 Bangladesh: predictions and R(t) update
</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"
integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
crossorigin=""></script>
<link rel="stylesheet" href="css/style.css"/>
<link rel="icon" type="image/png" sizes="128x128" href="static/favicon.png">
</head>
<body>
<div class="wrapper">
<div id="mapid" class="column"></div>
<div id="seir" class="column data_column">
<div id="seir_title">
<select name="districts" id="districts">
</select>
</div>
<div id="death_plot" class="plot_row">
<div id="death_plot_title" class="title">
Predicted daily cases
</div>
<div id="rt_selection" class="plot_row">
<div id="real_death_rt" class="rt_display">
Yesterday's value of R(t) = <span id="death_rt_value">1</span>
</div>
<div id="plotted_death_rt" class="rt_display">
Currently projection shown for R(t) = <span id="plot_death_rt_value">1</span>
</div>
<div class="slidecontainer">
<input
class="slider" id="death_rt" type="range" min="0" max="5" step="0.01" value=1
>
<div class="sliderinstructions">
Move the above slider to see predictions for different R(t).
<button type="button" class="sliderbutton" onclick="resetRt()">Reset slider</button>
</div>
</div>
</div>
<div style = "width:90%; height: 100%;">
<canvas id="caseChart" width="100" height="400"></canvas>
</div>
</div>
<div id="rt_plot" class="plot_row">
<div id="rt_plot_title" class="title">
Estimated daily R(t)
</div>
<div style="width: 90%; height: 100%;">
<canvas id="rtChart" width="100" height="300"></canvas>
</div>
</div>
<!-- <div id="sick_plot" class="plot_row">
<div id="sick_plot_title" class="title">
Predicted daily infections
</div>
<div style = "width:90%; height: 100%;">
<canvas id="sickChart" width="100" height="50"></canvas>
</div>
</div> -->
</div>
</div>
<script src ="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chartjs-plugin-annotation/0.5.7/chartjs-plugin-annotation.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/runge-kutta-4@1.0.5/lib/RungeKutta4.min.js"></script>
<script src="js/utils.js" charset="utf-8"></script>
<script src="js/seir.js" charset="utf-8"></script>
<script src="js/district.js" charset="utf-8"></script>
<script src="js/plots.js"></script>
<script src="js/map.js"></script>
</body>