-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (69 loc) · 2.03 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
<!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>Calculadora de Média</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main id="tela-principal">
<section class="conteudo" id="formulario">
<img src="image/calculator.jpg" alt="imagem calculadora" />
<h1>Calcular Média</h1>
<form action="#" method="POST">
<div class="form-group">
<label for="nota1">Nota 1</label>
<input
type="number"
name="nota1"
id="nota1"
min="0.0"
max="10.0"
step="0.1"
autofocus
required
onBlur="validarNumero(this)"
/>
</div>
<div class="form-group">
<label for="nota2">Nota 2</label>
<input
type="number"
name="nota2"
id="nota2"
min="0.0"
max="10.0"
step="0.1"
required
onBlur="validarNumero(this)"
/>
</div>
<div class="form-group">
<button class="botao" id="btnCalcular" type="submit">
Calcular
</button>
<button type="reset" id="btnLimpar">Limpar</button>
</div>
<div class="form-group">
<label for="media">Média</label>
<input type="number" name="media" id="media" value="" readonly />
</div>
<div class="form-group">
<input
type="text"
name="situacao"
class="cx"
id="situacao"
placeholder="Situação Final"
readonly
/>
</div>
</form>
<p id="aviso" class=""></p>
</section>
</main>
<script src="script.js"></script>
</body>
</html>