mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Add click listener, add notes
This commit is contained in:
parent
606bc844e3
commit
395b008922
1 changed files with 5 additions and 0 deletions
|
@ -1495,6 +1495,11 @@ class EmulatorJS {
|
||||||
optionButton.classList.add("ejs_option_row");
|
optionButton.classList.add("ejs_option_row");
|
||||||
optionButton.classList.add("ejs_button_style");
|
optionButton.classList.add("ejs_button_style");
|
||||||
|
|
||||||
|
this.addEventListener(optionButton, "click", (e) => {
|
||||||
|
this.settings[title] = options[i];
|
||||||
|
|
||||||
|
//todo, change color
|
||||||
|
})
|
||||||
|
|
||||||
const msg = this.createElement("span");
|
const msg = this.createElement("span");
|
||||||
msg.innerText = options[i];
|
msg.innerText = options[i];
|
||||||
|
|
Loading…
Reference in a new issue