-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (43 loc) · 1.49 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
<!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="style.css">
<title>Tip Calculator</title>
</head>
<body>
<div class="container">
<h1>Tip Calculator</h1>
<form>
<p>What is your bill total?</p>
<div class="billAmountInput">
<input class="billAmt" type="text" placeholder="Bill Amount" />
</div>
<p>How was your service</p>
<div class="service">
<select name="serviceSelector" id="serviceSelector">
<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% It was ok</option>
<option value="0.1">10% Bad</option>
<option value="0.5">5% Horrible</option>
</select>
</div>
</form>
<p>How many people are sharing this bill?</p>
<div class="peopleAmtInput">
<input class="peopleAmt" type="text" placeholder="Number of People" />
</div>
<button id="calculate">calculate!</button>
<!--CALCULATOR ENDS NOW SPACE FOR TOTALS-->
<div id="totalTip">
<sup>$</sup><span id="tip">0.00</span>
<p id="each">each</p>
</div>
</div>
</body>
<script src="app.js"></script>
</html>