summaryrefslogtreecommitdiff
path: root/web/static/dartboat.js
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-16 01:34:54 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-16 01:36:56 -0700
commit6a5cc149d373354941d046d3b3d851901fb4caf3 (patch)
tree773e7fd7135c50cd126eef34d720dcfe64f3a4e7 /web/static/dartboat.js
parent72fa8e2849ab618fa66b776fd4af6d18d025fd51 (diff)
downloaddartboat-6a5cc149d373354941d046d3b3d851901fb4caf3.tar.gz
dartboat-6a5cc149d373354941d046d3b3d851901fb4caf3.tar.xz
web: support ending ongoing match; ui/colour tweaks
Ending a match while the computer is throwing currently results in data being written to the prompt because any scheduled C calls are not being cleared yet.
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r--web/static/dartboat.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js
index 6051b7e..9e97dfc 100644
--- a/web/static/dartboat.js
+++ b/web/static/dartboat.js
@@ -158,6 +158,7 @@ document.addEventListener('DOMContentLoaded', () => {
command.split(';').forEach(x =>
promptHandle(...x.split(':', 2)));
});
+ $('#key-exit').addEventListener('click', () => promptHandle('exit'));
f = e => _set_opt(toCString(e.target.dataset.opt),
toCString(e.target.value));