Add click listener, add notes

This commit is contained in:
Ethan O'Brien 2023-06-27 19:35:01 -05:00
parent 606bc844e3
commit 395b008922

View file

@ -1495,6 +1495,11 @@ class EmulatorJS {
optionButton.classList.add("ejs_option_row");
optionButton.classList.add("ejs_button_style");
this.addEventListener(optionButton, "click", (e) => {
this.settings[title] = options[i];
//todo, change color
})
const msg = this.createElement("span");
msg.innerText = options[i];