-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (73 loc) · 3.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Expense Tracker</title>
<!-- Zero to Mastery Favicon -->
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Monthly Expense Tracker</h1>
<div class="form-container">
<!-- Form -->
<form id="expense-form">
<div class="inputs-container">
<!-- Month -->
<div class="input-group">
<label for="month">Month</label>
<select id="month" name="month">
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="September">September</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select>
</div>
<!-- Year -->
<div class="input-group">
<label for="year">Year</label>
<select id="year" name="year">
<!-- Dynamically generated years will go here -->
</select>
</div>
<!-- Category -->
<div class="input-group">
<label for="category">Category</label>
<select id="category" name="category">
<option value="Housing">Housing</option>
<option value="Food">Food</option>
<option value="Transportation">Transportation</option>
<option value="Bills">Bills</option>
<option value="Miscellaneous">Miscellaneous</option>
</select>
</div>
<!-- Amount -->
<div class="input-group">
<label for="amount">Amount</label>
<input type="number" id="amount" name="amount" required>
</div>
</div>
<!-- Submit -->
<button type="submit">Add Expense</button>
</form>
</div>
<!-- Chart -->
<div class="chart-container">
<canvas id="expense-chart"></canvas>
</div>
</div>
<!-- Script -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="script.js"></script>
</body>
</html>