-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbudget.html
152 lines (145 loc) · 5.17 KB
/
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Budget Manager</title>
<link rel="stylesheet" href="css/budget.css" />
<link rel="stylesheet" href="css/tab.css" />
<link href="https://fonts.googleapis.com/css2?family=Slabo+27px&display=swap" rel="stylesheet">
</head>
<body>
<!--nav tab -->
<div class="buttons-container" style="text-align:center;">
<ul class="buttons" style="display:inline-block;">
<li>
<a id="home" name="home" href="index.html" title="Jot down!">
<img src="static/icons/home.png" alt="">
</a>
</li>
<li>
<a id="Dashboard" name="Dashboard" href="https://assistant-dashboard.herokuapp.com/" title="Onestop Dashboard!">
<img src="static/icons/dash.png" alt="">
</a>
</li>
<li>
<a id="Task Manager" name="Task Manager" href="task.html" title="Task Manager">
<img src="static/icons/todo.png" alt="">
</a>
</li>
<li>
<a id="note" name="note" href="note.html" title="Jot down!">
<img src="static/icons/note.png" alt="">
</a>
</li>
<li>
<a id="budget" name="budget" href="budget.html" title="budget">
<img src="static/icons/budget.png" alt="">
</a>
</li>
<li>
<a id="travel" name="travel" href="#" title="travel">
<img src="static/icons/travel.png" alt="">
</a>
<ul class="dropdown-content">
<li><a href="flight.html">Flights</a></li>
<li><a href="trains.html">Trains</a></li>
</ul>
</li>
<li>
<a id="Relax" name="Relax" href="relax.html" title="Relax">
<img src="static/icons/heart.png" alt="">
</a>
</li>
</ul>
</div>
<!-- end of nav tab -->
<div class="container" >
<div class="header">
<h1 style="color:#ffffff;">Budget App</h1>
</div>
<div class="budget-section">
<div class="budget col col-md col-sm">
<h2 style="color:#ffffff;">budget</h2>
<img src="static/budget/money-bag.svg" width="40" alt="" />
<p class="amount">$ <span id="budgetAmount">0</span></p>
</div>
<div class="expenses col col-md col-sm">
<h2 style="color:#ffffff;">expenses</h2>
<img src="static/budget/accounting.svg" width="40" alt="" />
<p class="exp-amount">$ <span id="expensesAmount">0</span></p>
</div>
<div class="balance col col-md col-sm">
<h2 style="color:#ffffff;">balance</h2>
<img src="static/budget/law.svg" width="40" alt="" />
<p class="amount bala">$ <span id="balanceAmount">0</span></p>
</div>
</div>
<div id="displayExpenses" style="color:#ffffff;">
<div class="budget-list">
<div class="col">
<h4 style="color:#ffffff;">expense title</h4>
</div>
<div class="col">
<h4 style="color:#ffffff;">expense value</h4>
</div>
<div class="col"></div>
</div>
<div id="expValue"></div>
</div>
</div>
<div class="toggle">
<button id="myBtn" type="button">+</button>
</div>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<h2>Budget Form</h2>
</div>
<div class="modal-body">
<div class="budget-form" id="budgetform">
<form id="addForm">
<label for=""> Make a budget</label> <br />
<input type="number" id="number" /> <br />
<button type="submit">Add Budget</button>
</form>
</div>
<div class="expense-form" id="expense-form">
<form action="" id="expForm">
<div class="">
<label for="">please enter your expense</label> <br />
<input type="text" id="expName" />
</div>
<div class="">
<label for="">please enter expense amount</label> <br />
<input type="number" id="expNumber" />
</div>
<button type="submit" id="submitExpen">Add expense</button>
</form>
<button onclick="callBudget()" id="bug">
Back to add budget ->
</button>
</div>
<div class="edit-form" id="editForm">
<form action="" id="saveEdit">
<div class="">
<label for="">Edit your expense</label> <br />
<input type="text" id="editExpName" />
</div>
<div class="">
<label for="">Edit expense amount</label> <br />
<input type="number" id="editExpNumber" />
</div>
<button type="submit">Save changes</button>
</form>
</div>
</div>
</div>
</div>
<!-- javascript files -->
<script src="js/budget.js"></script>
</body>
</html>