-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (47 loc) · 1.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Expense Tracker</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="card">
<h2>Expense Tracker</h2>
<main class="container">
<h3 class="case">Current Balance: $<span id="current-balance">100.69</span></h3>
<article class="sub-total case">
<h3>Income: $<span id="income"></span></h3>
<h3>Expense: $<span id="expense"></span></h3>
<button id="calculate-button" class="btn">Calculate</button>
</article>
<article class="case">
<div class="transactions-history-clear">
<h3>Transaction History</h3>
<button id="clear-history">Clear</button>
</div>
<div class="transactions-history">
<p class="no-transactions">-----None-----</p>
</div>
</article>
<article class="add-transactions case">
<h3>Add Transactions</h3>
<form>
<div>
<label for="transaction-type">Transaction</label>
<input type="text" id="transaction-type">
</div>
<div>
<label for="amount">Amount <small>(-ve for expense, +ve for deposit)</small></label>
<input type="number" id="amount">
</div>
<input type="submit" value="Add Transaction" id="add-button" class="btn">
</form>
</article>
</main>
</div>
<script src="./script.js"></script>
</body>
</html>