-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (39 loc) · 1.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Personal Finance Tracker</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container">
<h1>Personal Finance Tracker</h1>
<!-- Transaction Form -->
<div id="transaction-form">
<h3>Add Transaction</h3>
<form id="add-transaction-form">
<label for="description">Description:</label>
<input type="text" id="description" required>
<label for="amount">Amount (positive for income, negative for expense):</label>
<input type="number" id="amount" required>
<label for="category">Category:</label>
<input type="text" id="category" required>
<button type="submit">Add Transaction</button>
</form>
</div>
<!-- Balance and Transactions -->
<div id="balance">
<h3>Current Balance: <span id="current-balance">$0.00</span></h3>
</div>
<div id="transactions">
<h3>Transactions</h3>
<ul id="transaction-list"></ul>
</div>
<!-- Chart for Visualizing -->
<canvas id="chart"></canvas>
</div>
<script src="js/chart.min.js"></script> <!-- Including Chart.js -->
<script src="js/app.js"></script>
</body>
</html>