make menu adaptive to skeptch mode

This commit is contained in:
Stewart Allen 2024-07-24 16:57:42 -04:00
commit fe6fbefa7e
4 changed files with 43 additions and 5 deletions

View file

@ -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) => {