-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
47 lines (46 loc) · 1.39 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
<!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">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rajdhani&display=swap" rel="stylesheet">
</head>
<body>
<div id="container" align="center">
<h1 id="head">Tip Calculator</h1>
<hr />
<div>
<label>Total Bill:</label>
<input
type="text"
placeholder="Please enter total bill..."
id="billTotal"
/>
</div>
<div>
<label>Tip:</label>
<input type="range" min="0" max="1000" 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>