This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
generated from BuildforSDG-Cohort1-Assessment/covid-19-estimator-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
70 lines (65 loc) · 2.95 KB
/
test.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Covid Estimator">
<meta name="description" content="An app to feed the estimator function">
<meta name="theme-color" content="rgb(25, 28, 70)" />
<link rel="apple-touch-icon" href="src/images/icon-152x152.png">
<title>Covid 19 Estimator Challenge</title>
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="src/css/style.css">
</head>
<body>
<div class="container">
<div class="page-header">
<h1 class="text-center jumbotron bg-transparent">Fill out the form below</h1>
</div>
<div class="row justify-content-center">
<div class="card col-md-7">
<form action="process.php" method="post">
<div class="form-group">
<label for="population">Enter the total population</label>
<input type="number" data-population name="population" id="population" class="form-control">
</div>
<div class="form-group">
<label for="timeToElapse">Enter the Time to Elapse</label>
<input type="number" data-time-to-elapse name="timeToElapse" id="timeToElapse" class="form-control">
</div>
<div class="form-group">
<label for="reportedCases">Enter Number of reported cases</label>
<input type="number" data-reported-cases name="reportedCases" id="reportedCases" class="form-control">
</div>
<div class="form-group">
<label for="totalHospitalBeds">Enter the total Hospital Beds</label>
<input type="number" data-total-hospital-beds name="totalHospitalBeds" id="totalHospitalBeds" class="form-control">
</div>
<div class="form-group">
<label for="periodType">Choose Period Type</label>
<select name="periodType" id="periodType" class="form-control" data-period-type>
<option value="" disabled selected>Select Type</option>
<option value="days">Days</option>
<option value="weeks">Weeks</option>
<option value="months">Months</option>
</select>
</div>
<button type="submit" class="btn btn-outline-primary col-md-5" name="submit" data-go-estimate>Submit</button>
</form>
</div>
</div>
<script>
//regisering the service worker
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('service-worker.js')
.then((reg) => {
console.log('Service worker registered.', reg);
});
});
}
</script>
</body>
</html>