0.0.347
This commit is contained in:
@@ -75,10 +75,12 @@ function select_tab_profile (el,url,owner_type=null) {
|
||||
|
||||
function getInfoAboutUser (){
|
||||
let user_type = ''
|
||||
if (screen.width < 1024){
|
||||
if (screen.width <= 700){
|
||||
user_type = 'mobile'
|
||||
} else {
|
||||
} else if (screen.width > 1024) {
|
||||
user_type = 'dectop'
|
||||
} else if (screen.width > 700 && screen.width < 1024) {
|
||||
user_type = 'laptop'
|
||||
}
|
||||
return user_type
|
||||
}
|
||||
@@ -720,12 +722,23 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
|
||||
handler_text.innerHTML = curtain_name
|
||||
curtain.classList.remove("open")
|
||||
curtain.classList.add("close")
|
||||
|
||||
let user_type = getInfoAboutUser()
|
||||
if (user_type === 'mobile') {
|
||||
curtain.classList.remove("open")
|
||||
curtain.classList.add("close")
|
||||
closeOverlay()
|
||||
} else {
|
||||
if (!window.location.href.includes('profile')){
|
||||
//
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
curtain.classList.toggle("close")
|
||||
let user_type = getInfoAboutUser()
|
||||
if (user_type === 'mobile') {
|
||||
curtain.classList.toggle("open")
|
||||
|
||||
curtain.classList.toggle("close")
|
||||
newCurtainZIndex()
|
||||
let curtain_check = getOpenCurtain()
|
||||
if (curtain_check.length > 1){
|
||||
@@ -745,6 +758,13 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
|
||||
closeOverlay()
|
||||
|
||||
}
|
||||
} else {
|
||||
if (!window.location.href.includes('profile')){
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let handler_text = curtain.querySelector('.text_f_curtain')
|
||||
if (curtain.classList.contains('open')){
|
||||
handler_text.innerHTML = 'Закрыть'
|
||||
|
||||
Reference in New Issue
Block a user