diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-24 00:56:19 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-24 00:56:19 -0700 |
commit | 5c855b503ea7e6d90129ac76db2c35c73b61cc34 (patch) | |
tree | 324944562cddc583e2d4d2f3d6f441971f1a0d5d /web/static/dartboat.js | |
parent | ffcf6b76ce72f6080c99b124d1f1b4b23c1ee6e4 (diff) | |
download | dartboat-5c855b503ea7e6d90129ac76db2c35c73b61cc34.tar.gz dartboat-5c855b503ea7e6d90129ac76db2c35c73b61cc34.tar.xz |
web: add one-player scoreboard mode
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r-- | web/static/dartboat.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js index d1463b2..4967f18 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -163,6 +163,14 @@ function setPlayerActive(n) { e.classList[n && e.id == `p${n}-info` ? 'add' : 'remove']('active')); } +function hidePlayer2(n) { + document.getElementById('p2-info').style.visibility = 'hidden'; +} + +function unhidePlayer2(n) { + document.getElementById('p2-info').style.removeProperty('visibility'); +} + function updatePlayerRem(n, ptr) { document.getElementById(`p${n}-rem`).textContent = UTF8ToString(ptr); } |