From 26542fd87e874aa487752ae92395c68053b8e8b7 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 3 Jul 2020 23:53:20 +0200 Subject: [PATCH] In HTML variant, make table header sticky. --- enhance_table.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/enhance_table.py b/enhance_table.py index d37205e..6dbee7c 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -140,6 +140,7 @@ table, tr, th, td { border: 1px solid black; text-align: center; } .district_name { writing-mode: vertical-rl; transform: rotate(180deg); } .bonus_data th { font-weight: normal; } .new_infections { font-weight: bold; } +thead th { position: sticky; top: 0; background-color: white; } Berlin's Corona infection numbers, development by districts @@ -147,6 +148,7 @@ table, tr, th, td { border: 1px solid black; text-align: center; }

Berlin's Corona infection numbers, development by districts

Updated daily at 9pm based on data from the "Senatsverwaltung für Gesundheit, Pflege und Gleichstellung". Source code. Text view optimized for terminal curl.

+""") sorted_dates.reverse() @@ -160,6 +162,7 @@ table, tr, th, td { border: 1px solid black; text-align: center; } # in Chromium. print('' % long_form) print('') + print('') for date in sorted_dates: print('') print('' % date) -- 2.30.2
date
%s
%s