0.8.377
This commit is contained in:
@@ -729,7 +729,7 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
|
||||
}
|
||||
if (close){
|
||||
// curtain = getOpenCurtain()
|
||||
|
||||
turnOffFirst(curtain)
|
||||
let handler_text = curtain.querySelector('.text_f_curtain')
|
||||
|
||||
handler_text.innerHTML = curtain_name
|
||||
@@ -747,56 +747,71 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
|
||||
}
|
||||
} else {
|
||||
|
||||
let user_type = getInfoAboutUser()
|
||||
if (user_type === 'mobile' || !window.location.host.includes('profile') || user_type === 'laptop' ) {
|
||||
curtain.classList.toggle("open")
|
||||
curtain.classList.toggle("close")
|
||||
newCurtainZIndex()
|
||||
let curtain_check = getOpenCurtain()
|
||||
if (curtain_check.length > 1){
|
||||
let curtain_old = getCurtainWIncreaceZindex(curtain_check,'decreace')['increace']
|
||||
curtain_old.classList.toggle("close")
|
||||
curtain_old.classList.toggle("open")
|
||||
if (curtain.classList.contains('first')){
|
||||
turnOffFirst(curtain)
|
||||
let overlay = document.querySelector('.block_overlay.show')
|
||||
if (!overlay){
|
||||
let overlay_clear = document.querySelector(".block_overlay")
|
||||
overlay_clear.classList.toggle('show')
|
||||
overlay_clear.classList.toggle('hidden')
|
||||
}
|
||||
if (curtain_check.length > 0){
|
||||
let overlay = document.querySelector('.block_overlay.show')
|
||||
if (!overlay){
|
||||
let overlay_clear = document.querySelector(".block_overlay")
|
||||
overlay_clear.classList.toggle('show')
|
||||
overlay_clear.classList.toggle('hidden')
|
||||
} else {
|
||||
let user_type = getInfoAboutUser()
|
||||
if (user_type === 'mobile' || !window.location.host.includes('profile') || user_type === 'laptop' ) {
|
||||
curtain.classList.toggle("open")
|
||||
curtain.classList.toggle("close")
|
||||
newCurtainZIndex()
|
||||
let curtain_check = getOpenCurtain()
|
||||
if (curtain_check.length > 1){
|
||||
let curtain_old = getCurtainWIncreaceZindex(curtain_check,'decreace')['increace']
|
||||
curtain_old.classList.toggle("close")
|
||||
curtain_old.classList.toggle("open")
|
||||
}
|
||||
if (curtain_check.length > 0){
|
||||
let overlay = document.querySelector('.block_overlay.show')
|
||||
if (!overlay){
|
||||
let overlay_clear = document.querySelector(".block_overlay")
|
||||
overlay_clear.classList.toggle('show')
|
||||
overlay_clear.classList.toggle('hidden')
|
||||
}
|
||||
} else {
|
||||
|
||||
closeOverlay()
|
||||
|
||||
}
|
||||
} else {
|
||||
|
||||
closeOverlay()
|
||||
|
||||
if (!window.location.href.includes('profile')){
|
||||
//
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!window.location.href.includes('profile')){
|
||||
//
|
||||
|
||||
|
||||
let handler_text = curtain.querySelector('.text_f_curtain')
|
||||
if (curtain.classList.contains('open')){
|
||||
handler_text.innerHTML = 'Закрыть'
|
||||
handler_text.style.fontSize = '13px'
|
||||
} else {
|
||||
handler_text.innerHTML = curtain_name
|
||||
handler_text.style.fontSize = '13px'
|
||||
}
|
||||
|
||||
if (!curtain.classList.contains('open')){
|
||||
body.style.overflowY = ''
|
||||
} else {
|
||||
body.style.overflowY = 'hidden'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let handler_text = curtain.querySelector('.text_f_curtain')
|
||||
if (curtain.classList.contains('open')){
|
||||
handler_text.innerHTML = 'Закрыть'
|
||||
handler_text.style.fontSize = '13px'
|
||||
} else {
|
||||
handler_text.innerHTML = curtain_name
|
||||
handler_text.style.fontSize = '13px'
|
||||
}
|
||||
|
||||
if (!curtain.classList.contains('open')){
|
||||
body.style.overflowY = ''
|
||||
} else {
|
||||
body.style.overflowY = 'hidden'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function turnOffFirst (el) {
|
||||
if (el.classList.contains('first')){
|
||||
el.classList.remove('first')
|
||||
}
|
||||
}
|
||||
|
||||
function closeOverlay () {
|
||||
let curt = getOpenCurtain()
|
||||
if (curt.length > 1){
|
||||
|
||||
Reference in New Issue
Block a user