make menu adaptive to skeptch mode
This commit is contained in:
parent
ef0f4c3efd
commit
fe6fbefa7e
4 changed files with 43 additions and 5 deletions
|
|
@ -129,6 +129,15 @@ gapp.overlay(root, {
|
|||
if (del) $(id).classList.remove(del);
|
||||
},
|
||||
|
||||
$C: (clazz, add, del) => {
|
||||
let el = [...document.getElementsByClassName(clazz)];
|
||||
for (let e of el) {
|
||||
if (add) e.classList.add(add);
|
||||
if (del) e.classList.remove(del);
|
||||
}
|
||||
return el;
|
||||
},
|
||||
|
||||
h,
|
||||
|
||||
estop: (evt) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue