-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
117 lines (113 loc) · 4.26 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<script src="functionality.js"></script>
<title>BMI</title>
</head>
<body>
<div class="display-4 text-center">BMI Calculator</div>
<div class="container" style="margin-top: 40px;">
<div class="row">
<div class="col-md-6" style="padding-bottom: 5px;">
<button type="button" class="btn btn-secondary" style="width: 100%; padding: 10px; "
onclick="location.reload(true);">Clear</button>
</div>
<div class="col-md-6">
<button type="button" class="btn btn-secondary" style="width: 100%; padding: 10px;"
onclick="BMIFunction()">Calculate</button>
</div>
</div>
</div>
<div class="container">
<div class="row justify-content-center">
<div class="col-sm-4">
<h4>Weight</h4>
<form>
<div class="form-group">
<table style="width:100%">
<tr>
<td><input id="lbsInput" type="number" step="0.0001" class="form-control form-control-lg"
placeholder="Pounds...">
</td>
<td>lbs</td>
</tr>
<tr>
<td><input id="kgInput" type="number" step="0.0001" class="form-control form-control-lg"
placeholder="Kilograms...">
</td>
<td>kg</td>
</tr>
<tr>
<td><input id="gmInput" type="number" step="0.0001" class="form-control form-control-lg"
placeholder="Grams..."></td>
<td>gm</td>
</tr>
<tr>
<td><input id="ozInput" type="number" step="0.0001" class="form-control form-control-lg"
placeholder="Ounces..."></td>
<td>oz</td>
</tr>
</table>
</div>
</form>
</div>
<div class="col-sm-4">
<h4>Height</h4>
<form>
<div class="form-group">
<table style="width:100%">
<tr>
<td><input id="cmInput" type="number" step="0.0001" class="form-control form-control-lg"
placeholder="Centimeters..."></td>
<td>cm</td>
</tr>
<tr>
<td><input id="inchInput" type="number" step="0.0001" class="form-control form-control-lg"
placeholder="Inches..."></td>
<td>in</td>
</tr>
<tr>
<td><input id="mInput" type="number" step="0.0001" class="form-control form-control-lg"
placeholder="Meters..."></td>
<td>m</td>
</tr>
<tr>
<td><input id="ftInput" type="number" step="0.0001" class="form-control form-control-lg"
placeholder="Feet..."></td>
<td>ft</td>
</tr>
</table>
</div>
</form>
</div>
<div class="col-sm-4">
<h4>Health Index</h4>
<form>
<div class="form-group">
<div class="indexcol" id="bmi" style="padding-left: 20px; padding-top: 10px;">
<p>Body Mass Index...</p>
</div>
<div class="indexcol" id="calIn" style="padding-left: 20px; padding-top: 10px;">
<p>Calorie In...</p>
</div>
<div class="indexcol" id="calOut" style="padding-left: 20px; padding-top: 10px;">
<p>Calorie Out...</p>
</div>
<div class="indexcol" id="comment" style="padding-left: 20px; padding-top: 10px;">
<p>Comment...</p>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="footer" style="font-size: 13px;">
</div>
</body>
</html>