-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (57 loc) · 2.25 KB
/
index.html
File metadata and controls
57 lines (57 loc) · 2.25 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
<!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">
<link rel="stylesheet" href="styles.css">
<title>Calculadora de Gorjetas</title>
</head>
<body>
<div id="container">
<div>
<h1 class="title">Calculadora de Gorjetas</h1>
</div>
<div>
<form class="tipsForm" id="tipsForm">
<label for="bill">
<p>Informe o valor total da conta a pagar:</p>
</label>
<p>
R$ <input type="number" placeholder="0.00" name="bill" id="bill" class="formInput" required>
</p>
<div id="svcQual">
<label for="serviceQuality">
<p>Avalie o serviço:</p>
</label>
</div>
<p>
<select name="serviceQuality" id="serviceQuality" class="formSelect" required>
<option disable selected value="0">-- Escolha uma opção --</option>
<option value="0.3">Ótimo - 30%</option>
<option value="0.2">Bom - 20%</option>
<option value="0.15">Regular - 15%</option>
<option value="0.1">Ruim - 10%</option>
<option value="0.05">Péssimo - 5%</option>
</select>
</p>
<div id="ppl">
<label for="people">
<p>Informe quantas pessoas irão dividir a conta:</p>
</label>
</div>
<p>
<input type="number" placeholder="1" name="people" id="people" class="formInput"> pessoa(s)
</p>
<button type="submit" class="formSubmit">Calcular</button>
</form>
</div>
<div id="totalTip">
Gorjeta total:
R$<span id="tip">0.00</span>
<span id="each">por pessoa</span>
</div>
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>