-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (56 loc) · 2.56 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>COVID-19 Calculator</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Calculates current number of infections based on official deaths and other statistics.">
<link rel="stylesheet" type="text/css" href="main.css">
<script defer src="Chart.min.js"></script>
<script defer src="main.js"></script>
</head>
<body>
<header>
<h1>COVID-19 Calculator</h1>
<p>⚠️<br>This calculator only made sense at the beginning of the pandemic because it works on the basis of the doubling number.<br>More information can be found <a href="https://github.com/cd/covid-19-calculator#background-information-march-18-2020">here</a>.<br>⚠️</p>
</header>
<main>
<section id="result">
<p><span id="infected-now"></span> infected today!*</p>
<div id="chart"><canvas></canvas></div>
</section>
<section id="settings">
<form>
<div class="row">
<label for="deaths">How many deaths are known in your region?</label>
<input type="number" id="deaths" value="10" required>
</div>
<div class="row">
<label for="death-rate">Mortality Rate [%]</label>
<input type="number" id="death-rate" value="1.0" step="0.1" min="0.1" max="99.9" required>
</div>
<div class="row">
<label for="day-to-death">Days from infection to death</label>
<input type="number" id="day-to-death" value="24" required>
</div>
<div class="row">
<label for="doubling-time">Number of days in which the number of infections doubles</label>
<input type="number" id="doubling-time" value="4.0" step="0.1" min="1" required>
</div>
<div id="hint">Default values are based on <a href="https://github.com/midas-network/COVID-19/blob/master/parameter_estimates/2019_novel_coronavirus/README.md">these COVID-19 data tables</a>. Change them if you want!</div>
<button>Calculate!</button>
</form>
</section>
</main>
<footer>
<p id="footnote">* Further information about this number and the calculator itself can be found <a href="https://github.com/cd/covid-19-calculator#background-information-march-18-2020">here</a></p>
<h2>Imprint</h2>
<span>Christian Diederich</span>
<span>Heinrich-Mann-Str. 1</span>
<span>44141 Dortmund, Germany</span>
<span>E-Mail: chrdiede@gmail.com</span>
<span>Tel: +49 (0) 1575 2935876</span>
</footer>
</body>
</html>