summaryrefslogtreecommitdiff
path: root/site/js/staging-detection.js
diff options
context:
space:
mode:
authorbogdankol <68349689+bogdankol@users.noreply.github.com>2024-04-25 17:51:52 +0300
committerbogdankol <68349689+bogdankol@users.noreply.github.com>2024-04-25 17:51:52 +0300
commit886f254d0550427d301a163c159363a2ee2e1f44 (patch)
tree1a3e8060e778318d97a723a0ceef1628b36dfb1c /site/js/staging-detection.js
parente2e5f3a9ae0286a9322c4942028193133364af1a (diff)
downloadcommunity.vyos.net-886f254d0550427d301a163c159363a2ee2e1f44.tar.gz
community.vyos.net-886f254d0550427d301a163c159363a2ee2e1f44.zip
added staging fix
Diffstat (limited to 'site/js/staging-detection.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')
+})