0.8.390
This commit is contained in:
@@ -65,6 +65,7 @@ function select_tab_profile (el,url,owner_type=null) {
|
|||||||
let user_type = getInfoAboutUser()
|
let user_type = getInfoAboutUser()
|
||||||
if (user_type === 'mobile') {
|
if (user_type === 'mobile') {
|
||||||
open_curtain_w_btn_profile()
|
open_curtain_w_btn_profile()
|
||||||
|
setStandartSettingsToBlockOverlay()
|
||||||
} else {
|
} else {
|
||||||
if (!window.location.href.includes('profile')){
|
if (!window.location.href.includes('profile')){
|
||||||
open_curtain_w_btn_profile()
|
open_curtain_w_btn_profile()
|
||||||
@@ -788,11 +789,19 @@ function close_open_curtain (){
|
|||||||
|
|
||||||
function reAdressClickOnbackrground (event,el) {
|
function reAdressClickOnbackrground (event,el) {
|
||||||
// let overlay = document.querySelector(".block_overlay")
|
// let overlay = document.querySelector(".block_overlay")
|
||||||
let element_click = document.elementFromPoint(event.pageX, event.pageY)
|
if (!window.location.href.includes("profile") || getInfoAboutUser() === 'dectop'){
|
||||||
if (!element_click || element_click === el){
|
let element_click = document.elementFromPoint(event.pageX, event.pageY)
|
||||||
element_click = document.querySelector(".block_overlay")
|
if (!element_click || element_click === el){
|
||||||
|
element_click = document.querySelector(".block_overlay")
|
||||||
|
}
|
||||||
|
element_click.click()
|
||||||
}
|
}
|
||||||
element_click.click()
|
}
|
||||||
|
|
||||||
|
function setStandartSettingsToBlockOverlay () {
|
||||||
|
let block_overlay = document.querySelector(".block_overlay")
|
||||||
|
block_overlay.classList.remove("show")
|
||||||
|
block_overlay.classList.add("hidden")
|
||||||
}
|
}
|
||||||
|
|
||||||
// function show_header_list () {
|
// function show_header_list () {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<div class="block_overlay {% if page_type == 'profile' %}show{% elif page_type == 'routes' %} routes n_profile hidden{% else %}hidden n_profile{% endif %}" onclick="close_open_curtain()"></div>
|
<div class="block_overlay {% if page_type == 'profile' %}show{% elif page_type == 'routes' %} routes n_profile hidden{% else %}hidden n_profile{% endif %}" onclick="close_open_curtain()"></div>
|
||||||
<div class="wrapper_main">
|
<div class="wrapper_main">
|
||||||
|
|
||||||
{% include 'blocks/b_header.html' %}s
|
{% include 'blocks/b_header.html' %}
|
||||||
|
|
||||||
<div class="cut_width_f_curtain close{% if page_type == 'profile' %}{% else %} n_profile{% endif %} right" onclick="reAdressClickOnbackrground(event,this)">
|
<div class="cut_width_f_curtain close{% if page_type == 'profile' %}{% else %} n_profile{% endif %} right" onclick="reAdressClickOnbackrground(event,this)">
|
||||||
<div class="menu_buttons curtain right {% if page_type == 'profile' %}open{% else %} n_profile close{% endif %}" data-name="<img style='width: 25px;display: block;position: relative;bottom: 2px;transform: rotate(270deg);' src='{% static "/img/svg/burger.svg" %}'>">
|
<div class="menu_buttons curtain right {% if page_type == 'profile' %}open{% else %} n_profile close{% endif %}" data-name="<img style='width: 25px;display: block;position: relative;bottom: 2px;transform: rotate(270deg);' src='{% static "/img/svg/burger.svg" %}'>">
|
||||||
|
|||||||
Reference in New Issue
Block a user