aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--srs-anywhere-config.js2
-rw-r--r--srs-anywhere.js6
2 files changed, 7 insertions, 1 deletions
diff --git a/srs-anywhere-config.js b/srs-anywhere-config.js
index 77c5332..f74e674 100644
--- a/srs-anywhere-config.js
+++ b/srs-anywhere-config.js
@@ -17,5 +17,7 @@
const SRS_ANYWHERE_CONFIG = {
banner: false,
+ bannerText: "UNCLASSIFIED",
+ bannerColor: "#008000",
network: false
};
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