-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (56 loc) · 2.19 KB
/
index.html
File metadata and controls
58 lines (56 loc) · 2.19 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Caculadora de IMC em JS</title>
<link rel="stylesheet" href="styles.css">
<script src="scripts.js" defer></script>
<!-- Fontes -->
<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=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<div id="calc-container">
<h2> Calculadora de IMC </h2>
<form id="imc-form">
<div class="form-inputs">
<div class="form-control">
<label for="height"> Altura: </label>
<input type="text"
name="height"
id="height"
placeholder="Exemplo 1,75">
</div>
<div class="form-control">
<label for="weight"> Peso: </label>
<input type="text"
name="weight"
id="weight"
placeholder="Exemplo 78">
</div>
</div>
<div class="action-control">
<button id="calc-btn"> Calcular </button>
<button id="clear-btn"> Limpar </button>
</div>
</form>
</div>
<div id="result-container" class="hide">
<p id="imc-number"> Seu IMC: <span></span></p>
<p id="imc-info">Situação atual: <span></span></p>
<h3> Confira as classificações: </h3>
<div id="imc-table">
<div class="table-header">
<h4> IMC </h4>
<h4> Classificação </h4>
<h4> Obesidade </h4>
</div>
</div>
<button id="back-btn"> Voltar </button>
</div>
</div>
</body>
</html>