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:
2024-04-15 08:31:49 -05:00
parent d022436a6e
commit 75d2e46578
3 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -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"
] ]
] ]
}, },

View File

@@ -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})">