-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (52 loc) · 1.96 KB
/
Copy pathindex.html
File metadata and controls
56 lines (52 loc) · 1.96 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Personal Expense Tracker</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<h1>Expense Tracker</h1>
<p class="subtitle">Manage your daily budget efficiently</p>
</header>
<div class="balance-card">
<h3>Your Total Balance</h3>
<h2 id="total-balance">₹0.00</h2>
<div class="stats-row">
<div class="stat-box income">
<span>Income</span>
<h4 id="total-income">+ ₹0.00</h4>
</div>
<div class="stat-box expense">
<span>Expenses</span>
<h4 id="total-expense">- ₹0.00</h4>
</div>
</div>
</div>
<div class="transaction-form">
<h3>Add New Transaction</h3>
<form id="exp-form">
<div class="form-group">
<label for="text">Description</label>
<input type="text" id="text" placeholder="e.g., Salary, Groceries, Rent" required />
</div>
<div class="form-group">
<label for="amount">Amount (Negative for expense, Positive for income)</label>
<input type="number" id="amount" placeholder="e.g., -500 or 1500" required />
</div>
<button type="submit" class="btn">Add Transaction</button>
</form>
<button id="save-state-btn" class="btn btn-save">💾 Save Session Permanently</button>
</div>
<div class="history-container">
<h3>Transaction History</h3>
<ul id="transaction-list" class="list">
</ul>
</div>
</div>
<script src="script.js"></script>
</body>
</html>