forked from HackYourFuture/JavaScript2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (49 loc) · 1.61 KB
/
index.html
File metadata and controls
50 lines (49 loc) · 1.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Tip Calculator</title>
</head>
<body>
<div id="container">
<div id="header">
<h1>TIP CALCULATOR</h1>
</div>
<div id="form">
<form action="#">
<div id="billAmount">
<p>How much was your bill?</p>
<label for="amount">$</label>
<input type="text" placeholder="Bill Amount" id="amount" />
</div>
<div>
<p>How Was your Service ?</p>
<!-- <label for="service"></label> -->
<select name="service" id="service">
<option disabled selected value="0">Choose an option</option>
<option value="0.3">30% - Outstanding</option>
<option value="0.2">20% - Good</option>
<option value="0.15">15% - Ok</option>
<option value="0.1">10% - Bad</option>
<option value="0.05">5% - Terrible </option>
</select>
</div>
<div id="people">
<p>How many people are sharing the bill ?</p>
<input type="text" name="people" id="numOfPeople" />
<label for="people">people</label>
</div>
<button id="btn">CALCULATE</button>
</form>
</div>
<div id="totalTip">
<p>Tip Amount</p>
<span>$</span><span id="tip">0.00</span>
<p id="each">each</p>
</div>
</div>
<script src="index.js"></script>
</body>
</html>