mobile === false
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user