lunch-poll-legacy

Lunch Poll Legacy -- poll colleagues where to have lunch
Log | Files | Refs | README | LICENSE

commit bd95123f829b839662f606083766d3dc0c455f53
parent 5cd4429d44e9f9dc35bb01071a06ea508aef0ea6
Author: Matthias Balk <mbalk@mbalk.de>
Date:   Wed,  6 May 2026 16:54:27 +0200

alternate background color for every second row in table output

Diffstat:
Msrc/config.h | 6+++---
Msrc/mittag.c | 5++++-
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/config.h b/src/config.h @@ -1,14 +1,14 @@ /** * Lunch Poll Legacy - * Copyright 2024, 2025 Matthias Balk + * Copyright 2024 - 2026 Matthias Balk */ #ifndef __CONFIG_H__ #define __CONFIG_H__ -#define PROG_VERSION "1.2" +#define PROG_VERSION "1.3" #define PROG_NAME "Lunch Poll Legacy" -#define COPYRIGHT "Copyright 2024, 2025 Matthias Balk" +#define COPYRIGHT "Copyright 2024 - 2026 Matthias Balk" #define SOURCE_CODE_DOWNLOAD_URL NULL #endif /* __CONFIG_H__ */ diff --git a/src/mittag.c b/src/mittag.c @@ -1,6 +1,6 @@ /** * Lunch Poll Legacy - * Copyright 2024, 2025 Matthias Balk + * Copyright 2024 - 2026 Matthias Balk */ #include <errno.h> @@ -41,6 +41,9 @@ static int get_votes_callback(void *unused, puts("<meta name=\"robots\" content=\"noindex\">"); puts("<meta name=\"viewport\" content=\"width=device-width, " "initial-scale=1.0\">"); + puts("<style> <!--"); + puts("table { tr:nth-child(odd) { background-color: #eee; } }"); + puts("--> </style>"); puts("<title>Alle mampfen Mamba. Mampfred auch.</title></head>"); puts("<body><form action=\"/mittag.cgi/votes\" method=\"POST\"><table>"); }