This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
174 lines (156 loc) · 5.77 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!--
BMI Calculator
Copyright (C) 2022 Coadon.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>BMI Calculator</title>
<link rel="stylesheet" href="default.css" />
<style>
#notice {
border-color: antiquewhite;
border-style: inset;
padding-left: 1em;
margin-bottom: 5em;
margin-left: 5em;
margin-right: 5em;
}
#info {
margin-top: 4em;
margin-left: 5em;
margin-right: 5em;
}
</style>
</head>
<body>
<div class="center">
<h1>BMI CALCULATOR</h1>
<table class="center">
<tr>
<td>
<p><b>Your height (m): </b></p>
</td>
<td>
<input id="field_height" type="number" />
</td>
</tr>
<tr>
<td>
<p><b>Your mass (kg): </b></p>
</td>
<td>
<input id="field_mass" type="number" />
</td>
</tr>
<tr>
<td>
<button onclick="calculate()">CALCULATE</button>
</td>
</tr>
</table>
<br />
<h3 hidden style="text-decoration: underline" id="results_heading">
RESULTS
</h3>
<p id="result_bmi"></p>
<p style="font-weight: bold" id="result_cat"></p>
</div>
<hr />
<div id="info">
<div id="notice">
<h3>IMPORATANT NOTICE</h3>
<p>
This BMI calculator is intended for adult uses only. The
results can be off for people aging from 2 to 20 years old.
</p>
</div>
<h2>What is body mass index?</h2>
<p>
Body mass index or BMI is a measure to see weather someone has
the right weight for their height. It is calculated by dividing
your body mass by your height squared.
<br />
BMI can, but is not intended for finding out whether a person is
fat or thin, as BMI does not say how many fat does someone have.
BMI mainly says how much muscle or bone is in one's body. This
may cause athletes to have higher BMI while still being very
healthy. Even so, BMI is still very popular in giving
information on weather somebody is healthy or not.
</p>
<br />
<table class="center" style="text-align: center">
<caption>
BMI basic categories
</caption>
<tbody>
<tr>
<th scope="col">Category</th>
<th scope="col">BMI (kg/m<sup>2</sup>)</th>
</tr>
<tr>
<th scope="row">Underweight (Severe thinness)</th>
<td>< 16.0</td>
</tr>
<tr>
<th scope="row">Underweight (Moderate thinness)</th>
<td class="nowrap">16.0 – 16.9</td>
</tr>
<tr>
<th scope="row">Underweight (Mild thinness)</th>
<td>17.0 – 18.4</td>
</tr>
<tr>
<th scope="row">Normal range</th>
<td>18.5 – 24.9</td>
</tr>
<tr>
<th scope="row">Overweight (Pre-obese)</th>
<td>25.0 – 29.9</td>
</tr>
<tr>
<th scope="row">Obese (Class I)</th>
<td>30.0 – 34.9</td>
</tr>
<tr>
<th scope="row">Obese (Class II)</th>
<td>35.0 – 39.9</td>
</tr>
<tr>
<th scope="row">Obese (Class III)</th>
<td>≥ 40.0</td>
</tr>
</tbody>
</table>
</div>
<br />
<br />
<br />
<div class="center">
Source:
<a href="https://en.wikipedia.org/wiki/Body_mass_index"
><b>Check BMI on Wikipedia</b></a
>
•
<a href="https://github.com/Coadon/BMICalculator"
>Check repo on Github</a
>
•
<a href="privacy-statement.html">Privacy Statement</a>
<br />
Copyright © 2022, <a href="https://github.com/Coadon">Rupert Huang</a>.
</div>
<script src="sitescript.js" async defer></script>
</body>
</html>