mobile === false

This commit is contained in:
SBD
2023-12-29 19:45:43 +05:00
parent f80e2844bf
commit b31241872f
2 changed files with 26 additions and 11 deletions

View File

@@ -9,7 +9,8 @@
window.onload = function (){
changeTopStrMobile()
middleWareJS()
openOrCloseCurtainSupportChat()
openOverlayOrClose()
}
//
@@ -66,6 +67,17 @@ function openOrCloseCurtainSupportChat (){
}
}
function openOverlayOrClose () {
if (window.location.href.includes("profile")){
let overlay = document.querySelector('.block_overlay')
if (screen.width < 700){
if (!overlay.classList.contains("show")){
overlay.classList.add("show")
}
}
}
}
function getTypeOfData (data) {
let type = typeof data
return type
@@ -76,9 +88,9 @@ function getInfoAboutUser (){
let user_type = ''
if (screen.width <= 700){
user_type = 'mobile'
} else if (screen.width > 1024) {
} else if (screen.width > 1180) {
user_type = 'desctop'
} else if (screen.width > 700 && screen.width < 1024) {
} else if (screen.width > 700 && screen.width <= 1180) {
user_type = 'laptop'
}
return user_type