From 395b008922e586659209796b5b4b5fd99d093607 Mon Sep 17 00:00:00 2001 From: Ethan O'Brien <77750390+ethanaobrien@users.noreply.github.com> Date: Tue, 27 Jun 2023 19:35:01 -0500 Subject: [PATCH] Add click listener, add notes --- src/emulator.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/emulator.js b/src/emulator.js index b7f3ec9..492c7ae 100644 --- a/src/emulator.js +++ b/src/emulator.js @@ -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];