-
Notifications
You must be signed in to change notification settings - Fork 0
/
app2.js
39 lines (37 loc) · 1.09 KB
/
app2.js
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
// // class identifier
// function gt(params) {
// if (document.querySelector(params)) {
// return document.querySelector(params);
// } else {
// console.log(`'${params}' is not correct class/id`);
// }
// }
// class BudgetTracker {
// constructor() {
// this.date = gt('#date');
// this.budgetAmount = gt('#b-amount');
// this.bSubmit = gt('.b-submit');
// this.bTotal = gt('.b-total');
// this.eTotal = gt('.e-total');
// this.theBalance = gt('.the-balance');
// this.eError = gt('.e-error');
// this.bError = gt('.b-error');
// this.eDesc = gt('#e-desc');
// this.eAmount = gt('#e-amount');
// this.eSubmit = gt('.e-submit');
// this.data = gt('.js-data');
// this.jsBtn = gt('.js-btn');
// this.totalExp = 0;
// this.finalBalance = 0;
// this.record = [];
// }
// }
// function eventlistners() {
// let bSubmit = gt('b-submit');
// let eSubmit = gt('e-submit');
// let jsSubmit = gt('js-submit');
// let bt = new BudgetTracker();
// }
// document.addEventListener('domContentLoaded', () => {
// eventlistners();
// });