-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
372 lines (293 loc) · 18.1 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
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
<!DOCTYPE html>
<html lang="en">
<head>
<title>Just Your Average Very Original Totally Not Similar to Other Teams' Financial Tracker</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Product+Sans">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<link rel="icon" href="icon.jpeg" type="image/jpeg">
<!--CSS for App structures-->
<link rel="stylesheet" href="./index.css"/>
<link rel="stylesheet" href="./view-toggle.css"/>
<link rel="stylesheet" href="./calendar.css"/>
<!--CSS for each sections-->
<link rel="stylesheet" href="./left.css"/>
<link rel="stylesheet" href="./popups.css"/>
<link rel="stylesheet" href="day-view-popup.css">
<!--JS library-->
<script type ="text/javascript" src="jquery-2.1.4.min.js"></script>
<!--JS files-->
<!--JS files for global variables-->
<script type ="text/javascript" src="globalVariables.js"></script>
<!--JS data for the app-->
<script type ="text/javascript" src="FakeData.js"></script>
<script type ="text/javascript" src="dataGenerator.js"></script>
<script type ="text/javascript" src="dataQueries.js"></script>
<script type="text/javascript" src="category_totals.js"></script>
<script type ="text/javascript" src="calendar.js"></script>
<script type ="text/javascript" src="popups.js"></script>
<!--JS web interaction-->
<!-- <script src="DataReader.js"></script> -->
<script type ="text/javascript" src="Chart.min.js"></script>
<script type ="text/javascript" src = "line_graph.js"></script>
<script type ="text/javascript" src="doughnut.js"></script>
<script type ="text/javascript" src="left_categories.js"></script>
<!-- ICONS -->
<script src="https://kit.fontawesome.com/0372856320.js" crossorigin="anonymous"></script>
<script type ="text/javascript" src="day-view-popup.js"></script>
</head>
<body>
<div class="grid-container-app app">
<div class="left-top">
<!--the switch for monthly and yearly-->
<div class="toggleWrapper">
<input type="checkbox" onclick="checkState()" id="tog" unchecked>
<label for="tog" class="toggle"><span class="toggle__handler"></span></label>
<h5 style="font-weight: 900; margin-top: 10px; font-size: 1.1vmax; text-align: center; color: grey; margin-right: 2px; border: solid 1px grey; border-radius: 8px; margin-bottom: 0px;">Add Transaction</h5>
</div>
</div>
<div class="left-panel" id="left_panel">
<div class="cat1" id="cat1"> <!-- ----------------------------------------------------------------------------------Accomodation-->
<button onclick="funcOpenDir('Accommodation', 'cat1')" class="category accommodation" type="button" title="add transaction">
<i class="fas fa-bed fa-2x"></i>
</button>
<div class = "cat-pop" id="catt1">Accommodation</div>
</div>
<div class="cat2" id="cat2"> <!-- ----------------------------------------------------------------------------------Entertainment -->
<button onclick="funcOpenDir('Entertainment', 'cat2')" class="category entertainment" type="button" title="add transaction">
<i class="fas fa-gamepad fa-2x"></i>
</button>
<div class = "cat-pop" id="catt2">Entertainment</div>
</div>
<div class="cat3" id="cat3"> <!-- ----------------------------------------------------------------------------------Food-->
<button onclick="funcOpenDir('Food', 'cat3')" class="category food" type="button" title="add transaction">
<i class="fas fa-hamburger fa-2x"></i>
</button>
<div class = "cat-pop" id="catt3">Food</div>
</div>
<div class="cat4" id="cat4"> <!-- ----------------------------------------------------------------------------------Health-->
<button onclick="funcOpenDir('Health', 'cat4')" class="category health" type="button" title="add transaction">
<i class="fas fa-medkit fa-2x"></i>
</button>
<div class = "cat-pop" id="catt4">Health</div>
</div>
<div class="cat5" id="cat5"> <!-- ----------------------------------------------------------------------------------Personal-->
<button onclick="funcOpenDir('Personal', 'cat5')" class="category personal" type="button" title="add transaction">
<i class="fas fa-smile fa-2x"></i>
</button>
<div class = "cat-pop" id="catt5">Personal</div>
</div>
<div class="cat6" id="cat6"> <!-- ----------------------------------------------------------------------------------Utilities-->
<button onclick="funcOpenDir('Utilities', 'cat6')" class="category utilities" type="button" title="add transaction">
<i class="fas fa-tools fa-2x"></i>
</button>
<div class = "cat-pop" id="catt6">Utilities</div>
</div>
<button onclick="funcOpenCat()" id="add_button" class="category addCat" type="button">+</button>
</div>
<div class="right-panel">
<div class="grid-panel right-panel day-view-popup" id="day-popup">
<div class="day-view-popup-content" id="day-Transactions-Content"></div>
</div>
<div class="grid-panel right-panel right-top">
<h3 class="right-top-panel">Change in Worth</h3>
<p id="graph-description-label"></p>
<div class = "line-container">
<canvas id="line" onclick="swapLineGraph()"></canvas>
</div>
<div class="grid-panel right-panel right-top line-calendar-cover" id="LCC" onclick="swapLineGraphBack()"></div>
</div>
<div class="grid-panel right-panel right-bottom">
<div class = "doughnut-container">
<canvas id="doughnut" onclick="swapDoughnut()">
</canvas>
</div>
<div class="grid-panel right-panel right-bottom doughnut-calendar-cover" id="DCC"></div>
</div>
</div>
<!--centre header-->
<!-- --------------------------- DATES FOR MONTH VIEW ------------------------------------ -->
<div class="center-header">
<div class="calendar-content">
</div>
</div>
<div class='grid-panel center-panel big-doughnut' id='big-dough'>
<div class='swap-doughnut-close-button' onclick=swapDoughnutBack()>×</div>
<canvas id="doughnut-but-bigger"></canvas>
</div>
<div class='grid-panel center-panel big-line-graph' id='big-line'>
<div class='swap-line-close-button' onclick=swapLineGraphBack()>×</div>
<h3 class="center-panel-but-for-bigger" >Change in Worth</h3>
<p class ='GDLBBB' id="graph-description-label-but-bigger"></p>
<canvas id="line-but-bigger"></canvas>
</div>
<div class="grid-panel center-panel">
<div class="calendar-header">
<h2 class="month">
<ul>
<li class="prev"><button class="btn" id="calendar-prev">❮</button></a></li>
<li >
<span id="calendar-header-month">November</span>
<span id="calendar-header-year">2021</span>
</li>
<li class="next"><button class="btn" id="calendar-next">❯</button></li>
</ul>
</h2>
</div>
<!--calendar-->
<div class="calendar-content">
<div class="calendar">
<div class="current-month">
<ol class="week-day" id="week-labels"></ol> <!--week headers-->
<ol class="days-grid" id="days-of-week"></ol> <!--days in the month-->
</div>
</div>
</div>
</div>
<div class="day-view-popup-overlay" id="day-popup-overlay" onclick=closeDayView()></div>
<div class="pop-up" id="directory" style="display:none;">
<button onclick="funcCloseDir()" class="close2" type="button">X</button>
<br>
<button onclick="funcOpenTransac()" class="choice popup-header" type="button">Add Transaction</button>
<br>
<button onclick="funcOpenEdit()" class="choice popup-header" type="button">Edit Category</button>
</div>
<div class="pop-up" id="addTransac" style="display:none;">
<div class="tab">
<button class="tablinks active" onclick="funcOpenTransac()"><h2>Add Transaction</h2></button>
<button class="tablinks" onclick="funcOpenEdit()" ><h2>Edit Category</h2></button>
</div>
<div class="tabcontent">
<button onclick="funcCloseTransac()" class="close" type="button">X</button>
<!-- <h2 class="popup-header">Add Transaction</h2> -->
<label for="transacName" >NAME</label>
<input type="text" id="transacName" name="name">
<label for="transacAmt">AMOUNT</label>
<input type="number" id="transacAmt" name="amount" placeholder="87.50, 703, 12.67...">
<label for="transacType">EXPENSE/INCOME</label>
<select id="transacType" name="type">
<option value="Expense">EXPENSE</option>
<option value="Income">INCOME</option>
</select>
<label for="transacCat">CATEGORY</label>
<select id="transacCat" name="category">
<option value="Accommodation">Accommodation</option>
<option value="Entertainment">Entertainment</option>
<option value="Food">Food</option>
<option value="Health">Health</option>
<option value="Personal">Personal</option>
<option value="Utilities">Utilities</option>
</select>
<label for="transacDate" >DATE</label>
<input type="date" id="transacDate" name="date">
<input type="submit" onclick="new_transac()" value="Submit">
</div>
</div>
<div class="pop-up tabcontent" id="addCateg" style="display:none;">
<button onclick="funcCloseCat()" class="close" type="button">X</button>
<h2 class="popup-header">Add Category</h2>
<label for="catName">NAME</label>
<input type="text" id="catName" name="name" placeholder="Savings, Gifts, Miscellaneous...">
<label for="catColor">COLOR</label>
<input type="color" id="catColor" name="color">
<div class="icon-select">
<label for="catIcon">ICON</label>
<select name="icon" id="catIcon" selected = "option 1">
<option value="fas fa-baby-carriage fa-2x">option 1</option>
<option value="fas fa-bone fa-2x">option 2</option>
<option value="fas fa-car fa-2x">option 3</option>
<option value="fas fa-cat fa-2x">option 4</option>
<option value="fas fa-crow fa-2x">option 5</option>
<option value="fas fa-faucet fa-2x">option 6</option>
<option value="fas fa-gem fa-2x">option 7</option>
<option value="fas fa-guitar fa-2x">option 8</option>
<option value="fas fa-luggage-cart fa-2x">option 9</option>
<option value="fas fa-mug-hot fa-2x">option 10</option>
<option value="fas fa-plane fa-2x">option 11</option>
<option value="fas fa-piggy-bank fa-2x">option 12</option>
</select>
<div class="iconSelections">
<ol class="icons-to-select">
<li class="selected-icon fas fa-baby-carriage fa-lg" id="selected_icon"></li>
</ol>
<ol class="icons-to-select2">
<li><button class="iconOption fas fa-baby-carriage fa-lg" onclick="selectedIcon(1)"></button></li>
<li><button class="iconOption fas fa-bone fa-lg" onclick="selectedIcon(2)"></button></li>
<li><button class="iconOption fas fa-car fa-lg" onclick="selectedIcon(3)"></button></li>
<li><button class="iconOption fas fa-cat fa-lg" onclick="selectedIcon(4)"></button></li>
<li><button class="iconOption fas fa-crow fa-lg" onclick="selectedIcon(5)"></button></li>
<li><button class="iconOption fas fa-faucet fa-lg" onclick="selectedIcon(6)"></button></li>
<li><button class="iconOption fas fa-gem fa-lg" onclick="selectedIcon(7)"></button></li>
<li><button class="iconOption fas fa-guitar fa-lg" onclick="selectedIcon(8)"></button></li>
<li><button class="iconOption fas fa-luggage-cart fa-lg" onclick="selectedIcon(9)"></button></li>
<li><button class="iconOption fas fa-mug-hot fa-lg" onclick="selectedIcon(10)"></button></li>
<li><button class="iconOption fas fa-plane fa-lg" onclick="selectedIcon(11)"></button></li>
<li><button class="iconOption fas fa-piggy-bank fa-lg" onclick='selectedIcon(12)'></button></li>
</ol>
</div>
</div>
<input type="submit" onclick="submitCat()" value="Submit">
</div>
<div class="pop-up tabcontent" id="editor" style="display:none;">
<button onclick="funcCloseEdit()" class="close" type="button">X</button>
<div class="tab">
<button class="tablinks" onclick="funcOpenTransac()"><h2>Add Transaction</h2></button>
<button class="tablinks active" onclick="funcOpenEdit()" ><h2>Edit Category</h2></button>
</div>
<label for="editCat">CURRENT CATEGORY</label>
<select name="editCat" id="editCat">
<option value="cat1" id="cat1Edit">Accommodation</option>
<option value="cat2" id="cat2Edit">Entertainment</option>
<option value="cat3" id="cat3Edit">Food</option>
<option value="cat4" id="cat4Edit">Health</option>
<option value="cat5" id="cat5Edit">Personal</option>
<option value="cat6" id="cat6Edit">Utilities</option>
</select>
<label for="editName">NEW NAME</label>
<input type="text" id="editName" name="name" placeholder="Savings, Gifts, Miscellaneous...">
<label for="editColor">NEW COLOR</label>
<input type="color" id="editColor" name="color">
<div class="icon-select">
<label for="catIcon">NEW ICON</label>
<select name="icon" id="catIcon" selected = "option 1">
<option value="fas fa-baby-carriage fa-2x">option 1</option>
<option value="fas fa-bone fa-2x">option 2</option>
<option value="fas fa-car fa-2x">option 3</option>
<option value="fas fa-cat fa-2x">option 4</option>
<option value="fas fa-crow fa-2x">option 5</option>
<option value="fas fa-faucet fa-2x">option 6</option>
<option value="fas fa-gem fa-2x">option 7</option>
<option value="fas fa-guitar fa-2x">option 8</option>
<option value="fas fa-luggage-cart fa-2x">option 9</option>
<option value="fas fa-mug-hot fa-2x">option 10</option>
<option value="fas fa-plane fa-2x">option 11</option>
<option value="fas fa-piggy-bank fa-2x">option 12</option>
</select>
<div class="iconSelections">
<ol class="icons-to-select">
<li class="selected-icon fas fa-baby-carriage fa-lg" id="selected_icon"></li>
</ol>
<ol class="icons-to-select2">
<li><button class="iconOption fas fa-baby-carriage fa-lg" onclick="selectedIcon(1)"></button></li>
<li><button class="iconOption fas fa-bone fa-lg" onclick="selectedIcon(2)"></button></li>
<li><button class="iconOption fas fa-car fa-lg" onclick="selectedIcon(3)"></button></li>
<li><button class="iconOption fas fa-cat fa-lg" onclick="selectedIcon(4)"></button></li>
<li><button class="iconOption fas fa-crow fa-lg" onclick="selectedIcon(5)"></button></li>
<li><button class="iconOption fas fa-faucet fa-lg" onclick="selectedIcon(6)"></button></li>
<li><button class="iconOption fas fa-gem fa-lg" onclick="selectedIcon(7)"></button></li>
<li><button class="iconOption fas fa-guitar fa-lg" onclick="selectedIcon(8)"></button></li>
<li><button class="iconOption fas fa-luggage-cart fa-lg" onclick="selectedIcon(9)"></button></li>
<li><button class="iconOption fas fa-mug-hot fa-lg" onclick="selectedIcon(10)"></button></li>
<li><button class="iconOption fas fa-plane fa-lg" onclick="selectedIcon(11)"></button></li>
<li><button class="iconOption fas fa-piggy-bank fa-lg" onclick='selectedIcon(12)'></button></li>
</ol>
</div>
</div>
<input type="submit" onclick="deleteCategory()" value="Delete Category">
<br>
<input type="submit" onclick="submitEdit()" value="Submit">
</div>
</div>
</body>
</html>