MastodonHelp/web/site/js/menu.js

28 lines
699 B
JavaScript
Raw Permalink Normal View History

2020-10-26 16:05:59 +01:00
function chulsh(el,sh) {
if (document.getElementById('menu').style.display!='block') {
if (sh)
el.querySelector('ul').style='display:block';
else
el.querySelector('ul').style='display:none';
}
2020-10-26 16:05:59 +01:00
}
function ulsh(el,sh) {
if (document.getElementById('menu').style.display!='block') {
if (sh)
el.style='display:block';
else
el.style='display:none';
}
2020-10-26 16:05:59 +01:00
}
function swmenu() {
let mico=document.getElementById('menuicon');
let menu=document.getElementById('menu');
if (menu.style.display=='none' || menu.style.display=='') {
menu.style.display='block';
mico.src='/imgs/menuicon_active.svg';
} else {
menu.style.display='none';
mico.src='/imgs/menuicon_inactive.svg';
}
}