-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
110 lines (81 loc) · 3.72 KB
/
Copy pathindex.html
File metadata and controls
110 lines (81 loc) · 3.72 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!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">
<title>Projeto IMC</title>
<link rel="stylesheet" href="css/style.css">
<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=Inter&display=swap" rel="stylesheet">
</head>
<body>
<div class="header"> <!-- div = parágrafo -->
<img src="img/logo.png" alt="descrição da imagem para leitores de tela">
</div>
<div class="container"> <!-- container é filho do body -->
<div class="conteudo"> <!-- container é pai do conteúdo e imagem -->
<h1>Calcule seu IMC</h1>
<p>IMC é a sigla para Índice de Massa Corporal, parâmetro adotado pela Organização Mundial de Saúde para calcular o peso ideal de cada pessoa.</p>
<table>
<tr>
<th>IMC</th> <!-- th é o cabeçalho da tabela -->
<th>Classificação</th>
</tr>
<tr>
<td>Menor que 18.5</td>
<td>Magreza</td>
</tr>
<tr>
<td>Entre 18.5 e 24.9</td>
<td>Normal</td>
</tr>
<tr>
<td>Entre 25.0 e 29.9</td>
<td>Sobrepeso</td>
</tr>
<tr>
<td>Maior que 29.9</td>
<td>Obesidade</td>
</tr>
</table>
<div class="imc">
<div class="form-imc">
<form autocomplete="off">
<div>
<label for="altura">Altura:</label> <br>
<input type="text" placeholder="Ex: 1.70" id="altura">
</div>
<div>
<label for="peso">Peso:</label> <br>
<input type="text" placeholder="Ex: 60" id="peso">
</div>
<button type="button" onclick="calcularImc()">Calcular</button>
</form>
</div>
<div class="resultado-imc" id="resultado">
<h2>Seu IMC: <br> <span id="valorImc"></span> </h2>
</div>
</div>
<div>
<p>Precisa de ajuda?
<a href="http://www.youtube.com/@RobertaGymBrasil">Confira nosso canal no YouTube</a>
</p>
</div>
</div> <!-- Fim da div conteúdo -->
<div class="imagem">
<img src="img/foto.jpg" alt="Imagem de uma nutricionista com uma maçã na mão direita e carregando uma balança na mão esquerda em seu consultório">
</div>
</div> <!-- Fim da div conteiner -->
<script src="js/script.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask.min.js"></script>
<script>
//inicializando a biblioteca jQuery
//$ = jQuery
$(document).ready(function(){
$("#altura").mask("0.00");
$("#peso").mask("000.00", {reverse: true});
})
</script>
</body>
</html>