-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (51 loc) · 2.36 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
<!DOCTYPE html>
<html lang="en">
<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>Hello jQuery</title>
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
<script src="jquery-3.6.1.min.js"></script>
</head>
<body>
<!-- Corpo extra que eu criei para sobrepor o corpo principal da página e ter mais controle -->
<div class="pagina">
<h1 style="text-align: center; color: white;">H<span style="color: #02dd5d;">e</span>llo <span style="color: #02dd5d;">j</span>Query</h1>
<br>
<!-- Folha de formulário -->
<div class="form">
<!-- Seção 1) Digitação de nome em formulário. -->
<h2>1) Digitando nome</h2>
Qual o seu nome?<br><br class="espacos1">
<input type="text" name="" id="nome">
<br class="espacos1">
<br class="espacos1">
<div class="saudacao"></div>
<input type="button" value="Validar" id="aqui">
<br class="espacos1">
<br><br>
<!-- Seção 2) Interação com botão em AJAX. -->
<h2>2) Utilizando AJAX</h2>
<h3>Cifras ancestrais</h3>
O AJAX carregará o arquivo que revela o conteúdo da cifra ancestral.
<br class="espaco2"><br class="espaco2">
<input type="button" value="Revelar cifra" id="mais">
<div class="info"></div>
<br><br>
<!-- Seção 3) Manipulando números com jQuery -->
<h2>3) Números com jQuery</h2>
<h3>Calculando a média entre dois números</h3>
Insira o primeiro valor: <input type="number" value="" class="valor1" style="max-width: 8ch;">
<br><br>
Insira o segundo valor: <input type="number" value="" class="valor2" style="max-width: 8ch; margin-left: 3px;">
<br><br>
<input type="button" value="Calcular" class="calcular">
<br><br>
<div class="res">Aqui vai o resultado...</div>
<br>
</div>
</div>
</body>
</html>