-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (101 loc) · 3.5 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!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="style.css" />
<link rel="icon" type="image/pg" href="/Icons/favicon.png" />
<link rel="icon" type="image/x-icon" href="/Icons/favicon.ico" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<title>Expense Tracker App</title>
</head>
<body>
<h1>Expense Tracker App</h1>
<button id="theme-toggle" aria-label="Toggle dark mode">
<i class="fas fa-moon"></i>
</button>
<div class="input-section">
<div class="category-input-div">
<label for="category-select">Category:</label>
<select id="category-select">
<option value="Food">Food</option>
<option value="Rent">Rent</option>
<option value="Transport">Transport</option>
<option value="Relaxing">Relaxing</option>
<option value="Utilities">Utilities</option>
<option value="Healthcare">Healthcare</option>
<option value="Education">Education</option>
<option value="Shopping">Shopping</option>
<option value="Entertainment">Entertainment</option>
<option value="Travel">Travel</option>
<option value="Insurance">Insurance</option>
<option value="Savings">Savings</option>
<option value="Miscellaneous">Miscellaneous</option>
</select>
</div>
<div class="amount-input-div">
<label for="amount-input">Amount:</label>
<input type="number" id="amount-input" placeholder="₹" />
</div>
<div class="date-input-div">
<label for="date-input">Date:</label>
<input type="date" id="date-input" />
</div>
<button id="add-btn">Add</button>
</div>
<div class="budget-section">
<h2>Budget Tracker</h2>
<div class="budget-input">
<label for="budget-input">Set Monthly Budget:</label>
<input type="number" id="budget-input" placeholder="Enter budget amount">
<button id="set-budget-btn">Set Budget</button>
</div>
<div class="budget-display">
<p>Budget: <span id="budget-amount">Not set</span></p>
<p>Spent: <span id="spent-amount">0</span></p>
<p>Remaining: <span id="remaining-amount">0</span></p>
</div>
<div class="budget-progress">
<div id="budget-bar"></div>
</div>
</div>
<div class="chart-container">
<canvas id="expenseChart"></canvas>
</div>
<div class="expenses-list">
<h2>Expenses History</h2>
<table>
<thead>
<tr>
<th>Category</th>
<th>Amount</th>
<th>Date</th>
<th>Delete</th>
</tr>
</thead>
<tbody id="expense-table-body"></tbody>
<tfoot>
<tr>
<td>Total:</td>
<td id="total-amount"></td>
<td></td>
<td></td>
</tr>
</tfoot>
</table>
</div>
<script src="/Scripts/script.js"></script>
<button
class="settings-button"
onclick="window.location.href='settings.html'"
>
<i class="fas fa-cog"></i> Settings
</button>
</body>
</html>