-
Notifications
You must be signed in to change notification settings - Fork 0
/
imc.html
45 lines (39 loc) · 1.44 KB
/
imc.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
<!DOCTYPE html>
<html lang="en">
<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="stylesheet" href="style.css">
<title>Calculadora IMC</title>
</head>
<body>
<h1>Calculadora IMC </h1>
<div class="container">
<div class="first-step">
<p>Click no Botão Para Calcular o seu IMC</p>
<button onclick="go(1,2)">Iniciar</button>
</div>
<div class="second-step" >
<h3>Calculadora de IMC</h3>
<hr>
<br>
<label for="peso">Digite seu peso: </label>
<input type="number" placeholder="Seu Peso Aqui" id="peso" min="0" />
<br><br>
<label for="altura">Digite sua altura: </label>
<input type="number" placeholder="Sua altura aqui" id="altura" min="0" />
<br><br>
<button onclick="validate()">Calcular</button>
<button onclick="back(2,1)">Voltar</button>
</div>
<div class="final-step">
<h3>Resultado!!</h3>
<p id="resultado"></p>
<button onclick= go(3,2)>Calcular Novamente</button>
<button onclick="go(3,1)">Finalizar </button>
</div>
</div>
<script src="index.js"></script>
</body>
</html>