-
Notifications
You must be signed in to change notification settings - Fork 122
/
Copy pathindex.html
59 lines (58 loc) · 2.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Budget Tracker</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="main-container">
<div class="container">
<h1>Budget Tracker</h1>
<div class="budget-summary">
<h3>Main Salary: <span id="main-salary">₹0.00</span></h3>
<h3>Remaining Budget: <span id="remaining-budget">₹0.00</span></h3>
</div>
<form id="budget-form">
<input type="number" id="input-salary" placeholder="Enter Main Salary (₹)">
<input type="text" id="input-description" placeholder="Enter Description">
<input type="number" id="input-amount" placeholder="Enter Amount (₹)">
<select id="input-category">
<option value="">Select Category</option>
<option value="Food">Food</option>
<option value="Rent">Rent</option>
<option value="Entertainment">Entertainment</option>
<option value="Custom">Custom</option>
</select>
<input type="text" id="custom-category" placeholder="Enter Custom Category" style="display: none;">
<button type="submit">Add Expense</button>
</form>
<div class="expense-table">
<table>
<thead>
<tr>
<th>Description</th>
<th>Amount (₹)</th>
<th>Category</th>
<th>Action</th>
</tr>
</thead>
<tbody id="expense-list">
<!-- Expense items will be dynamically added here -->
</tbody>
</table>
</div>
</div>
<div class="container graphs-container">
<h1>Budget Analysis</h1>
<div class="charts">
<canvas id="category-chart" width="400" height="400"></canvas>
<canvas id="trend-chart" width="400" height="400"></canvas>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="script.js"></script>
</body>
</html>