This commit is contained in:
SBD
2023-11-21 22:43:42 +03:00
parent 64d6860e58
commit 6f7551abbf
2 changed files with 11 additions and 4 deletions

View File

@@ -750,7 +750,7 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
container_curtain.classList.remove("open")
container_curtain.classList.add("close")
}
} else {
} else if (curtain) {
if (curtain.classList.contains('first')){
turnOffFirst(curtain)
@@ -815,7 +815,14 @@ function curtainMove (curtain,container_curtain,curtain_name,body){
// handler_text.innerHTML = 'Закрыть'
// handler_text.style.fontSize = '13px'
// } else {
handler_text.innerHTML = curtain_name
let name = ''
if (curtain_name){
name = curtain_name
} else {
name = curtain.dataset['name']
}
handler_text.innerHTML = name
handler_text.style.fontSize = '13px'
// }

View File

@@ -58,11 +58,11 @@
{% include 'blocks/b_header.html' %}
<div class="cut_width_f_curtain close{% if page_type == 'profile' %}{% else %} n_profile{% endif %}" onclick="open_curtain()">
<div class="cut_width_f_curtain close{% if page_type == 'profile' %}{% else %} n_profile{% endif %}" onclick="open_curtain(null,'right')">
<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" %}'>">
{% include "blocks/profile/b_buttons_menu_profile.html" %}
<div class="handler_menu close" onclick="open_curtain(null,'right')">
<div class="handler_menu close">
<img class="btns_f_curtain close left" src="{% static 'img/svg/arrow_f_curtain.svg' %}">
<div class="text_f_curtain left"><img style='width: 25px;display: block;position: relative;bottom: 2px;transform: rotate(270deg);' src='{% static "/img/svg/burger.svg" %}'></div>
<img class="btns_f_curtain close right" src="{% static 'img/svg/arrow_f_curtain.svg' %}">