-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (54 loc) · 1.96 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
<!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="assets/estilo.css">
<link rel="icon" href="assets/img/icone calculadora.png">
<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>Quanto ficou a conta?</p>
</label>
<p>
R$ <input type="number" placeholder="100" name="bill" id="bill" class="formInput" required>
</p>
<label for="servicequal">
<p>Como foi seu serviço?</p>
</label>
<p>
<select name="servicequal" id="servicequal" class="formSelect" required>
<option disabled selected value="0">..Escolha uma opção</option>
<option value="0.3">30% - Incrível</option>
<option value="0.2">20% - Bom</option>
<option value="0.15">15% - Aceitável</option>
<option value="0.1">10% - Ruim</option>
<option value="0.05">05% - Péssimo</option>
</select>
</p>
<label for="people">
<p>Quantas pessoas vão dividir a conta?</p>
</label>
<p>
<input type="number" placeholder="1" name="people" id="people" class="formInput" required>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">Cada</span>
</div>
</div>
<script type="text/javascript" src="assets/scripts.js"></script>
</body>
</html>