-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (43 loc) · 1.98 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Calculator</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css">
</head>
<body>
<div id="container">
<h1>Tip Calculator</h1>
<div id="calculator">
<form>
<p>How much was your bill?
<p>
$ <input id="billamt" type="text" placeholder="Bill Amount">
<p>How was your service?
<p>
<select id="serviceQual">
<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.05">5% - Terrible</option>
</select>
</form>
<p>How many people are sharing the bill?</p>
<input id="peopleamt" type="text" placeholder="Number of People"> people
<button type="button" id="calculate">Calculate!</button>
</div>
<!--calculator end-->
<div id="totalTip">
<sup>$</sup><span id="tip">0.00</span>
<small id="each">each</small>
</div>
<!--totalTip end-->
</div>
<!--container end-->
<script type="text/javascript" src="tipcalculator.js"></script>
</body>
</html>