-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (45 loc) · 2.91 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculadora de Gorjeta</title>
<link rel="stylesheet" href="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=Space+Mono:wght@700&display=swap" rel="stylesheet">
</head>
<body>
<img src="imagens/logo.svg" alt="logo">
<form class="conteiner_principal">
<div class="formulario">
<label>Conta<input type="number" id="conta" value='50' placeholder="50,00" onkeyup="receberValorConta()"></label>
<p>Selecione a porcentagem da gorjeta</p>
<div class="gorjeta">
<input type="radio" id="gorjeta_5" name="porcentagem_gorjeta" value="1.05" hidden>
<label for="gorjeta_5" onclick="receberValorGorjeta5(receberValorConta(), receberValorPessoas())">5%</label>
<input type="radio" id="gorjeta_10" name="porcentagem_gorjeta" value="1.10" hidden>
<label for="gorjeta_10" onclick="receberValorGorjeta10(receberValorConta(), receberValorPessoas())">10%</label>
<input type="radio" id="gorjeta_15" name="porcentagem_gorjeta" value="1.15" hidden>
<label for="gorjeta_15" onclick="receberValorGorjeta15(receberValorConta(), receberValorPessoas())">15%</label>
<input type="radio" id="gorjeta_25" name="porcentagem_gorjeta" value="1.25" hidden>
<label for="gorjeta_25" onclick="receberValorGorjeta25(receberValorConta(), receberValorPessoas())">25%</label>
<input type="radio" id="gorjeta_50" name="porcentagem_gorjeta" value="1.50" hidden>
<label for="gorjeta_50" onclick="receberValorGorjeta50(receberValorConta(), receberValorPessoas())">50%</label>
<input type="number" placeholder="Outro" id="gorjeta_outro" onkeyup="receberValorGorjeta_Outro(receberValorConta(), receberValorPessoas())">
</div>
<label>Número de Pessoas<input type="number" id="pessoas" min="1" value="1" placeholder="1" onkeyup="receberValorPessoas()"></label>
</div>
<div class="resumo">
<h3>Total da Gorjeta</h3>
<p>/ pessoa</p>
<h1 id="tot_Gorjeta">$0,00</h1>
<h3>Total da Conta</h3>
<p>/ pessoa</p>
<h1 id="tot_Conta">$0,00</h1>
<input type="reset" id="resetar">
</div>
</form>
<script src="script.js"></script>
</body>
</html>