-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (41 loc) · 1.37 KB
/
Copy pathindex.html
File metadata and controls
44 lines (41 loc) · 1.37 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Budget App</title>
<link rel="stylesheet" href="styles.css"/>
</head>
<body>
<h1>Budget Tracker</h1>
<form id="entry-form">
<select id="type">
<option value="income">Income</option>
<option value="expense">Expense</option>
</select>
<input type="text" id="description" placeholder="Description" required />
<input type="number" id="amount" placeholder="Amount" required />
<div id="income-dates">
<label for="date-received">Date Received</label>
<input type="date" id="date-received" />
</div>
<div id="expense-dates" style="display:none;">
<label for="due-date">Due Date</label>
<input type="date" id="due-date" />
<label for="paid-date">Paid Date</label>
<input type="date" id="paid-date" />
</div>
<button id="add-button" type="submit" aria-live="polite">Add Entry</button>
</form>
<div id="live-region" class="sr-only" aria-live="polite"></div>
<h2>Entries</h2>
<table id="entry-table">
<thead>
<tr><th>Type</th><th>Description</th><th>Amount</th><th>Date</th><th>Actions</th></tr>
</thead>
<tbody></tbody>
</table>
<h3>Remaining Balance: $<span id="balance">0</span></h3>
<script src="app.js"></script>
</body>
</html>