-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathado1.html
More file actions
65 lines (64 loc) · 2.43 KB
/
ado1.html
File metadata and controls
65 lines (64 loc) · 2.43 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>Introdução ao JavaScript</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="lib/testefw.css">
<link rel="stylesheet" href="ado1.css">
<script src="lib/utils.js" defer></script>
<script src="lib/testefw.js" defer></script>
<script src="ado1-teste.js" defer></script>
<script src="ado1.js" defer></script>
<script>
"use strict";
function limparForm17() {
document.querySelectorAll(".ex17 input[type='text']").forEach(e => e.value = "");
}
</script>
</head>
<body>
<div class="formzinho ex14" id="rot13">
<h1>Formulário para o exercício 14</h1>
<p>
<label for="entra-rot13">Digite aqui o seu texto:</label>
<textarea id="entra-rot13" oninput="fazerRot13()"></textarea>
</p>
<p>
<label for="sai-rot13">Saída:</label>
<textarea id="sai-rot13" readonly></textarea>
</p>
</div>
<div class="formzinho ex17">
<h1>Formulário para o exercício 17</h1>
<p>
<label for="ladoA">Lado A:</label>
<input type="text" id="ladoA">
</p>
<p>
<label for="ladoB">Lado B:</label>
<input type="text" id="ladoB">
</p>
<p>
<label for="ladoC">Lado C:</label>
<input type="text" id="ladoC">
</p>
<p class="ex17-botao">
<label for="botaoTriangulo"> </label>
<button type="button" id="botaoTriangulo" onclick="verificarTriangulo();">Verificar</button>
</p>
<p>
<label for="tipoTriangulo">Tipo do triângulo:</label>
<input type="text" id="tipoTriangulo" class="grande" readonly>
</p>
<p>
<label for="areaTriangulo">Área do triângulo:</label>
<input type="text" id="areaTriangulo" readonly>
</p>
<p class="ex17-botao">
<label for="btLimpar1"> </label>
<button type="button" id="btLimpar1" onclick="limparForm17();">Limpar</button>
</p>
</div>
</body>
</html>