mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
url UX(?) improvement
the no argument version of /hotspots should include the legend because it's expected to be used as a dashboard :)
This commit is contained in:
@@ -57,8 +57,8 @@ def resume():
|
|||||||
@app.route("/hotspots")
|
@app.route("/hotspots")
|
||||||
def hotspotsRIT():
|
def hotspotsRIT():
|
||||||
url = HotspotsURL
|
url = HotspotsURL
|
||||||
if flask.request.args.get("legend") == "true":
|
if flask.request.args.get("legend") == "false":
|
||||||
url += "?legend=true"
|
url += "?legend=false"
|
||||||
pagevars = {
|
pagevars = {
|
||||||
"template": "iframe.html",
|
"template": "iframe.html",
|
||||||
"title": f"Hotspots @ RIT",
|
"title": f"Hotspots @ RIT",
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"github", "https://github.com/asimonson1125/hotspotsrit", "git repo"
|
"github", "https://github.com/asimonson1125/hotspotsrit", "git repo"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"globe", "https://asimonson.com/hotspots?legend=true", "demo"
|
"globe", "https://asimonson.com/hotspots", "demo"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
<body onpopstate="backButton()">
|
<body onpopstate="backButton()">
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
<iframe src="/hotspots" title="HotspotsRIT" id="map"></iframe>
|
<iframe src="/hotspots?legend=false" title="HotspotsRIT" id="map"></iframe>
|
||||||
<div class="App">
|
<div class="App">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div id="name-container" onclick="goto('home', {toggle:false})">
|
<div id="name-container" onclick="goto('home', {toggle:false})">
|
||||||
|
|||||||
Reference in New Issue
Block a user