-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (65 loc) · 2.58 KB
/
index.html
File metadata and controls
80 lines (65 loc) · 2.58 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CashFlow Tracker</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h2>CashFlow Tracker</h2>
<div class="balance-card">
<h3>Total Balance</h3>
<h1 id="totalBalance">₦0.00</h1>
</div>
<div class="form-container">
<h3>Add New Transaction</h3>
<div class="input-group">
<label for="transactionName">Description</label>
<input type="text" id="transactionName" placeholder="e.g., New Headphones">
</div>
<div class="input-group">
<label for="transactionAmount">Amount</label>
<input type="number" id="transactionAmount" placeholder="e.g., 15000">
</div>
<div class="input-group">
<label for="transactionType">Type</label>
<select id="transactionType">
<option value="income">Income (+)</option>
<option value="expense">Expense (-)</option>
</select>
</div>
<button id="addBtn" onclick="addTransaction()">Add Transaction</button>
</div>
<div class="history-container">
<h3>Transaction History</h3>
<ul id="transactionList">
<!-- List item goes here -->
</ul>
</div>
</div>
<!-- Modal -->
<div id="customModal" class="modal-overlay">
<div class="modal-content">
<span id="closeModalBtn" class="close-btn" onclick="closeModal()">×</span>
<h3 id="modalTitle">Confirm Deletion</h3>
<p id="modalMessage">Are you sure you want to delete this transaction?</p>
<div class="modal-actions">
<button id="cancelBtn" class="cancel-btn" onclick="closeModal()">Cancel</button>
<button id="confirmBtn" class="confirm-btn" onclick="deleteItem()">Yes, Delete</button>
</div>
</div>
</div>
<!-- Pop up modal -->
<div id="infoModal" class="modal-overlay">
<div class="modal-content">
<span class="close-btn" onclick="closeModal()">×</span>
<h3 id="infoTitle"></h3>
<p id="infoMessage"></p>
<button class="cancel-btn" onclick="closeModal()" style="width: 100%; margin-top: 20px;">Got it!</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>