Skip to content

Commit

Permalink
added QR code (fake static but close...)
Browse files Browse the repository at this point in the history
  • Loading branch information
specht committed Mar 14, 2012
1 parent 22735bd commit 0d117e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions styles.css
Expand Up @@ -11,3 +11,8 @@ h1 {
div.post img {
width: 100%!important;
}

div.post img.qr {
width: 20%!important;
float: right;
}
1 change: 1 addition & 0 deletions update.py
Expand Up @@ -33,6 +33,7 @@ def getText(nodelist):
if not os.path.exists(pngPath):
with open(htmlPath, 'w') as fout:
fout.write("<html><head><link href='../styles.css' type='text/css' rel='stylesheet' media='all' /></head><body><div class='post'>\n")
fout.write("<img class='qr' src='http://qrcode.kaywa.com/img.php?s=12&d=http%3A%2F%2Fwww.faz.net%2F-gum-6y6jv' />\n")
fout.write("<h1>" + getText(item.getElementsByTagName('title')[0].childNodes).encode('utf-8') + "</h1>\n\n")
fout.write(getText(item.getElementsByTagName('description')[0].childNodes).encode('utf-8') + "\n\n")
fout.write("</div><center><img src='../hr.png' style='width: 30%;'/></center></body></html>\n")
Expand Down

0 comments on commit 0d117e5

Please sign in to comment.