-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (40 loc) · 1.21 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
<!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="styles.css">
<title>Javascript Tip Calculator</title>
</head>
<body>
<div id="container">
<h1>Tip Calculator</h1>
<hr>
<div>
<label>Total Bill:</label>
<input type="number" placeholder="Enter your total bill..." id="bill">
</div>
<div>
<label>Tip:</label>
<input type="range" value="0" id="tipInput">
<span id="tipOutput"></span>
</div>
<div>
<label>Split (number of people)</label>
<input type="range" min="1" max="10" value="1" id="splitInput">
<span id="splitOutput"></span>
</div>
<hr>
<div>
<div>
<label>New Bill (per person):</label> <span id="newBill"></span>
</div>
<div>
<label>Tip Amount (per person):</label> <span id="tipEach"></span>
</div>
</div>
</div>
<script src="script.js">
</script>
</body>
</html>