summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-10 01:52:08 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-10 01:52:08 -0700
commitd29946052c48269c0f0386305d6f51854cb55079 (patch)
tree6f8837bf36197e2e594226735ff3eb228e11c84d /web
parentcf7b5519c257c96f426edf045b07e29e8aeb4e72 (diff)
downloaddartboat-d29946052c48269c0f0386305d6f51854cb55079.tar.gz
dartboat-d29946052c48269c0f0386305d6f51854cb55079.tar.xz
web: display who throws first in visit log
Diffstat (limited to 'web')
-rw-r--r--web/static/style.css1
-rw-r--r--web/web_scoreboard.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/web/static/style.css b/web/static/style.css
index e747e1a..0ebec5c 100644
--- a/web/static/style.css
+++ b/web/static/style.css
@@ -396,6 +396,7 @@ body {
#visits .p100 { color: #78c018; }
#visits .p140 { color: #20e018; }
#visits .p180 { color: #20e018; font-weight: bold; }
+#visits .throws-first { color: #aaa; }
#visits .visit-p1-name { grid-column: 1 / span 2; }
#visits .visit-p2-name { grid-column: 4 / span 2; }
#visits .visit-p1-pts { grid-column: 1; }
diff --git a/web/web_scoreboard.c b/web/web_scoreboard.c
index 8a6def0..cd50d2c 100644
--- a/web/web_scoreboard.c
+++ b/web/web_scoreboard.c
@@ -184,11 +184,16 @@ void draw_visits()
char buf[32], buf2[32];
snprintf(buf, sizeof(buf), "%d", state->legs[0]->start);
+ if (match_opts->throws_first == 1)
+ elemv[elemc++] = create_div("∗", "visit-p1-pts throws-first");
elemv[elemc++] = create_div(buf, "visit-p1-rem");
elemv[elemc++] = create_div("0", "visit-n");
if (state->mode != M_P) {
snprintf(buf, sizeof(buf), "%d", state->legs[1]->start);
elemv[elemc++] = create_div(buf, "visit-p2-rem");
+ if (match_opts->throws_first == 2)
+ elemv[elemc++] = create_div("∗",
+ "visit-p2-pts throws-first");
}
for (int i = 0; i < n_visits; ++i) {