forked from sidrakhandev/TipCalculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>JavaScript Tip Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="container" align="center">
<h1 id="head">Tip Calculator</h1>
<hr />
<div>
<label>Total Bill:</label>
<input
type="number"
placeholder="Please enter total bill..."
id="billTotal"
/>
</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" >0</span>
</div>
<div>
<label>Tip Amount (per person):</label> <span id="tipEach" >0</span>
</div>
</div>
</div>
<script src="script.js" >
</script>
</body>
</html>