summaryrefslogtreecommitdiff
path: root/web/static
diff options
context:
space:
mode:
Diffstat (limited to 'web/static')
-rw-r--r--web/static/dartboat.js18
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) {