From c5f001a4f47c63b5822dcdc0b57d49de70dfaa67 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sun, 24 Apr 2022 03:08:33 -0700 Subject: web: make active prompt more prominent --- web/static/dartboat.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/static/dartboat.js') diff --git a/web/static/dartboat.js b/web/static/dartboat.js index 35dac17..f700510 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -135,6 +135,8 @@ prompt_handlers.init = { function setPromptHandler(ptr) { let str = UTF8ToString(ptr); prompt_handler = prompt_handlers[str]; + document.getElementById('prompt').classList[ + prompt_handler ? 'add' : 'remove']('active'); document.querySelectorAll('.keypad').forEach(e => e.style.display = 'none'); document.getElementById(`keypad-${str === 'init' ? 'init' : 'default'}`) -- cgit v1.2.3-70-g09d2