forked from dhairyagothi/100_days_100_web_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (78 loc) · 3.09 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BMI Calculator</title>
<meta name="description" content="JS app to calculates Body Mass Index">
<meta name="author" content="Supritha">
<link rel="stylesheet" href="style.css">
<!-- =====BOX ICONS===== -->
<link href='https://cdn.jsdelivr.net/npm/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div class="bmi">
<h2 style="color: azure;font-weight: bold;font-size:40px">Body Mass Index Calculator</h2>
<p class="text" style="font-weight: bold;font-size:20px">Height</p>
<select id="height-unit" style="text-align: center;">
<option value="cm" >Centimeter</option>
<option value="feet">Feet/Inches</option>
</select>
<input type="text" id="height" title="Enter your height" placeholder="Height">
<br>
<br>
<p class="text" style="font-weight: bold;font-size:20px">Weight</p>
<select id="weight-unit" style="text-align: center;">
<option value="kg">Kilogram</option>
<option value="lb">Pounds</option>
</select>
<input type="text" id="weight" title="Enter your weight" placeholder="Weight">
<p id="result"></p><button id="btn">Calculate</button>
<br>
<div id="result"></div>
<div id="category"></div>
<div id="tips"></div>
</div>
<div class="chart">
<table>
<thead>
<tr>
<th>BMI</th>
<th>Category</th>
</tr>
</thead>
<tbody>
<tr>
<td data-column="bmi">less than 18.5</td>
<td data-column="category">Underweight</td>
</tr>
<tr>
<td data-column="bmi">between 18.5 and 24.9</td>
<td data-column="category">Ideal</td>
</tr>
<tr>
<td data-column="bmi">between 25 and 29.9</td>
<td data-column="category">Overweight</td>
</tr>
<tr>
<td data-column="bmi">over 30 </td>
<td data-column="category">Obesity</td>
</tr>
</tbody>
</table>
<canvas id="bmiChart" style="background-color: black;"></canvas>
</div>
<script src="script.js"></script>
<footer class="footer">
<p class="footer__title">Supritha Ravishankar</p>
<div class="footer__social">
<a href="https://de-de.facebook.com/supritha.ravishankar" class="footer__icon"><i class='bx bxl-facebook' ></i></a>
<a href="https://github.com/supzi-del" class="footer__icon"><i class='bx bxl-github' ></i></a>
<a href="https://twitter.com/SuprithaRavish1" class="footer__icon"><i class='bx bxl-twitter' ></i></a>
<a href="https://www.linkedin.com/in/supritha-ravishankar-560008216/" class="footer__icon"><i class='bx bxl-linkedin' ></i></a>
</div>
<p>© 2021 copyright all right reserved</p>
</footer>
</body>
</html>