-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_budget.html
77 lines (73 loc) · 2.33 KB
/
index_budget.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="style_budget.css"/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
<title>My Budget App</title>
</head>
<body>
<div class="container">
<!-- Left half -->
<div class="left">
<p id="error_msg"></p>
<div class="title">
<h1 class="title">
My Budget <a href="#"><i class="fa fa-money"></i></a>
</h1>
</div>
<h3>New Entry</h3>
<form id="form">
<div class="form-control">
<label for="text">Description</label>
<input
type="text"
id="text"
onfocus="this.value=''"
placeholder="Enter text..."
/>
</div>
<div class="form-control">
<label for="amount">Amount(+/-) <br /> </label>
<input
type="number"
id="amount"
onfocus="this.value=''"
placeholder="Enter value..."
/>
</div>
<button class="btn">Add transaction</button>
</form>
<br/>
<div class="income-expense">
<div class="bg-dark">
<h4>Inflow</h4>
<p class="income" id="income">Rs.0.00</p>
</div>
<div class="bg-dark">
<h4>Outflow</h4>
<p class="expense" id="expense">Rs.0.00</p>
</div>
<div class="bg-dark">
<h4>Balance</h4>
<p id="balance">Rs.0.00</p>
</div>
</div>
<h3>History</h3>
<!-- Dynamic unordered list to display the various transactions -->
<ul id="list" class="list"></ul>
</div>
<!-- Right half -->
<div class="right">
<div class="budget-table">
<h3>Budget Table</h3>
<table id="budget-table">
<!-- Budget data will be inserted here dynamically -->
</table>
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>