-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (68 loc) · 3.03 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="index.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TDEE Calculator</title>
</head>
<body>
<div id="inputsContainer">
<table>
<tr style="text-align: center;">
<td>
<h1>TDEE Calculator</h1>
</td>
</tr>
<tr>
<td>
<label for="gender">Gender: </label>
<select id="gender">
<option value="M">Male</option>
<option value="F">Female</option>
</select>
<br/>
<label for="age">Age: </label>
<input type="number" id="age" min="0" max="999" required>
<br/>
<label for="weight">Weight: </label>
<input type="number" id="weight" min="0" max="999" required>
<select id="weightUnit">
<option value="LBS">lbs</option>
<option value="KG">kg</option>
</select>
<br/>
<label for="height">Height: </label>
<input type="number" id="height" min="0" max="999" required>
<select id="heightUnit">
<option value="IN">in</option>
<option value="CM">cm</option>
</select>
<br/>
<label for="activityLevel">Activity Level: </label>
<select id="activityLevel">
<option value="1.2">Sedentary (Office Job)</option>
<option value="1.375">Light Exercise (1-2 days/week)</option>
<option value="1.55">Medium Exercise (3-5 days/week)</option>
<option value="1.725">Heavy Exercise (6-7 days/week)</option>
<option value="1.9">Athlete (2x per day)</option>
</select>
<br/>
<label for="bf">Body Fat % (Optional): </label>
<input type="number" id="bodyFatPercent" min="0" max="100">%
</td>
</tr>
<tr style="text-align:center">
<td>
<div id="submitBtnBox">
<br/>
<button type="submit" id="submitBtn">Calculate TDEE</button>
</div>
</td>
</tr>
</table>
</div>
<div id="infoContainer"></div>
<div id="resultsContainer"></div>
<script src="index.js"></script>
</body>
</html>