From 03af6858b46d76b72d7644bce9a43aab6395d840 Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sun, 30 Nov 2025 15:13:53 +0000 Subject: [PATCH] Tiny footer in embedded mode --- README.md | 2 +- views/webpage_base.tpl | 8 +++++--- webassets/css/style.css | 25 ++++++++++++++++++++++--- 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7c9144d..9e377cf 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ This is a Progressive Web App, so you can also "install" it to your Android or i You can embed Spothole in another website, e.g. for use as part of a ham radio custom dashboard. -URL parameters can be used to trigger an "embedded" mode which hides the headers, footers and settings. In this mode, you provide configuration for the various filter and display options via additional URL parameters. In this mode, any settings that the user has set for Spothole are ignored. This is so that the embedding site can select, for example, their choice of dark mode or SIG filters, which will not impact how Spothole appears when the user accesses it directly. +URL parameters can be used to trigger an "embedded" mode which hides the headers, footers and settings. In this mode, you provide configuration for the various filter and display options via additional URL parameters. Any settings that the user has set for Spothole are ignored. This is so that the embedding site can select, for example, their choice of dark mode or SIG filters, which will not impact how Spothole appears when the user accesses it directly. Effectively, it becomes separate to their normal Spothole settings. These are supplied with the URL to the page you want to embed, for example for an embedded version of the band map in dark mode, use `https://spothole.com/bands?embedded=true&dark-mode=true`. For an embedded version of the main spots/home page in the system light/dark mode, use `https://spothole.com/?embedded=true`. Providing no URL params causes the page to be loaded in the normal way it would when accessed directly in the user's browser. diff --git a/views/webpage_base.tpl b/views/webpage_base.tpl index 6fb6383..a471c0b 100644 --- a/views/webpage_base.tpl +++ b/views/webpage_base.tpl @@ -49,12 +49,12 @@