-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (43 loc) · 1.83 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="assets/img/icons8-heart-with-pulse-96.png" type="image/x-icon">
<title>Calculadora de IMC</title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<div class="container">
<h2>Calculadora de IMC</h2>
<form>
<div>
<label for="height">Informe sua altura (em m): </label>
<br>
<input type="text" name="height" placeholder="Ex: 1.71" required="required" maxlength="4">
</div>
<br>
<div>
<label for="weight">Informe seu peso (em kg): </label>
<br>
<input type="text" name="weight" placeholder="Ex: 62.5" required="required" maxlength="4">
</div>
</form>
<button type="button" id="btn">Calcular</button>
</div>
<div id="fade" class="hide"></div>
<div id="modal" class="hide">
<button id="close-modal">x</button>
<div class="progress-bar">
<span class="bar"></span>
</div>
<div class="modal-text">
<p>Seu IMC é <span id="imc-value"></span></p>
<p>Esse valor indica que você está <span id="imc-text"></span></p>
<p class="text">Atenção: o cálculo de IMC não leva em consideração a composição corporal. Por esse motivo, pessoas com muita massa muscular, como é o caso de alguns atletas, podem apresentar um IMC acima do normal. O ideal é consultar um nutricionista para fazer uma avaliação mais detalhada.</p>
</div>
</div>
<script src="assets/js/index.js" type="module" ></script>
</body>
</html>