-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (51 loc) · 1.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/css/style.css">
<script src="/js/main.js" defer></script>
<title>BMI Calculator</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600&display=swap" rel="stylesheet">
</head>
<body>
<div class="container" id="container">
<div id="calc-container">
<div id="calc-title"><h1>Calculate your <span>BMI</span></h1></div>
<form id="bmi-form">
<div class="form-control">
<label name="height" for="height">Height:</label>
<input id="height-input" type="text" placeholder="Your height in cm">
</div>
<div class="form-control">
<label name="weight" for="weight">Weight:</label>
<input id="weight-input" type="text" placeholder="Your weight in kg">
</div>
<div class="submit-btn">
<button id="reset-btn">Reset</button>
<button id="calc-btn">Calculate</button>
</div>
</div>
</form>
<div id="result-container">
<h1 id="bmi-number">Your BMI:<span id="bmi-result"> 26.1</span></h1>
<h4 id="bmi-info">Your current situation:<span id="situation"> Obesity</span></h4>
<h4 id="classification">Check weight classifications</h4>
<div class="bmi-table">
<div class="table-header">
<h4>IBM</h4>
<h4>classification</h4>
<h4>Obesity</h4>
</div>
<div id="table-info">
</div>
<div class="submit-btn">
<button id="clear-btn">Clear</button>
</div>
</div>
</div>
</div>
</body>
</html>