From ea49bdfd2c83a0fced5a43015f5c1ce4f5dbce65 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 25 Apr 2022 18:12:37 -0700 Subject: web: use a common function to determine the next action --- web/static/dartboat.js | 8 ++++---- web/static/index.html | 2 +- web/static/style.css | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'web/static') diff --git a/web/static/dartboat.js b/web/static/dartboat.js index cb84fe3..cb8e9dd 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -113,19 +113,19 @@ prompt_handlers.num_darts = { } }; -prompt_handlers.match_over = { +prompt_handlers.end_match = { __proto__: prompt_handlers.default_with_undo, append() {}, submit() { - Module.ccall('prompt_match_mode'); + Module.ccall('end_match'); } }; -prompt_handlers.init = { +prompt_handlers.match_mode = { __proto__: prompt_handlers.default, - _keypad: 'init', + _keypad: 'match_mode', submit() { let v = this._get_and_clear(); diff --git a/web/static/index.html b/web/static/index.html index 5fb11a8..e1384bb 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -47,7 +47,7 @@
UNDO
REMAINING
-
+
[1] Play against bot
[2] One-player scoreboard
[3] Two-player scoreboard
diff --git a/web/static/style.css b/web/static/style.css index 2a3d60b..519a437 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -42,7 +42,7 @@ div#controls .keypad { display: contents; } -div#controls #keypad-init .key { +div#controls #keypad-match_mode .key { grid-column: 1 / -1; padding-left: 0.4rem; -- cgit v1.2.3-70-g09d2