This commit is contained in:
SBD
2023-11-18 17:58:11 +03:00
parent ba8bde1153
commit 11c35c9abd
4 changed files with 35 additions and 23 deletions

View File

@@ -540,8 +540,12 @@
position: absolute;
width: 320px;
}
.cut_width_f_curtain.left{
top: 44px;
}
.menu_buttons.left.open.filters{
max-height: 91vh;
top: 0;
}
.block_w_paging.routes {
width: 100%;

View File

@@ -53,11 +53,3 @@ function open_chat (user_id){
window.location.replace(href)
}
function scroll_ev (event,el){
let curtain = document.querySelector(".menu_buttons.filters")
if (el.scrollY === 300 || el.scrollY > 300){
curtain.style.top = "0"
} else if (el.scrollY < 300) {
curtain.style.top = "293px"
}
}

View File

@@ -24,6 +24,24 @@ function middleWareJS(){
}
function getTypeOfData (data) {
let type = typeof data
return type
}
function getInfoAboutUser (){
let user_type = ''
if (screen.width <= 700){
user_type = 'mobile'
} else if (screen.width > 1024) {
user_type = 'dectop'
} else if (screen.width > 700 && screen.width < 1024) {
user_type = 'laptop'
}
return user_type
}
document.addEventListener('DOMContentLoaded', function() {
let img = document.getElementById('dropbtn_lang')
if (window.location.href.indexOf("ru") > -1){
@@ -55,3 +73,14 @@ window.addEventListener('scroll', () => {
function scroll_ev (event,el){
let curtain = document.querySelector(".menu_buttons.filters")
let user_type = getInfoAboutUser()
if (user_type !== 'mobile'){
if (el.scrollY === 300 || el.scrollY > 300){
curtain.style.top = "0"
} else if (el.scrollY < 300) {
curtain.style.top = "293px"
}
}
}

View File

@@ -73,17 +73,7 @@ function select_tab_profile (el,url,owner_type=null) {
});
}
function getInfoAboutUser (){
let user_type = ''
if (screen.width <= 700){
user_type = 'mobile'
} else if (screen.width > 1024) {
user_type = 'dectop'
} else if (screen.width > 700 && screen.width < 1024) {
user_type = 'laptop'
}
return user_type
}
function createTicketShow () {
$.ajax({
@@ -867,10 +857,7 @@ function getOpenCurtain () {
return curtains
}
function getTypeOfData (data) {
let type = typeof data
return type
}
function getCurtainWIncreaceZindex (curtains,decreace) {
let first = getInfoCurtain(curtains[0],'zIndex')