-
Notifications
You must be signed in to change notification settings - Fork 0
/
bmr.html
executable file
·59 lines (54 loc) · 2.56 KB
/
bmr.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Metric BMR Calculator</title>
<link rel="stylesheet" type="text/css" href="asgmt.css" />
</head>
<body>
<h2> Basal Metabolic Rate (BMR) Calculator </h2>
<form>
<fieldset>
<legend><b>Metric BMR Calculator</b></legend>
<table>
<tr>
<td>
<label>
Gender <select>
<option id="Gender" value="Male">Male</option>
<option id="Gender" value="Female">Female</option>
</select>
</label>
</td>
</tr>
<tr>
<td><label><b>Age</b> <input type="number" id="Age" name="Age" /> years</label></td>
</tr>
<tr>
<td><label><b>Height</b> <input type="number" id="Height" name="Height" /> cm</label></td>
</tr>
<tr>
<td><label><b>Weight</b> <input type="number" id="Weight" name="Weight" /> kg</label></td>
</tr>
<tr>
<td><br /><b>Activity Level </b><br /><br /></td>
</tr>
<tr>
<td>
<input type="radio" name="level" value="1.53" id="level1" /> I am sedentary (little or no exercise)
<br /><input type="radio" name="level" value="1.53" id="level2" /> I am lightly active (light exercise or sports 1-3 days per week)
<br /><input type="radio" name="level" value="1.76" id="level3" /> I am moderately active (moderate exercise or sports 3-5 days per week)
<br /><input type="radio" name="level" value="1.76" id="level4" /> I am very active (hard exercise or sports 6-7 days per week)
<br /><input type="radio" name="level" value="2.25" id="level5" /> I am super active (very hard exercise or sports and a physical job or 2x training)
<br /><input type="reset" id="reset" value="Clear" />
</td>
</tr>
<tr>
<td style="float:right"><input type="button" id="submit" value="Calculate BMR" /></td>
</tr>
</table>
</fieldset>
</form>
<script src="assignment1.js"></script>
</body>
</html>