-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (79 loc) · 3.34 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
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="./script.js"></script>
<link rel="stylesheet" href="./estilo.css">
<title>IMC</title>
</head>
<body>
<header>
<h1>ÍNDICE DE MASSA CORPORAL</h1>
</header>
<main class="container">
<section class="container-principal">
<h3 class="container-principal-subtitulo">Altura (ex.:1,70)</h3>
<input class="container-principal-caixa" type="number" id="altura" placeholder="Metros">
<br>
<br>
<h3 class="container-principal-subtitulo">Peso (ex.: 65.2)</h3>
<input class="container-principal-caixa" type="number" id="peso" placeholder="Quilos">
<br>
<br>
<h3 class="container-principal-subtitulo">IMC</h3>
<input class="container-principal-caixa-imc" type="text" id="imc" onblur="addValor()" readonly>
<br>
<br>
<div class="container-principal-alinhar">
<button class="container-principal-botao-2" type="button" id="limpar" onclick="limpValor()">Limpar</button>
<button class="container-principal-botao-1" type="button" id="enviar" onclick="enviarResposta()">Calcular</button>
</div>
</section>
<section class="container-secundario" onload="listValor()">
<div class="list">
<table>
<thead>
<tr>
<th>IMC</th>
<th>CLASSIFICAÇÃO</th>
<th>OBESIDADE</th>
</tr>
<tr>
<td>MENOR QUE 18.5</td>
<td>MAGREZA</td>
<td>0</td>
</tr>
<tr>
<td>ENTRE 18.5 E 24.9</td>
<td>NORMAL</td>
<td>0</td>
</tr>
<tr>
<td>ENTRE 25.0 E 29.9</td>
<td>SOBREPESO</td>
<td>I</td>
</tr>
<tr>
<td>ENTRE 30.0 E 39.9</td>
<td>OBESIDADE</td>
<td>II</td>
</tr>
<tr>
<td class>MAIOR QUE 40.0</td>
<td>OBESIDADE GRAVE</td>
<td>III</td>
</tr>
</thead>
<tbody id="table-linha">
</tbody>
</table>
</div>
</section>
</main>
<footer>
<ul>Raquel Moreira, 2A - SENAI</ul>
<ul><a href="https://github.com/raquelm16">Github</a></ul>
</footer>
</body>
</html>