-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (49 loc) · 2.38 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
<!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="./favicon-32x32.png">
<title>Tip Calculator App</title>
<!--Font Awesome Links-->
<script src="https://kit.fontawesome.com/fd6cc398e6.js" crossorigin="anonymous"></script>
<!--Bootstrap Links-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!--CSS Links-->
<link rel="stylesheet" href="./styles.css">
<!--Google Fonts-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,700;1,700&display=swap" rel="stylesheet">
</head>
<body>
<main>
<h4>SPLI<br>TTER</h4>
<div class="calculator">
<div class="input-div">
<h6>Bill</h6>
<span class="text-addon"><i class="fa-solid fa-dollar-sign"></i></span>
<input type="text" class="input" id="amount">
<h6>Select Tip %</h6>
<button type="button" class="btn btn-primary tip">5%</button>
<button type="button" class="btn btn-primary tip">10%</button>
<button type="button" class="btn btn-primary tip">15%</button>
<button type="button" class="btn btn-primary tip">25%</button>
<button type="button" class="btn btn-primary tip">50%</button>
<input type="text" class="input" id="custom" placeholder="Custom">
<h6>Number of People</h6>
<span class="people-addon"><i class="fa-solid fa-person"></i></span>
<input type="text" class="input" id="people">
</div>
<div class="result-div">
<h5>Tip Amount / person</h5>
<input type="text" id="tipPerPerson" class="result-display" readonly placeholder="$0.00"><br><br><br>
<h5>Total / person</h5>
<input type="text" id="totalPerPerson" class="result-display" style="margin-left: 40px;" readonly placeholder="$0.00"><br><br><br>
<button type="button" class="btn btn-primary btn-lg" id="reset">Reset</button>
</div>
</div>
</main>
<script src="./index.js"></script>
</body>
</html>