-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (49 loc) · 1.91 KB
/
Copy pathindex.html
File metadata and controls
62 lines (49 loc) · 1.91 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
<!DOCTYPE html>
<html>
<head>
<!-- Importando as fontes do Google -->
<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=Roboto+Mono&display=swap" rel="stylesheet">
<title>Conversor de Unidades</title>
<link rel="stylesheet" type="text/css" href="./css/index.css">
</head>
<body>
<!-- topo do site -->
<header>
<nav>
<div class="header">
<h1>Conversor de Unidades</h1>
</div>
</nav>
</header>
<!-- covertor de unidades -->
<div class="formcontainer">
<div class="form">
<form id="converterForm">
<label for="valor">Valor:</label>
<input type="number" id="valor" class="output" required>
<label for="categoria">Categoria:</label>
<select id="categoria" class="output" onchange="atualizarUnidadesDestino()">
<option value="-"> </option>
<option value="comprimento">Comprimento</option>
<option value="peso">Peso</option>
<option value="temperatura">Temperatura</option>
</select>
<label for="unidadeOrigem">Unidade de Medida de Origem:</label>
<select id="unidadeOrigem" class="output" onchange="atualizarUnidadesDestino()">
<!-- As opções serão preenchidas dinamicamente com JavaScript -->
</select>
<label for="unidadeDestino">Unidade de Medida de Destino:</label>
<select id="unidadeDestino" class="output">
<!-- As opções serão preenchidas dinamicamente com JavaScript -->
</select>
<button type="button" class="output" onclick="converter()">Converter</button>
<label for="resultado">Resultado:</label>
<input type="text" id="resultado" class="output" readonly>
</form>
</div>
</div>
<script src="./js/index.js"></script>
</body>
</html>