0.8.392
This commit is contained in:
@@ -601,7 +601,7 @@
|
|||||||
float: unset;
|
float: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dectop_var_f_btns_temp{
|
.desctop_var_f_btns_temp{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ function getInfoAboutUser (){
|
|||||||
if (screen.width <= 700){
|
if (screen.width <= 700){
|
||||||
user_type = 'mobile'
|
user_type = 'mobile'
|
||||||
} else if (screen.width > 1024) {
|
} else if (screen.width > 1024) {
|
||||||
user_type = 'dectop'
|
user_type = 'desctop'
|
||||||
} else if (screen.width > 700 && screen.width < 1024) {
|
} else if (screen.width > 700 && screen.width < 1024) {
|
||||||
user_type = 'laptop'
|
user_type = 'laptop'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -677,6 +677,7 @@ function open_curtain_w_btn_profile () {
|
|||||||
last_open_curtain = curtain
|
last_open_curtain = curtain
|
||||||
set_curtain_z_index(curtain)
|
set_curtain_z_index(curtain)
|
||||||
close_first_curt(curtain)
|
close_first_curt(curtain)
|
||||||
|
delete_margin_in_mobile()
|
||||||
}
|
}
|
||||||
|
|
||||||
function open_curtain_w_contacts () {
|
function open_curtain_w_contacts () {
|
||||||
@@ -693,6 +694,7 @@ function open_curtain_w_contacts () {
|
|||||||
set_curtain_z_index(curtain)
|
set_curtain_z_index(curtain)
|
||||||
last_open_curtain = curtain
|
last_open_curtain = curtain
|
||||||
close_first_curt(curtain)
|
close_first_curt(curtain)
|
||||||
|
delete_margin_in_mobile()
|
||||||
}
|
}
|
||||||
|
|
||||||
function open_overlay (curtain) {
|
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) {
|
function toggle_cut_width_curtain (el) {
|
||||||
let parent = el.parentNode
|
let parent = el.parentNode
|
||||||
@@ -796,7 +804,7 @@ function close_open_curtain () {
|
|||||||
|
|
||||||
function reAdressClickOnbackrground (event,el) {
|
function reAdressClickOnbackrground (event,el) {
|
||||||
// let overlay = document.querySelector(".block_overlay")
|
// 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)
|
let element_click = document.elementFromPoint(event.pageX, event.pageY)
|
||||||
if (!element_click || element_click === el){
|
if (!element_click || element_click === el){
|
||||||
element_click = document.querySelector(".block_overlay")
|
element_click = document.querySelector(".block_overlay")
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
{# <div class="clear_both"></div>#}
|
{# <div class="clear_both"></div>#}
|
||||||
{# </div>#}
|
{# </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" %}#}
|
{# {% include "blocks/profile/b_buttons_menu_profile.html" %}#}
|
||||||
{# </div>#}
|
{# </div>#}
|
||||||
{##}
|
{##}
|
||||||
|
|||||||
Reference in New Issue
Block a user