-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (66 loc) · 3.74 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
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html lang="en">
<head>
<title>Logic Making</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS v5.2.1 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
</head>
<body>
<main style="background: url(./bg.jpg) no-repeat top; background-size: cover;">
<div class="vh-100 d-flex justify-content-center align-items-center">
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-12 col-md-8 col-lg-6">
<div class="border border-3 border-dark"></div>
<div class="card bg-white shadow-lg">
<div class="card-body p-5">
<div class="mb-3 mt-md-4 row">
<h2 class="fw-bold mb-2 text-uppercase">Split Your Bill</h2>
<p class="mb-3">Please enter your details to Calculate</p>
<div id="addItemCol" style="max-height: 350px; overflow: auto;"></div>
<div class="mb-4 d-grid">
<button class="btn btn-outline-dark" onclick="addItems()">Add Items</button>
</div>
<div class="mb-3 col-md-6">
<label class="form-label">Total Bill Amount (₹)</label>
<input type="number" class="form-control" id="total-bill" value="" disabled>
</div>
<div class="mb-3 col-md-6">
<label class="form-label">Number of Persons</label>
<input type="number" class="form-control" id="noOfPersons" value="" onkeyup="splitBill()">
</div>
<div class="mb-3 d-grid">
<button class="btn btn-dark" onclick="splitBill()">
Calculate
</button>
</div>
<div class="input-group mb-2">
<div class="input-group-prepend">
<div class="input-group-text">Amount to Be Split Per Person (₹)</div>
</div>
<input type="text" class="form-control" id="share" disabled>
</div>
</div>
<div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script src="script.js"></script>
<!-- Bootstrap JavaScript Libraries -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"
integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.min.js"
integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous">
</script>
</body>
</html>