0.0.327
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
}
|
}
|
||||||
.text-align-left{
|
.text-align-left {
|
||||||
text-align: -webkit-left;
|
text-align: -webkit-left;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
@@ -37,10 +37,29 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.block_overlay.n_profile{
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
background: rgba(39, 53, 62, 0.7);
|
||||||
|
backdrop-filter: blur(15px);
|
||||||
|
z-index: 100;
|
||||||
|
position: fixed;
|
||||||
|
top: 86px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.block_overlay.n_profile.show{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.block_overlay.hidden{
|
.block_overlay.hidden{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.block_overlay.n_profile.hidden{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.w-68{
|
.w-68{
|
||||||
width: 68%;
|
width: 68%;
|
||||||
}
|
}
|
||||||
@@ -2213,10 +2232,11 @@
|
|||||||
.menu_buttons.right.open{
|
.menu_buttons.right.open{
|
||||||
right: 0;
|
right: 0;
|
||||||
transition: 200ms;
|
transition: 200ms;
|
||||||
position: unset;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
width: 320px;
|
width: 320px;
|
||||||
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu_buttons.left.open{
|
.menu_buttons.left.open{
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ html, body{
|
|||||||
.wrapper_content {
|
.wrapper_content {
|
||||||
margin: 55px auto;
|
margin: 55px auto;
|
||||||
max-width: 1280px;
|
max-width: 1280px;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*.wrapper_main{*/
|
/*.wrapper_main{*/
|
||||||
@@ -1119,7 +1119,7 @@ h2.title_new_route{
|
|||||||
.menu_profile {
|
.menu_profile {
|
||||||
width: 31%;
|
width: 31%;
|
||||||
/*margin-right: 40px;*/
|
/*margin-right: 40px;*/
|
||||||
float: left;
|
/*float: left;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu_profile>div {
|
.menu_profile>div {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
function init_arrival_DT (date,single=true,hour=true){
|
function init_arrival_DT (date=null,single=true,hour=true){
|
||||||
let minDate = null
|
let minDate = null
|
||||||
if (date){
|
if (date){
|
||||||
minDate = date
|
minDate = date
|
||||||
|
|||||||
@@ -699,7 +699,8 @@ function editRoute(id) {
|
|||||||
changeTextButton.innerText = 'Сохранить изменения'
|
changeTextButton.innerText = 'Сохранить изменения'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
init_departure_DT()
|
||||||
|
init_arrival_DT()
|
||||||
sliderInit();
|
sliderInit();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,10 @@ 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') {
|
||||||
closeCurtain()
|
closeCurtain()
|
||||||
|
} else {
|
||||||
|
if (!window.location.href.includes('profile')){
|
||||||
|
closeCurtain()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -659,6 +663,7 @@ function closeCurtain () {
|
|||||||
|
|
||||||
|
|
||||||
function open_curtain (left=null,right=null,overlay=null,close=null){
|
function open_curtain (left=null,right=null,overlay=null,close=null){
|
||||||
|
let page_profile = true
|
||||||
let curtain_name = ''
|
let curtain_name = ''
|
||||||
let curtain = ''
|
let curtain = ''
|
||||||
if (left || right){
|
if (left || right){
|
||||||
@@ -686,13 +691,16 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
|
|||||||
curtain.classList.add("close")
|
curtain.classList.add("close")
|
||||||
let overlay = document.querySelector(".block_overlay")
|
let overlay = document.querySelector(".block_overlay")
|
||||||
overlay.classList.add('hidden')
|
overlay.classList.add('hidden')
|
||||||
|
overlay.classList.remove('show')
|
||||||
} else {
|
} else {
|
||||||
if (overlay){
|
if (overlay){
|
||||||
overlay.classList.toggle("hidden")
|
overlay.classList.toggle("hidden")
|
||||||
|
overlay.classList.toggle("show")
|
||||||
} else {
|
} else {
|
||||||
let overlay = document.querySelector(".block_overlay")
|
let overlay = document.querySelector(".block_overlay")
|
||||||
if (overlay){
|
if (overlay){
|
||||||
overlay.classList.toggle("hidden")
|
overlay.classList.toggle("hidden")
|
||||||
|
overlay.classList.toggle("show")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,10 +53,12 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="block_overlay hidden" onclick="open_curtain()"></div>
|
|
||||||
<div class="wrapper_main">
|
<div class="wrapper_main">
|
||||||
|
|
||||||
{% include 'blocks/b_header.html' %}
|
{% include 'blocks/b_header.html' %}
|
||||||
<div class="wrapper_content">
|
<div class="wrapper_content">
|
||||||
|
<div class="block_overlay hidden {% if not page.type == 'profile' %}n_profile{% endif %}" onclick="open_curtain()"></div>
|
||||||
<div class="menu_buttons curtain left close" data-name="Меню">
|
<div class="menu_buttons curtain left close" data-name="Меню">
|
||||||
{# {% include "blocks/profile/b_buttons_menu_profile.html" %}#}
|
{# {% include "blocks/profile/b_buttons_menu_profile.html" %}#}
|
||||||
<div class="handler_menu close" onclick="open_curtain('left')">
|
<div class="handler_menu close" onclick="open_curtain('left')">
|
||||||
@@ -68,11 +70,11 @@
|
|||||||
</div>
|
</div>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div class="menu_buttons curtain right open" data-name="Пользователи">
|
<div class="menu_buttons curtain right open" data-name="Меню кнопок">
|
||||||
{% include "blocks/profile/b_buttons_menu_profile.html" %}
|
{% include "blocks/profile/b_buttons_menu_profile.html" %}
|
||||||
<div class="handler_menu close" onclick="open_curtain(null,'right')">
|
<div class="handler_menu close" onclick="open_curtain(null,'right')">
|
||||||
<img class="btns_f_curtain close left" src="{% static 'img/svg/arrow_f_curtain.svg' %}">
|
<img class="btns_f_curtain close left" src="{% static 'img/svg/arrow_f_curtain.svg' %}">
|
||||||
<div class="text_f_curtain left">Пользователи</div>
|
<div class="text_f_curtain left">Меню кнопок</div>
|
||||||
<img class="btns_f_curtain close right" src="{% static 'img/svg/arrow_f_curtain.svg' %}">
|
<img class="btns_f_curtain close right" src="{% static 'img/svg/arrow_f_curtain.svg' %}">
|
||||||
<div class="clear_both"></div>
|
<div class="clear_both"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user