diff --git a/static/css/mobile_styles.css b/static/css/mobile_styles.css index d82f1ec..d1ca691 100644 --- a/static/css/mobile_styles.css +++ b/static/css/mobile_styles.css @@ -434,11 +434,11 @@ .btns_f_curtain.right{ float: right; } - .btns_f_curtain.open{ + .menu_buttons.close .btns_f_curtain{ transform: rotate(90deg); } - .btns_f_curtain.close{ - transform: rotate(270deg); + .menu_buttons.open .btns_f_curtain{ + transform: rotate(92700deg); } .text_f_curtain{ diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 7bc7831..97c1ab0 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -632,4 +632,16 @@ function show_header_list () { if (el) { el.classList.toggle("show") } +} + +function open_curtain (left,right){ + let curtain = '' + if (left){ + curtain = document.querySelector(".menu_buttons") + + } else if (right) { + curtain = '' + } + curtain.classList.toggle("close") + curtain.classList.toggle("open") } \ No newline at end of file diff --git a/templates/blocks/b_user_profile.html b/templates/blocks/b_user_profile.html index cc9b049..dbaee27 100644 --- a/templates/blocks/b_user_profile.html +++ b/templates/blocks/b_user_profile.html @@ -4,7 +4,7 @@