diff options
author | bogdankol <68349689+bogdankol@users.noreply.github.com> | 2024-04-25 17:51:52 +0300 |
---|---|---|
committer | bogdankol <68349689+bogdankol@users.noreply.github.com> | 2024-04-25 17:51:52 +0300 |
commit | 886f254d0550427d301a163c159363a2ee2e1f44 (patch) | |
tree | 1a3e8060e778318d97a723a0ceef1628b36dfb1c /site/js | |
parent | e2e5f3a9ae0286a9322c4942028193133364af1a (diff) | |
download | community.vyos.net-886f254d0550427d301a163c159363a2ee2e1f44.tar.gz community.vyos.net-886f254d0550427d301a163c159363a2ee2e1f44.zip |
added staging fix
Diffstat (limited to 'site/js')
-rw-r--r-- | site/js/staging-detection.js | 8 |
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') +}) |