This commit is contained in:
SBD
2023-11-27 18:17:20 +03:00
parent aa18a3c542
commit 57a419eeaa

View File

@@ -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) {