-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (80 loc) · 3.07 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
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Expense Tracker</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>Expense Tracker</h1>
<div class="section">
<h2>Income</h2>
<div class="input-group">
<label for="income-description">Description</label>
<input type="text" id="income-description" placeholder="e.g. Salary">
</div>
<div class="input-group">
<label for="income-amount">Amount (₹)</label>
<input type="number" id="income-amount" placeholder="e.g. 100000">
</div>
<div class="button-group">
<button onclick="addIncome()">Add Income</button>
</div>
</div>
<div class="section">
<h2>Expenses</h2>
<div class="input-group">
<label for="expense-description">Description</label>
<input type="text" id="expense-description" placeholder="e.g. Rent">
</div>
<div class="input-group">
<label for="expense-category">Category</label>
<select id="expense-category">
<option value="Housing">Housing</option>
<option value="Food">Food</option>
<option value="Transportation">Transportation</option>
<option value="Entertainment">Entertainment</option>
<option value="Others">Others</option>
</select>
</div>
<div class="input-group">
<label for="expense-amount">Amount (₹)</label>
<input type="number" id="expense-amount" placeholder="e.g. 50000">
</div>
<div class="button-group">
<button onclick="addExpense()">Add Expense</button>
</div>
</div>
<div class="table-container">
<h2>Transaction History</h2>
<table>
<thead>
<tr>
<th>Description</th>
<th>Category</th>
<th>Amount (₹)</th>
<th>Type</th>
<th>Action</th>
</tr>
</thead>
<tbody id="transaction-history">
<!-- Transactions will appear here-->
</tbody>
</table>
</div>
<div class="summary">
<h2>Budget Summary</h2>
<p>Total Income: ₹<span id="total-income">0</span></p>
<p>Total Expense: ₹<span id="total-expense">0</span></p>
<p>Balance: ₹<span id="balance">0</span></p>
</div>
<div class="clear-button-group">
<button onclick="clearAll()">Clear All</button>
</div>
<div id="notification" class="notification"></div>
</div>
<script src="script.js"></script>
</body>
</html>