-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (55 loc) · 2.31 KB
/
index.html
File metadata and controls
59 lines (55 loc) · 2.31 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
58
59
<!DOCTYPE html>
<html lang="en">
<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">
<link rel="script" href="script.js">
<title>Tip Calculator</title>
</head>
<body >
<div id="container">
<div>
<h1 class="title">Tip Calculator</h1>
</div>
<div>
<form class="tipsForm" id="tipsForm">
<h3 class="intro">Making sharing costs among friends easier.</h3>
<label for="bill">
<p>How much was the bill?</p>
</label>
<p>
€ <input type="number" min="0" placeholder="100" name="bill" id="bill" class="formInput" required>
</p>
<label for="serviceQuality">
<p>How do you rate the service?</p>
</label>
<p>
<select name="serviceQuality" id="serviceQuality" class="formSelect">
<option disable selected value="0"> -- Select an option</option>
<option value="0.3">30% - Extraordinary</option>
<option value="0.2">20% - Very good</option>
<option value="0.15">15% - Good</option>
<option value="0.10">10% - Ok</option>
<option value="0.05">5% - Bad</option>
</select>
</p>
<label for="people">
<p>How many are sharing the bill?</p>
</label>
<p>
<input type="number" min="2" placeholder="1" name="people" id="people" class="formInput" required> people
</p>
<button type="btnSubmit" class="formSubmit"> Calculate</button>
</form>
</div>
<div id="totalTip" class="totalTip">
Total tip:
€ <span id="tip">0.00</span>
<span id="eachPerson"> each </span>
</div>
</div>
<script type="text/javascript" src="scripts.js"></script>
</body>
</html>