From 57a419eeaa9477394f846636b6d8f2dbf0070188 Mon Sep 17 00:00:00 2001 From: SBD Date: Mon, 27 Nov 2023 18:17:20 +0300 Subject: [PATCH] 0.8.404 --- static/js/global_js.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/static/js/global_js.js b/static/js/global_js.js index 8489506..1ae30c1 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -38,16 +38,19 @@ window.onload = function (){ function middleWareJS(){ let footer = document.querySelector("footer") let body = document.querySelector("body") + let type = getTypeOfData() + if (type !== 'mobile'){ + if (document.querySelector(".menu_buttons.curtain.left") || window.location.href.includes('support') || window.location.href.includes('chat')){ + footer.style.display = "none" + body.style.overflow = "hidden" - if (document.querySelector(".menu_buttons.curtain.left") || window.location.href.includes('support') || window.location.href.includes('chat')){ - footer.style.display = "none" - body.style.overflow = "hidden" - - } else { - footer.style.display = "" - body.style.overflow = "" + } else { + footer.style.display = "" + body.style.overflow = "" + } } + } function getTypeOfData (data) {