www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit cfa2bc712d99876f38ce107ae82ec08c8db7dd61
parent 19bfc9cd12d4bddf62be74c7ebab327eebf2bceb
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Sat, 12 Oct 2024 13:47:59 -0700

Add footer to demo editor with link to upcoming features

See last commit for details on why I think this may be a good idea.

Diffstat:
Mfiles/floorplans/floorplan/main.css | 17+++++++++++++++++
Mfiles/floorplans/floorplan/main.js | 10+++++++++-
2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/files/floorplans/floorplan/main.css b/files/floorplans/floorplan/main.css @@ -138,3 +138,20 @@ input.invalid { top: 2em; left: 2em; } + +#demo_footer { + position: fixed; + bottom: 0; + left: 0; + background-color: rgba(0, 0, 0, .8); + color: white; + padding: .5em; + font-size: smaller; + width: 100vw; + text-align: center; + +} + +#demo_footer > a { + color: orange; +} diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js @@ -65,7 +65,15 @@ function init() { } let floorplan - if (floorplan_id !== "flp_demo") { + if (floorplan_id === "flp_demo") { + let f = document.body.appendChild(document.createElement("footer")) + f.id = "demo_footer" + f.append(document.createTextNode("Missing something? Click ")) + let a = f.appendChild(document.createElement("a")) + a.append(document.createTextNode("here")) + a.href = "/features/upcoming.html" + f.append(document.createTextNode(" to see upcoming features or put in a request")) + } else { etc.authorize() floorplan = { user: localStorage.getItem("username"), id: floorplan_id } }