diff --git a/static/css/mobile_styles.css b/static/css/mobile_styles.css index 2d279e9..42ca4fb 100644 --- a/static/css/mobile_styles.css +++ b/static/css/mobile_styles.css @@ -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%; diff --git a/static/js/find_route.js b/static/js/find_route.js index fa2adf8..08f9b22 100644 --- a/static/js/find_route.js +++ b/static/js/find_route.js @@ -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" - } -} \ No newline at end of file diff --git a/static/js/global_js.js b/static/js/global_js.js index bb76bdf..888f41c 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -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" + } + } +} \ No newline at end of file diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 2c7d141..c57b9ee 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -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')