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:
3e0c98e
)
Make HTML valid.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:29:23 +0000
(22:29 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:29:23 +0000
(22:29 +0200)
enhance_table.py
patch
|
blob
|
history
diff --git
a/enhance_table.py
b/enhance_table.py
index 14c0134ebb323a7218b6a69730cdbe1e23e9ba7a..7410589f98c8b33f0d571121767217819b3fc973 100755
(executable)
--- a/
enhance_table.py
+++ b/
enhance_table.py
@@
-131,12
+131,17
@@
for i in range(len(sorted_dates)):
# Optimized for web browser viewing.
if output_type == 'html':
# Optimized for web browser viewing.
if output_type == 'html':
- print("""<html>
+ print("""<!DOCTYPE html>
+<html>
+<head>
<style>
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>
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><h1>Table of Berlin's Corona infection number development by districts</h1>
+</style>
+<title>Table of Berlin's Corona infection number development by districts</title>
+</head>
+<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>
<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>