From d29946052c48269c0f0386305d6f51854cb55079 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 10 May 2022 01:52:08 -0700 Subject: web: display who throws first in visit log --- web/static/style.css | 1 + web/web_scoreboard.c | 5 +++++ 2 files changed, 6 insertions(+) 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) { -- cgit v1.2.3-70-g09d2