aboutsummaryrefslogtreecommitdiff
path: root/srs-anywhere.js
diff options
context:
space:
mode:
Diffstat (limited to 'srs-anywhere.js')
-rw-r--r--srs-anywhere.js25
1 files changed, 24 insertions, 1 deletions
diff --git a/srs-anywhere.js b/srs-anywhere.js
index 8f77f02..1348a37 100644
--- a/srs-anywhere.js
+++ b/srs-anywhere.js
@@ -1,4 +1,4 @@
-/* Copyright © 2025 Jakob L. Kreuze
+/* Copyright © 2025 - 2026 Jakob L. Kreuze
This file is part of SRS Anywhere.
@@ -482,3 +482,26 @@ window.addEventListener('keydown', (event) => {
endReview();
}
});
+
+/***********************************************************************
+ * Runtime configuration *
+ ***********************************************************************/
+
+function enableClassificationBanner() {
+ console.log('here');
+ const banners = document.querySelectorAll('div.banner');
+ banners.forEach(banner => {
+ banner.removeAttribute('hidden');
+ });
+
+ const buttonContainer = document.getElementById('button-container');
+ if (buttonContainer) {
+ buttonContainer.style.bottom = '1rem';
+ }
+}
+
+window.addEventListener('load', () => {
+ if (SRS_ANYWHERE_CONFIG.banner) {
+ enableClassificationBanner();
+ }
+});

© 2015 - 2026 Jakob L. Kreuze