diff --git a/web/site/css/menu.css b/web/site/css/menu.css index f79ce0a..ae3f600 100644 --- a/web/site/css/menu.css +++ b/web/site/css/menu.css @@ -123,17 +123,20 @@ position: fixed; background-color: rgba(0,0,0,0.89); padding-left: 5px; - padding-right: 5px; + padding-right: 10px; padding-bottom: 5px; left: 0; top: 40px; - border-radius: 0 0 5px 5px; + /*border-radius: 0 0 5px 5px;*/ color: #539CDD; + line-height: 30px; display: none; + height: calc(100% - 40px);; + overflow: auto; } #hmenu #menu a { color: #539CDD; - text-decoration: none; + text-decoration: underline; } #hmenu ul { margin-left: 0; diff --git a/web/site/js/menu.js b/web/site/js/menu.js index 1e7cca9..2bbb3fa 100644 --- a/web/site/js/menu.js +++ b/web/site/js/menu.js @@ -1,16 +1,18 @@ function chulsh(el,sh) { - console.log('aa'); - if (sh) - el.querySelector('ul').style='display:block'; - else - el.querySelector('ul').style='display:none'; + if (document.getElementById('menu').style.display!='block') { + if (sh) + el.querySelector('ul').style='display:block'; + else + el.querySelector('ul').style='display:none'; + } } function ulsh(el,sh) { - console.log('bb'); - if (sh) - el.style='display:block'; - else - el.style='display:none'; + if (document.getElementById('menu').style.display!='block') { + if (sh) + el.style='display:block'; + else + el.style='display:none'; + } } function swmenu() { let mico=document.getElementById('menuicon');