-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (74 loc) · 2.37 KB
/
Copy pathindex.html
File metadata and controls
76 lines (74 loc) · 2.37 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!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="style.css" />
<script src="script.js" defer></script>
<title>Bill Splitter</title>
</head>
<body>
<div class="wrapper">
<img class="heading" src="images/logo.svg" alt="logo" />
<div class="container">
<div class="calculator">
<form id="bill">
<p class="bill-p">Bill</p>
<input
type="number"
name="billAmount"
id="bill-amount"
placeholder="0"
class="input"
/>
<p>Select Tip %</p>
<button id="5" type="button" class="percentage extra 5">5%</button>
<button type="button" class="percentage extra 10">10%</button>
<button type="button" class="percentage extra 15">15%</button>
<button type="button" class="percentage extra 20">25%</button>
<button type="button" class="percentage extra 25">50%</button>
<input
type="number"
name="custom"
id="custom-amount"
placeholder="Custom"
class="percentage"
/>
<p>Number of People</p>
<label id="error" class="error">Can't be zero</label>
<input
type="number"
name="people"
id="no-of-people"
placeholder="0"
class="input"
/>
</form>
</div>
<div class="display">
<ul>
<li>
<span class="left"
>Tip Amount <br />
<span>/ person</span>
</span>
<span id="tipAmount" class="right">$0.00</span>
</li>
<li>
<span class="left"
>Total <br />
<span>/ person</span>
</span>
<span id="totalAmount" class="right">$0.00</span>
</li>
</ul>
<button id="reset" class="reset">RESET</button>
</div>
</div>
</div>
</body>
</html>
<!-- <div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Your Name Here</a>.
</div> -->