commit melhorias sgf

This commit is contained in:
2026-11-11 09:00:17 +02:00
parent 0b05a1192c
commit 1d11a5e57b
736 changed files with 40746 additions and 210 deletions
+3
View File
@@ -0,0 +1,3 @@
const menus=[...document.querySelectorAll('.module-choice')];
for(const menu of menus){menu.addEventListener('toggle',()=>{if(menu.open)for(const other of menus)if(other!==menu)other.open=false;});menu.addEventListener('keydown',event=>{if(event.key==='Escape'){menu.open=false;menu.querySelector('summary').focus();}});}
document.addEventListener('pointerdown',event=>{if(!event.target.closest('.module-choices'))for(const menu of menus)menu.open=false;});