-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (68 loc) · 2.95 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
<!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" />
<title>Money Calculate</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<section class="money_calculate">
<div class="container">
<h1 class="title my-5 text-center text-uppercase text-primary pb-2">
Income Calculator
</h1>
<div class="row">
<div class="col-md-7 col-sm-12">
<img
src="./images/money_calculate.jpg"
class="w-100 h-100"
alt=""
/>
</div>
<div class="col-md-5 col-sm-12">
<div class="p-4 bg-light text-center">
<h5 class="mb-3">Income</h5>
<div class="wrap_input">
<label for="income_field">Income: </label>
<input type="text" id="income_field" value="0" />
</div>
<h5 class="my-3">Expenses</h5>
<div class="wrap_input my-4">
<label for="food_field">Food: </label>
<input type="text" id="food_field" value="0" />
</div>
<div class="wrap_input my-4">
<label for="rent_field">Rents: </label>
<input type="text" id="rent_field" value="0" />
</div>
<div class="wrap_input my-4">
<label for="clothes_field">Clothes: </label>
<input type="text" id="clothes_field" value="0" />
</div>
<button class="btn btn-primary fw-bold px-3 fs-5 py-2" id="calculateBtn">Calculate</button>
<h4 class="my-4">Total Expenses: <span id="total-expenses">0</span></h4>
<h5 class="my-4">Balance: <span id="balanceId">0</span></h5>
<div class="wrap_input my-4">
<label for="save_field">Save: </label>
<input type="text" id="save_field" value="0" /><span class="mx-2 fw-bold">%</span>
<button class="btn btn-primary fw-bold px-5 py-1" id="saveBtn">Save</button>
<h5 class="mt-5 fw-bold">Saving Amount: <span id="saving-amount">0</span></h5>
<h4 class="my-3 fw-bold">Remaining Banlance: <div id="remaining-balance">0</div></h4>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="app.js"></script>
</body>
</html>