Skip to content
Browse files

Added an 'about' paragraph to explain what this means and where it co…

…mes from.
  • Loading branch information...
1 parent 376f186 commit faf1a20a8d27287c64bbe9fd4c060c71e928ac2f @mpdaugherty committed
Showing with 13 additions and 0 deletions.
  1. +6 −0 main.py
  2. +7 −0 stylesheets/main.css
View
6 main.py
@@ -32,6 +32,12 @@ def get(self):
self.response.out.write(self.getCurrentPollutantHTML("PM2.5"))
self.response.out.write(self.getCurrentPollutantHTML("Ozone"))
self.response.out.write('</div>')
+
+ self.response.out.write('<div id="About">')
+ self.response.out.write('<h3>About this page:</h3>')
+ self.response.out.write('<p>For information on how to understand these numbers, check out <a href="http://www.airnow.gov/index.cfm?action=aqibasics.aqi">www.airnow.gov</a>.</p><p>Data is generously provided by <a href="http://twitter.com/beijingair">BeijingAir</a>. Follow them on Twitter and thank them. Sparklines created with <a href="http://omnipotent.net/jquery.sparkline/">jQuery Sparklines</a>. Page created by <a href="http://blog.mpdaugherty.com">Michael P. Daugherty</a>.</p><p>OutdoorsBeijing is open source; check out our <a href="http://github.com/mpdaugherty/Outdoors-Beijing">Git Repository</a>.</p>')
+ self.response.out.write('</div>')
+
self.response.out.write("</body></html>")
def getCurrentPollutantHTML(self, pollutant):
View
7 stylesheets/main.css
@@ -23,4 +23,11 @@ h2
.sparkline
{
display:none;
+}
+
+#About
+{
+ margin: 50px auto;
+ font-size: small;
+ width: 75%;
}

0 comments on commit faf1a20

Please sign in to comment.
Something went wrong with that request. Please try again.