diff --git a/build/templates/index.html b/build/templates/index.html index 86f86e9..6238571 100644 --- a/build/templates/index.html +++ b/build/templates/index.html @@ -2,7 +2,10 @@ - +
@@ -46,4 +49,10 @@
+ diff --git a/build/templates/init.html b/build/templates/init.html index 624ae06..8b58476 100644 --- a/build/templates/init.html +++ b/build/templates/init.html @@ -3,22 +3,26 @@
+
- diff --git a/build/year-progress.py b/build/year-progress.py index 876619d..88b7b23 100644 --- a/build/year-progress.py +++ b/build/year-progress.py @@ -194,7 +194,7 @@ def getTemplate(timestamp,timezone): return now.year, nowTime, nowDate, round(yearPercent*100,2), footballMinute, workDay, workTime, marathonMile, abbeyRoadSong, hobbitChapter, lat, long, homoSapiens -def index(timestamp,timezone): +def index(timestamp,timezone,referrer): year, nowTime, nowDate, yearPercent, footballMinute, workDay, workTime, marathonMile, abbeyRoadSong, hobbitChapter, lat, long, homoSapiens = getTemplate(timestamp,timezone) cssPath = url_for("static", filename="style.css") return render_template("index.html",\ @@ -211,14 +211,16 @@ def index(timestamp,timezone): hobbitChapter=hobbitChapter,\ lat=lat,\ long=long,\ - homoSapiens=homoSapiens) + homoSapiens=homoSapiens,\ + referrer=referrer) @app.route("/", methods=["GET","POST"]) def init(): if request.method == "POST": timestamp = int(request.values.get('timestamp')) timezone = request.values.get('timezone') - return index(timestamp,timezone) + referrer = request.values.get('referrer') + return index(timestamp,timezone,referrer) else: return render_template("init.html")