From 152324418166cbb915a9489e6673d196ad364a70 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 7 May 2022 17:10:24 -0700 Subject: web: stylesheet cleanup --- web/web_scoreboard.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'web/web_scoreboard.c') diff --git a/web/web_scoreboard.c b/web/web_scoreboard.c index 8746cc9..8626443 100644 --- a/web/web_scoreboard.c +++ b/web/web_scoreboard.c @@ -177,18 +177,18 @@ void draw_visits() struct dom_elem **elemv = malloc(6 * (n_visits + 1) * sizeof(*elemv)); int elemc = 0; - elemv[elemc++] = create_div(state->legs[0]->name, "visit-name1"); + elemv[elemc++] = create_div(state->legs[0]->name, "visit-p1-name"); if (state->mode != M_P) elemv[elemc++] = create_div(state->legs[1]->name, - "visit-name2"); + "visit-p2-name"); char buf[32], buf2[32]; snprintf(buf, sizeof(buf), "%d", state->legs[0]->start); - elemv[elemc++] = create_div(buf, "visit-col2"); - elemv[elemc++] = create_div("0", "visit-col3"); + 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-col4"); + elemv[elemc++] = create_div(buf, "visit-p2-rem"); } for (int i = 0; i < n_visits; ++i) { @@ -196,25 +196,25 @@ void draw_visits() snprintf(buf, sizeof(buf), "%d", v->points); snprintf(buf2, sizeof(buf2), "%s %s", - "visit-col1", points_class(v->points)); + "visit-p1-pts", points_class(v->points)); elemv[elemc++] = create_div(buf, buf2); snprintf(buf, sizeof(buf), "%d", v->rem); - elemv[elemc++] = create_div(buf, "visit-col2"); + elemv[elemc++] = create_div(buf, "visit-p1-rem"); snprintf(buf, sizeof(buf), "%d", i + 1); - elemv[elemc++] = create_div(buf, "visit-col3"); + elemv[elemc++] = create_div(buf, "visit-n"); if (i >= state->legs[1]->n_visits) continue; v = state->legs[1]->visits + i; snprintf(buf, sizeof(buf), "%d", v->rem); - elemv[elemc++] = create_div(buf, "visit-col4"); + elemv[elemc++] = create_div(buf, "visit-p2-rem"); snprintf(buf, sizeof(buf), "%d", v->points); snprintf(buf2, sizeof(buf2), "%s %s", - "visit-col5", points_class(v->points)); + "visit-p2-pts", points_class(v->points)); elemv[elemc++] = create_div(buf, buf2); if (v->n_darts) { @@ -225,7 +225,7 @@ void draw_visits() j == 0 ? "%s" : "-%s", n); free(n); } - elemv[elemc++] = create_div(buf, "visit-col6"); + elemv[elemc++] = create_div(buf, "visit-p2-darts"); } } -- cgit v1.2.3-70-g09d2