-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (51 loc) · 1.65 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<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" onsubmit="return false">
<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 value="" disable select >Escolha uma opção</option>
<option value="0.3">30% - Incrivel</option>
<option value="0.2">20% - Bom</option>
<option value="0.15">15% - Razoavel</option>
<option value="0.1">10% - Aceitavel</option>
<option value="0">0% - Ruim</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" min="1" required> Pessoas
</p>
<button type="submit" class="formsubmit" onclick="calculateTip()"> Calcular! </button>
</form>
</div>
<div id="totaltip">
Gorjeta total:
R$<span id="tip">0.00</span>
<p id="each"><strong>CADA</strong></p>
</div>
</div>
<script src="scripts.js"></script>
</body>
</html>