This commit is contained in:
SBD
2023-11-19 14:20:59 +03:00
parent ea567008c6
commit ccb8c6585c
7 changed files with 89 additions and 50 deletions

View File

@@ -53,3 +53,9 @@ function open_chat (user_id){
window.location.replace(href)
}
function changeWidthEL (el){
let parent = el.offsetParent
let loader_place = parent.querySelector('.abbreviation_airport_in_search')
loader_place.classList.toggle('hide')
el.classList.toggle('width-100')
}

View File

@@ -78,7 +78,7 @@ function scroll_ev (event,el){
let user_type = getInfoAboutUser()
let ch = el.scrollY
let top = 293 - ch + 20
if (user_type !== 'mobile' || user_type !== 'laptop'){
if (user_type !== 'mobile' && user_type !== 'laptop'){
if (el.scrollY === 300){
curtain.style.top = `${top}px`
} else if (el.scrollY < 300) {

View File

@@ -245,6 +245,7 @@ function loader_place_ins_boris (el,type=null){
}
}
}
changeWidthEL(el)
}
}