From 6a5cc149d373354941d046d3b3d851901fb4caf3 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 16 May 2022 01:34:54 -0700 Subject: 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. --- web/static/dartboat.js | 1 + 1 file changed, 1 insertion(+) (limited to 'web/static/dartboat.js') 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)); -- cgit v1.2.3-70-g09d2