summaryrefslogtreecommitdiff
path: root/web/static/dartboat.js
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-20 01:38:05 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-20 01:38:05 -0700
commita4f1e60ece6dac22c4d913fc70124873803f30ab (patch)
tree405793459509a17f37a1223196b9deaf71514ba7 /web/static/dartboat.js
parent2886add52aeed172289f3bddd995eda0b0c92a67 (diff)
downloaddartboat-a4f1e60ece6dac22c4d913fc70124873803f30ab.tar.gz
dartboat-a4f1e60ece6dac22c4d913fc70124873803f30ab.tar.xz
web: add (incomplete) support for 3+ player matches
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r--web/static/dartboat.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js
index 54cb29b..5c7f011 100644
--- a/web/static/dartboat.js
+++ b/web/static/dartboat.js
@@ -185,6 +185,11 @@ document.addEventListener('DOMContentLoaded', () => {
e.currentTarget.style.display = 'none';
};
$$('.modal').forEach(x => x.addEventListener('click', f));
+
+ $('#info-slot-prev').addEventListener('click', () =>
+ _scoreboard_prev_slot());
+ $('#info-slot-next').addEventListener('click', () =>
+ _scoreboard_next_slot());
});
document.addEventListener('keydown', e => {