-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (74 loc) · 3.75 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
77
78
79
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Money Master</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
</head>
<body>
<header class="text-center">
<h1>Money Master</h1>
</header>
<!-- Main section starts Here -->
<main class="container">
<section class="row row-cols-md-2 g-4">
<div>
<img class="img-fluid" src="assets/money.png" alt="" srcset="">
</div>
<div class="bg-light">
<div class="text-center">
<h5 class="fw-bolder">Income</h5>
<div class="row mb-3">
<label for="income" class="fw-bold col-sm-2 col-form-label">Income</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="income">
</div>
</div>
<h5 class="fw-bolder">Expenses</h5>
<div class="row mb-3">
<label for="food" class="fw-bold col-sm-2 col-form-label">Food</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="food">
</div>
</div>
<div class="row mb-3">
<label for="rent" class="fw-bold col-sm-2 col-form-label">Rent</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="rent">
</div>
</div>
<div class="row mb-3">
<label for="clothes" class="fw-bold col-sm-2 col-form-label">Clothes</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="clothes">
</div>
</div>
<button id="calculate-btn" class="btn btn-lg btn-primary fw-bold" onclick="calculateExpense()">Calculate</button>
<div class="my-2">
<h5 class="my-3 fw-bold">Total Expense: <span id="total-expense"></span></h5>
<h5 class="my-3 fw-bold" >Balance: <span id="balance"></span></h5>
</div>
<div class="row mb-3">
<label for="save" class="fw-bold col-sm-2 col-form-label">Save</label>
<div class="col-sm-5">
<input type="text" class="form-control" id="save">
</div>
<div class="col-sm-5 d-flex justify-content-around">
<h4 class=" fw-bolder me-3">%</h4>
<button class="btn btn-primary w-75 fw-bold" onclick="calculateSavings()">Save</button>
</div>
</div>
<div class="my-2">
<h5 class="my-3 fw-bold ">Saving Amount: <span id="saving-amount"></span></h5>
<h5 class="my-3 fw-bold ">Remaining Balance: <span id="remaining-balance"></span></h5>
</div>
</div>
</div>
</section>
</main>
<!-- Main section ends Here -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
<script src="js/script.js"></script>
</body>
</html>