summaryrefslogtreecommitdiff
path: root/site/js
diff options
context:
space:
mode:
Diffstat (limited to 'site/js')
-rw-r--r--site/js/staging-detection.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/site/js/staging-detection.js b/site/js/staging-detection.js
new file mode 100644
index 0000000..06a7168
--- /dev/null
+++ b/site/js/staging-detection.js
@@ -0,0 +1,8 @@
+document.addEventListener('DOMContentLoaded', function () {
+ const staging = document.querySelector('.staging')
+ const sectionBanner = document.querySelector('.banner')
+
+ if (!staging) return
+
+ sectionBanner.classList.add('staging-fix')
+})