-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (99 loc) · 3.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Money Tracker Web App</title>
</head>
<body>
<h1>Money Tracker Web App</h1>
<div class="income-section">
<label for="income-category-select">Income Category:</label>
<select id="income-category-select">
<option value="Salary">Salary</option>
<option value="Savings">Savings</option>
<option value="Gifts">Gifts</option>
<option value="Lottery">Lottery</option>
<option value="Rental Income">Rental Income</option>
<option value="Freelance Income">Freelance Income</option>
</select>
<label for="income-amount-input">Amount:</label>
<input type="number" id="income-amount-input">
<label for="income-date-input">Date:</label>
<input type="date" id="income-date-input">
<button id="add-income-btn">Add Income</button>
</div>
<div class="input-section">
<label for="category-select">Expense Category:</label>
<select id="category-select">
<option value="College Fee">College Fee</option>
<option value="Rent">Rent</option>
<option value="Transport">Transport</option>
<option value="Food">Food</option>
<option value="Shopping">Shopping</option>
<option value="Cool Drinks">Cool Drinks</option>
</select>
<label for="amount-input">Amount:</label>
<input type="number" id="amount-input">
<label for="date-input">Date:</label>
<input type="date" id="date-input">
<button id="add-btn">Add Expense</button>
</div>
<div class="income-list">
<h2>Income List</h2>
<table>
<thead>
<tr>
<th>Category</th>
<th>Amount</th>
<th>Date</th>
<th>Delete</th>
</tr>
</thead>
<tbody id="income-table-body"></tbody>
<tfoot>
<tr>
<td>Total:</td>
<td id="total-income"></td>
<td></td>
<td></td>
</tr>
</tfoot>
</table>
</div>
<div class="expenses-list">
<h2>Expenses List</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-expense"></td>
<td></td>
<td></td>
</tr>
</tfoot>
</table>
</div>
<div class="total-balance">
<h2>Total Balance</h2>
<p>Total Balance: <span id="total-balance"></span></p>
</div>
<div class="download-container">
<button id="download-btn">Download as Excel</button>
</div>
<canvas id="incomeChart" width="400" height="400"></canvas>
<canvas id="expenseChart" width="400" height="400"></canvas>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.16.9/xlsx.full.min.js"></script>
<script src="script.js"></script>
</body>
</html>