diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-24 03:08:33 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-24 03:08:55 -0700 |
commit | c5f001a4f47c63b5822dcdc0b57d49de70dfaa67 (patch) | |
tree | 1e6e4be4efceb051430034f1e1a0670cedbd6d12 /web/static/dartboat.js | |
parent | 3473a93fbb19846453d901505a720c2ccacb08d7 (diff) | |
download | dartboat-c5f001a4f47c63b5822dcdc0b57d49de70dfaa67.tar.gz dartboat-c5f001a4f47c63b5822dcdc0b57d49de70dfaa67.tar.xz |
web: make active prompt more prominent
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r-- | web/static/dartboat.js | 2 |
1 files changed, 2 insertions, 0 deletions
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'}`) |