-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (48 loc) · 2.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="./style.css">
<title>BMI Calculator</title>
</head>
<body>
<div class="container">
<div class="row justify-content-center divCenter">
<div class="col-md-6">
<h1 class="text-center mb-5">BMI Calculator</h1>
<form onsubmit="calculateBMI(event)">
<div class="mb-3">
<label for="heightInputFeet" class="form-label">Your Height</label>
<div class="d-flex gap-3">
<input type="number" class="form-control" id="heightInputFeet" min="0" max="10"
placeholder="Feet" required aria-label="Feet">
<input type="number" class="form-control" id="heightInputInch" min="0" max="11"
placeholder="Inch" required aria-label="Inch">
</div>
</div>
<div class="mb-3">
<label for="weightInputKg" class="form-label">Your Weight</label>
<input type="number" class="form-control" id="weightInputKg" min="0" placeholder="65kg" required
aria-label="Weight" step="any">
</div>
<div class="mb-4">
<button type="submit" class="btn btn-dark w-100">Calculate</button>
</div>
<div class="text-center" style="max-width: 380px; margin: 0 auto;">
<p id="BMIIndex"></p>
<p id="title"></p>
<p id="averageWeight"></p>
</div>
</form>
</div>
</div>
</div>
<script src="./App.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
</body>
</html>