From: Christian Heller Date: Fri, 3 Jul 2020 21:53:20 +0000 (+0200) Subject: In HTML variant, make table header sticky. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/conditions?a=commitdiff_plain;h=26542fd87e874aa487752ae92395c68053b8e8b7;p=berlin-corona-table In HTML variant, make table header sticky. --- 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)
date
%s
%s