-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (60 loc) · 1.61 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
<!DOCTYPE html>
<html>
<head>
<title>BMI Calculator</title>
<link rel="stylesheet" href="style.css" />
<link
rel="icon"
type="image/x-icon"
sizes="32x32"
href="images/icons/bmilogo.png"
/>
<script src="app.js"></script>
</head>
<body>
<center>
<form id="bmi-form" onsubmit="return calcBMI();">
<div class="bmi-label">BMI Calculator</div>
<div class="bmi-row">
<label>
<input
type="radio"
id="bmi-metric"
name="bmi-measure"
onchange="measureBMI()"
checked
/>
Metric
</label>
<label>
<input
type="radio"
id="bmi-imperial"
name="bmi-measure"
onchange="measureBMI()"
/>
Imperial
</label>
</div>
<div class="bmi-label">
Weight (<span id="bmi-weight-unit">KG</span>):
</div>
<div class="bmi-row">
<input id="bmi-weight" type="number" min="1" max="635" required />
</div>
<div class="bmi-label">
Height (<span id="bmi-height-unit">CM</span>):
</div>
<div class="bmi-row">
<input id="bmi-height" type="number" min="54" max="272" required />
</div>
<input type="submit" value="Calculate BMI" />
<span id="bmi-results"></span>
</form>
<br />
<br />
<br />
<b> <i>Made by Ritik Malik</i></b>
</center>
</body>
</html>