impr(dev): add button to show real words input

!nuf
This commit is contained in:
Miodec 2024-07-11 11:05:21 +02:00
parent fddbede932
commit 034e97c35a
2 changed files with 7 additions and 0 deletions
frontend/src

View file

@ -10,6 +10,7 @@
<button class="generateData">generate data</button>
<button class="toggleMediaQueryDebug">toggle media query debug</button>
<button class="showTestNotifications">show test notifications</button>
<button class="showRealWordsInput">show real words input</button>
</div>
</dialog>

View file

@ -41,6 +41,12 @@ async function setup(modalEl: HTMLElement): Promise<void> {
);
setMediaQueryDebugLevel(mediaQueryDebugLevel);
});
modalEl
.querySelector(".showRealWordsInput")
?.addEventListener("click", () => {
$("#wordsInput").css("opacity", "1");
void modal.hide();
});
}
const modal = new AnimatedModal({