-
Notifications
You must be signed in to change notification settings - Fork 1
/
editor_api.js
32 lines (24 loc) · 918 Bytes
/
editor_api.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
class init {
constructor(){
this.options = document.createElement("div");
this.backSmartBtn = document.createElement("smart-button");
this.backBtn = document.createElement("button");
this.backBtn.innerText = "back";
this.backSmartBtn.append(this.backBtn);
this.options.append(this.backSmartBtn);
this.nextSmartBtn = document.createElement("smart-button");
this.nextBtn = document.createElement("button");
this.nextBtn.innerText = "next";
this.nextSmartBtn.append(this.nextBtn);
this.options.append(this.nextSmartBtn);
document.body.append(this.options);
this.options.style.alignSelf = "center";
this.toggleButtonVisibility();
//this.options.hidden = "true";
//document.body.style.textAlign = "center";
}
toggleButtonVisibility(){
//var visibility = {"true" : "false", "false" : "true"};
this.options.hidden = !this.options.hidden;
}
}