-
Notifications
You must be signed in to change notification settings - Fork 1
/
offline.html
85 lines (80 loc) · 3.63 KB
/
offline.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gestational Age Calculator</title>
<link rel="icon" href="/img/logo.png" type="image/x-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div class="container">
<div class="card bg-dark text-info border-info text-center p-3 mt-3 row">
<h3 class="card-title text-uppercase mb-5">Gestational Age Calculator</h3>
<div class="card-body">
<div class="row">
<div class="form col-md-8">
<div class="row mb-5">
<label for="lmp" class="col-md-6 col-sm text-md-right">Last Menstrual Period</label>
<input type="date" class="col-md-4 form-input border-info text-info" id='lmp'>
</div>
<div class="row mb-5">
<label for="today" class="col-md-6 col-sm text-md-right">Today's date</label>
<input type="date" class="col-md-4 form-input border-info text-info" id='today'>
</div>
<div class="w-50 d-flex justify-content-center align-items-center mx-auto mb-5" id="button-area">
<button class="btn btn-primary px-4 mr-3 text-nowrap" id="calculate-btn">
<span class="spinner-border spinner-border-sm mb-1 mr-2 "></span>
Calculate
</button>
<button class="btn btn-primary px-4" id="clear-btn">
Clear
</button>
</div>
</div>
<div class="col-md-4 border border-info rounded display-sm-none">
<div class="border-info mx-auto text-info hide-sm py-1">
<h4 class="text-uppercase text-left ml-4">How to use</h4>
<div class="">
<ul class="text-left">
<li class="list-item"><small>Enter the date of the first day of Last Menstrual Period</small></li>
<li class="list-item"><small>Today's date is already entered by default</small></li>
<li class="list-item"><small>You can enter another date as today's date to know the EGA at that date</small></li>
<li class="list-item"><small>Press the calculate button to know the EDD and the EGA</small> </li>
<li class="list-item"><small>Use the clear button to clear all fields and enter another value</small></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="" id="results">
<div class="card bg-dark text-info border-info text-center p-3 mt-3">
<div class="card-body row">
<p class=" col-sm-6 text-info text-uppercase">
Expected Delivery Date: <br>
<span class="font-weight-bolder mt-2" id="edd"> </span>
</p>
<p class=" col-sm-6 text-info text-uppercase">
Estimated Gestational Age: <br>
<span class="font-weight-bolder mt-2" id="ega"> </span>
</p>
</div>
</div>
</div>
</div>
</div>
<footer class="p-3 bg-light fixed-bottom">
<div class="container text-center">
<small>Copyright © 2023 Abdulrasheed Nasir</small>
</div>
</footer>
<script src="/js/app.js" type="module"></script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js');
}
</script>
</body>
</html>