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; position: fixed;
background-color: rgba(0,0,0,0.89); background-color: rgba(0,0,0,0.89);
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 10px;
padding-bottom: 5px; padding-bottom: 5px;
left: 0; left: 0;
top: 40px; top: 40px;
border-radius: 0 0 5px 5px; /*border-radius: 0 0 5px 5px;*/
color: #539CDD; color: #539CDD;
line-height: 30px;
display: none; display: none;
height: calc(100% - 40px);;
overflow: auto;
} }
#hmenu #menu a { #hmenu #menu a {
color: #539CDD; color: #539CDD;
text-decoration: none; text-decoration: underline;
} }
#hmenu ul { #hmenu ul {
margin-left: 0; margin-left: 0;

View file

@ -1,16 +1,18 @@
function chulsh(el,sh) { function chulsh(el,sh) {
console.log('aa'); if (document.getElementById('menu').style.display!='block') {
if (sh) if (sh)
el.querySelector('ul').style='display:block'; el.querySelector('ul').style='display:block';
else else
el.querySelector('ul').style='display:none'; el.querySelector('ul').style='display:none';
}
} }
function ulsh(el,sh) { function ulsh(el,sh) {
console.log('bb'); if (document.getElementById('menu').style.display!='block') {
if (sh) if (sh)
el.style='display:block'; el.style='display:block';
else else
el.style='display:none'; el.style='display:none';
}
} }
function swmenu() { function swmenu() {
let mico=document.getElementById('menuicon'); let mico=document.getElementById('menuicon');