home
·
contact
·
privacy
projects
/
berlin-corona-table
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a0908b9
)
Add explanatory text to HTML view, inter-link HTML and TXT versions.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:21:41 +0000
(22:21 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:21:41 +0000
(22:21 +0200)
enhance_table.py
patch
|
blob
|
history
diff --git
a/enhance_table.py
b/enhance_table.py
index 70a9501cab411936b5644c53a5906b4975bdc32e..03382554e2dbfc538aca8107777ed15ee789546c 100755
(executable)
--- a/
enhance_table.py
+++ b/
enhance_table.py
@@
-137,6
+137,9
@@
table, tr, th, td { border: 1px solid black; }
.day_row:nth-child(7n+2) { background-color: yellow; }
.district_name { writing-mode: vertical-rl; transform: rotate(180deg); }
</style>
.day_row:nth-child(7n+2) { background-color: yellow; }
.district_name { writing-mode: vertical-rl; transform: rotate(180deg); }
</style>
+<h1>Table of Berlin's Corona infection number development by districts.
+</h1>
+<p>Updated daily at 9pm. <a href="https://plomlompom.com/repos/?p=berlin-corona-table">Source code</a>. <a href="berlin_corona.txt">Text view optimized for terminal curl</a>.</p>
<table>
<tr>
<th>date</th>""")
<table>
<tr>
<th>date</th>""")
@@
-194,6
+197,8
@@
Abbrevations/explanations:
intro += "%s: %s\n" % (k, translate[k])
intro += """
Source code: https://plomlompom.com/repos/?p=berlin-corona-table
intro += "%s: %s\n" % (k, translate[k])
intro += """
Source code: https://plomlompom.com/repos/?p=berlin-corona-table
+
+HTML view: https://plomlompom.com/berlin_corona.html
"""
print(intro)
"""
print(intro)