diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-03 07:54:36 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-03 07:54:36 -0700 |
commit | d9add805c3b556d2fa357713bda577f4dc6f2d49 (patch) | |
tree | 2f55e9d07c7e1cdee267a414ccd7c7b302a581ea /web/static/dartboat.js | |
parent | 50f5ce01c543ef2e4d780f3aed8a565b142865ea (diff) | |
download | dartboat-d9add805c3b556d2fa357713bda577f4dc6f2d49.tar.gz dartboat-d9add805c3b556d2fa357713bda577f4dc6f2d49.tar.xz |
web: buffer and flush prompt
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r-- | web/static/dartboat.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js index 719bd8d..359abbd 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -50,16 +50,16 @@ function setPromptInactive() { $('#prompt').classList.remove('active') } -function setPromptInput(ptr) { - $('#prompt-input').textContent = UTF8ToString(ptr); +function setPromptMsgL(ptr) { + $('#prompt-msg-l').textContent = ptr ? UTF8ToString(ptr) : ''; } -function promptMsgL(ptr) { - $('#prompt-msg-l').textContent = UTF8ToString(ptr); +function setPromptMsgR(ptr) { + $('#prompt-msg-r').textContent = ptr ? UTF8ToString(ptr) : ''; } -function promptMsgR(ptr) { - $('#prompt-msg-r').textContent = UTF8ToString(ptr); +function setPromptInput(ptr) { + $('#prompt-input').textContent = ptr ? UTF8ToString(ptr) : ''; } function setKeypad(keypad) { @@ -98,15 +98,15 @@ function hidePlayerInfo(n) { } function updatePlayerName(n, ptr) { - $(`#p${n}-name`).textContent = ptr && UTF8ToString(ptr); + $(`#p${n}-name`).textContent = ptr ? UTF8ToString(ptr) : ''; } function updatePlayerRem(n, ptr) { - $(`#p${n}-rem`).textContent = ptr && UTF8ToString(ptr); + $(`#p${n}-rem`).textContent = ptr ? UTF8ToString(ptr) : ''; } function updatePlayerSugg(n, ptr) { - $(`#p${n}-sugg`).textContent = ptr && UTF8ToString(ptr); + $(`#p${n}-sugg`).textContent = ptr ? UTF8ToString(ptr) : ''; } function updatePlayerAvg(n, avg) { |