-
Notifications
You must be signed in to change notification settings - Fork 0
/
DomElements.js
38 lines (36 loc) · 1.31 KB
/
DomElements.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
export {
generatorButton,
generatorUserFirstName,
generatorUserLastName,
generatorImage,
generatorUserRegisterDate,
generatorUserNationality,
generatorUserLocalization,
generatorMainWrap,
generatorHideAdressCheckbox,
};
let generatorButton = document.querySelector("button");
let generatorUserFirstName = document.querySelector(".user__firstname");
let generatorUserLastName = document.querySelector(".user__lastname");
let generatorImage = document.querySelector("img");
let generatorUserRegisterDate = document.querySelector(".user__registerdate");
let generatorUserNationality = document.querySelector(".user__nationality");
let generatorUserLocalization = document.querySelector(".user__location");
let generatorMainWrap = document.querySelector(".wrap");
let generatorHideAdressCheckbox = document.querySelector(
"#hideadress__checkbox"
);
/* Test*/
if (
generatorButton == undefined ||
generatorUserFirstName == undefined ||
generatorUserLastName == undefined ||
generatorImage == undefined ||
generatorUserRegisterDate == undefined ||
generatorUserNationality == undefined ||
generatorUserLocalization == undefined ||
generatorMainWrap == undefined ||
generatorHideAdressCheckbox == undefined
) {
throw " Error ⛔⛔⛔ DOM Elements selection error, please ensure correct elements assignment";
}