-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (53 loc) · 1.8 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
<!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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"/>
<link rel="stylesheet" href="style.css">
<title>Budget Tracker</title>
</head>
<body>
<div class="container">
<h1>Expense Tracker</h1>
<hr>
<div class="sub-container">
<div class="total-amount-container">
<h3>Budget</h3>
<p class="hide error" id="budget-error">
Value cannot be empty or negative
</p>
<input type="number" id="total-amount" placeholder="Enter Total Amount">
<button class="btn" id="total-amount-button">Set Budget</button>
</div>
<div class="user-amount-container">
<h3>Description</h3>
<input type="text" id="product-title" class="product-title" placeholder="Wages, Bills, Electronics...">
<h3>Amount</h3>
<input type="number" id="user-amount" placeholder="Enter cost of product">
<button class="btn" id="check-amount">Check Amount</button>
</div>
</div>
<div class="output-container flex-space">
<div>
<p>Total Budget</p>
<span id="amount">0</span>
</div>
<div>
<p>Expenses</p>
<span id="expenditure-value">0</span>
</div>
<div>
<p>Balance</p>
<span id="balance-amount">0</span>
</div>
</div>
<div class="list">
<h3>Expense List</h3>
<div class="list-container" id="list"></div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>