-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (57 loc) · 2.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="Fresher’s Guide.png" type="image/x-icon">
<title>Expense Tracker</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<img src="FG LOGO.png" alt="FRESHER'S GUIDE">
<div class="container">
<h1 id="heading">Expense Tracker</h1>
<form id="expense-form">
<input type="text" id="description" placeholder="Description" required>
<input type="number" id="amount" placeholder="Amount" required>
<input type="date" id="date" required>
<select id="category" required>
<option value="">Select Category</option>
<option value="Food">Food</option>
<option value="Transportation">Transportation</option>
<option value="Entertainment">Entertainment</option>
<option value="Other">Other</option>
</select>
<button type="submit">Add Expense</button>
</form>
<div id="filters">
<input type="date" id="filter-date-from" placeholder="From Date">
<input type="date" id="filter-date-to" placeholder="To Date">
<input type="number" id="filter-min-amount" placeholder="Min Amount">
<input type="number" id="filter-max-amount" placeholder="Max Amount">
<button id="apply-filters" class="spaced-button">Apply Filters</button>
<div id="sort-container">
<select id="sort-options">
<option value="date">Sort by Date</option>
<option value="amount">Sort by Amount</option>
<option value="category">Sort by Category</option>
</select>
</div>
</div>
<div id="expense-list">
<!-- List of expenses will be displayed here -->
</div>
<div id="summary">
<!-- Summary and budget tracking will be displayed here -->
</div>
<div id="expense-chart-container">
<canvas id="expense-chart" width="300" height="300"></canvas>
</div>
<input type="number" id="budget" placeholder="Set Budget">
<button id="set-budget">Set Budget</button>
<button id="export-csv">Export as CSV</button>
</div>
<script src="script.js"></script>
</body>
</html>