diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-23 07:25:41 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-23 07:29:04 -0700 |
commit | d50ac287e7cc00793657422dbfa36d9c71e659be (patch) | |
tree | 8d237fde461b8b50cfb0d6ff602f764e9fa46fd1 /web/static/index.html | |
parent | 63d17a12c2a894944ab3760e9b5f3dbf6acb95b5 (diff) | |
download | dartboat-d50ac287e7cc00793657422dbfa36d9c71e659be.tar.gz dartboat-d50ac287e7cc00793657422dbfa36d9c71e659be.tar.xz |
web: add undo ability; simplify prompt handlers
Undo currently works only for ongoing matches.
Diffstat (limited to 'web/static/index.html')
-rw-r--r-- | web/static/index.html | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/web/static/index.html b/web/static/index.html index fdfa0ee..d2d6bb4 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -31,18 +31,20 @@ <div id="prompt-input"></div> <div id="prompt-msg-r"></div> </div> - <div onclick="promptAppend(1)" class="key num">1</div> - <div onclick="promptAppend(2)" class="key num">2</div> - <div onclick="promptAppend(3)" class="key num">3</div> - <div onclick="promptAppend(4)" class="key num">4</div> - <div onclick="promptAppend(5)" class="key num">5</div> - <div onclick="promptAppend(6)" class="key num">6</div> - <div onclick="promptAppend(7)" class="key num">7</div> - <div onclick="promptAppend(8)" class="key num">8</div> - <div onclick="promptAppend(9)" class="key num">9</div> - <div onclick="promptClear()" class="key">CLEAR</div> - <div onclick="promptAppend(0)" class="key num">0</div> - <div onclick="promptSubmit()" class="key">OK</div> + <div onclick="promptHandle('append', 1)" class="key num">1</div> + <div onclick="promptHandle('append', 2)" class="key num">2</div> + <div onclick="promptHandle('append', 3)" class="key num">3</div> + <div onclick="promptHandle('append', 4)" class="key num">4</div> + <div onclick="promptHandle('append', 5)" class="key num">5</div> + <div onclick="promptHandle('append', 6)" class="key num">6</div> + <div onclick="promptHandle('append', 7)" class="key num">7</div> + <div onclick="promptHandle('append', 8)" class="key num">8</div> + <div onclick="promptHandle('append', 9)" class="key num">9</div> + <div onclick="promptHandle('clear')" class="key">CLEAR</div> + <div onclick="promptHandle('append', 0)" class="key num">0</div> + <div onclick="promptHandle('submit')" class="key ok">OK</div> + <div onclick="promptHandle('undo')" class="key" id="key_undo">UNDO</div> + <div onclick="promptHandle('submit_rem')" class="key">REM</div> </div> <div id="settings-bar"> <div>dartboat™</div> |