summaryrefslogtreecommitdiff
path: root/web/static/dartboat.js
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-24 03:08:33 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-24 03:08:55 -0700
commitc5f001a4f47c63b5822dcdc0b57d49de70dfaa67 (patch)
tree1e6e4be4efceb051430034f1e1a0670cedbd6d12 /web/static/dartboat.js
parent3473a93fbb19846453d901505a720c2ccacb08d7 (diff)
downloaddartboat-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.js2
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'}`)