This commit is contained in:
SBD
2023-11-25 13:14:55 +03:00
parent 3e88458fce
commit 9f7550eaae
4 changed files with 12 additions and 4 deletions

View File

@@ -601,7 +601,7 @@
float: unset;
}
.dectop_var_f_btns_temp{
.desctop_var_f_btns_temp{
display: none;
}

View File

@@ -61,7 +61,7 @@ function getInfoAboutUser (){
if (screen.width <= 700){
user_type = 'mobile'
} else if (screen.width > 1024) {
user_type = 'dectop'
user_type = 'desctop'
} else if (screen.width > 700 && screen.width < 1024) {
user_type = 'laptop'
}

View File

@@ -677,6 +677,7 @@ function open_curtain_w_btn_profile () {
last_open_curtain = curtain
set_curtain_z_index(curtain)
close_first_curt(curtain)
delete_margin_in_mobile()
}
function open_curtain_w_contacts () {
@@ -693,6 +694,7 @@ function open_curtain_w_contacts () {
set_curtain_z_index(curtain)
last_open_curtain = curtain
close_first_curt(curtain)
delete_margin_in_mobile()
}
function open_overlay (curtain) {
@@ -722,6 +724,12 @@ function open_overlay (curtain) {
}
function delete_margin_in_mobile () {
if (getInfoAboutUser() !== 'desctop'){
let left_curtain = document.querySelector(".curtain.left")
left_curtain.classList.remove('margin')
}
}
function toggle_cut_width_curtain (el) {
let parent = el.parentNode
@@ -796,7 +804,7 @@ function close_open_curtain () {
function reAdressClickOnbackrground (event,el) {
// let overlay = document.querySelector(".block_overlay")
if (!window.location.href.includes("profile") || getInfoAboutUser() === 'dectop'){
if (!window.location.href.includes("profile") || getInfoAboutUser() === 'desctop'){
let element_click = document.elementFromPoint(event.pageX, event.pageY)
if (!element_click || element_click === el){
element_click = document.querySelector(".block_overlay")

View File

@@ -11,7 +11,7 @@
{# <div class="clear_both"></div>#}
{# </div>#}
{# </div>#}
{# <div class="dectop_var_f_btns_temp">#}
{# <div class="desctop_var_f_btns_temp">#}
{# {% include "blocks/profile/b_buttons_menu_profile.html" %}#}
{# </div>#}
{##}