summaryrefslogtreecommitdiff
path: root/web/web_scoreboard.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-07 17:10:24 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-07 17:10:24 -0700
commit152324418166cbb915a9489e6673d196ad364a70 (patch)
treeead18aa152df5139c15e33e20aadf00fde7077be /web/web_scoreboard.c
parenta9c00736996b1c53dfb615f62c4bb3b1d3619ef0 (diff)
downloaddartboat-152324418166cbb915a9489e6673d196ad364a70.tar.gz
dartboat-152324418166cbb915a9489e6673d196ad364a70.tar.xz
web: stylesheet cleanup
Diffstat (limited to 'web/web_scoreboard.c')
-rw-r--r--web/web_scoreboard.c22
1 files changed, 11 insertions, 11 deletions
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");
}
}