X-Git-Url: https://plomlompom.com/repos/?p=berlin-corona-table;a=blobdiff_plain;f=enhance_table.py;h=6dbee7c1ceff06c04bb683852b751c26b7d616dd;hp=6fe12d4282fb8c0816756673041b33e57c076a7d;hb=26542fd87e874aa487752ae92395c68053b8e8b7;hpb=46e399e76a33e978ff50cdfd735d4701093c1976 diff --git a/enhance_table.py b/enhance_table.py index 6fe12d4..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() @@ -156,8 +158,11 @@ table, tr, th, td { border: 1px solid black; text-align: center; } if sum_district == district: print('' % long_form) else: - print('' % long_form) + # Wrap in div because the vertical orientation otherwise fails + # in Chromium. + print('' % long_form) print('') + print('') for date in sorted_dates: print('') print('' % date)
date%s%s
%s
%s