-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
98 lines (74 loc) · 3.05 KB
/
app.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="stylesheet" href="css/app.css">
<title> Tip calculator app</title>
</head>
<body>
<main>
<img class="logo" src="/images/logo.svg" alt="Splitter logo">
<section class="calculator-holder">
<section class="bill-input">
<label class="input-label" for="bill">Bill</label>
<input type="number" name="bill" id="bill" placeholder="0" autocomplete="off">
<section class="tip">
<p class="input-label">Select Tip %</p>
<div class="tip-buttons">
<button class="tip-amount" data-tip="5" value="5">
5%
</button>
<button class="tip-amount" data-tip="10" value="10">
10%
</button>
<button class="tip-amount" data-tip="15" value="15">
15%
</button>
<button class="tip-amount" data-tip="25" value="25">
25%
</button>
<button class="tip-amount" data-tip="50" value="50">
50%
</button>
<input type="number" name="custom-tip" id="custom-tip" placeholder="Custom" autocomplete="off">
</div>
</section>
<section class="numPeople">
<div class="people-text">
<label class="input-label" for="people">Number of People</label>
<p id="error"></p>
</div>
<input type="number" name="people" id="people" placeholder="0" autocomplete="off" min="1" max="99999">
</section>
</section>
<section class="bill-results">
<div class="display-fields">
<section class="display-field" id="tip-amount-per-person">
<div class="label">
<h1 class="label-header">Tip Amount</h1>
<p class="label-p">/ person</p>
</div>
<div class="result">
<h1>$<span>0.00</span></h1>
</div>
</section>
<section class="display-field" id="total-per-person">
<div class="label">
<h1 class="label-header">Total</h1>
<p class="label-p">/ person</p>
</div>
<div class="result">
<h1>$<span>0.00</span></h1>
</div>
</section>
</div>
<button id="resetBtn" class="reset">Reset</button>
</section>
</section>
</main>
<link rel="stylesheet" href="css/app.css">
<script src="/js/app.js"></script>
</body>
</html>