-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (47 loc) · 1.63 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<script src="script.js" defer></script>
<title>Tip Calculator</title>
</head>
<body>
<div id="calculatorContainer">
<div id="topBorder">
<div id="error-message" class="error-message">*Please fill in all fields correctly</div>
<h1>Tip Calculator</h1>
<div id="inputContainer">
Bill: $ <br> <input id="billInput" type="text" maxlength="10" placeholder="Amount due">
Tip: % <br> <input id="tipPercentageInput" type="text" maxlength="10" placeholder="Desired tip percentage">
Divide By: <br> <input id="divideByInput" type="text" maxlength="10" placeholder="Set to 1 or more">
</div>
<div id="buttons">
<form><button>Calculate</button></form>
<button id="clear">Clear</button>
</div>
<div id="totalWindow">
<h3>Grand Total:</h3>
<p id="grandTotalText">$0</p>
<div id="bottomBorderContainer">
<div id="billTotal">Bill Total: <span id="billTotalText">$0</span></div>
<div id="tipTotal">Tip Total: <span id="tipTotalText">$0</span></div>
<div id="tipEach">Tip Each: <span id="tipEachText">$0</span></div>
<div id="totalEach">Total Each: <span id="totalEachText">$0</span></div>
<br>
<h4> Quick Reference: </h4>
<br>
<div id="fifteen">15%:</div>
<div id="twenty">20%:</div>
<div id="twentyFive">25%:</div>
</div>
<div id="bottomButtonContainer">
<button id="moveLeftButton">L</button>
<button id="moveCenterButton">C</button>
<button id="moveRightButton">R</button>
</div>
</div>
</body>
</html>