mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
handle hotspots legend parameter
This commit is contained in:
@@ -56,13 +56,16 @@ def resume():
|
||||
|
||||
@app.route("/hotspots")
|
||||
def hotspotsRIT():
|
||||
url = HotspotsURL
|
||||
if flask.request.args.get("legend") == "true":
|
||||
url += "?legend=true"
|
||||
pagevars = {
|
||||
"template": "iframe.html",
|
||||
"title": f"Hotspots @ RIT",
|
||||
"description": "Hotspots @ RIT by Andrew Simonson",
|
||||
"canonical": "/hotspots",
|
||||
}
|
||||
return flask.render_template("iframe.html", url=HotspotsURL, var=pagevars)
|
||||
return flask.render_template("iframe.html", url=url, var=pagevars)
|
||||
|
||||
@app.route("/hotspots/<path>")
|
||||
def hotspotsProxy(path):
|
||||
|
||||
Reference in New Issue
Block a user