From 886f254d0550427d301a163c159363a2ee2e1f44 Mon Sep 17 00:00:00 2001 From: bogdankol <68349689+bogdankol@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:51:52 +0300 Subject: added staging fix --- site/js/staging-detection.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 site/js/staging-detection.js (limited to 'site/js/staging-detection.js') 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') +}) -- cgit v1.2.3