Sistemato un po' il menu per i dispositivi touch

This commit is contained in:
pezcurrel 2020-10-29 17:58:08 +01:00
parent 911e4398a0
commit 467bb82eba
2 changed files with 18 additions and 13 deletions

View file

@ -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;

View file

@ -1,16 +1,18 @@
function chulsh(el,sh) {
console.log('aa');
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 (document.getElementById('menu').style.display!='block') {
if (sh)
el.style='display:block';
else
el.style='display:none';
}
}
function swmenu() {
let mico=document.getElementById('menuicon');