aboutsummaryrefslogtreecommitdiff
path: root/srs-anywhere.js
diff options
context:
space:
mode:
Diffstat (limited to 'srs-anywhere.js')
-rw-r--r--srs-anywhere.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/srs-anywhere.js b/srs-anywhere.js
index 1348a37..4efed9b 100644
--- a/srs-anywhere.js
+++ b/srs-anywhere.js
@@ -488,9 +488,13 @@ window.addEventListener('keydown', (event) => {
***********************************************************************/
function enableClassificationBanner() {
- console.log('here');
+ const text = SRS_ANYWHERE_CONFIG.bannerText || "UNCLASSIFIED";
+ const color = SRS_ANYWHERE_CONFIG.bannerColor || "#008000";
+
const banners = document.querySelectorAll('div.banner');
banners.forEach(banner => {
+ banner.textContent = text;
+ banner.style.backgroundColor = color;
banner.removeAttribute('hidden');
});

© 2015 - 2026 Jakob L. Kreuze