Skip to content

Commit

Permalink
开始菜单收回(隐藏)
Browse files Browse the repository at this point in the history
点击开始菜单以外的东西,开始菜单收回(隐藏)
  • Loading branch information
kjmjh authored Nov 30, 2024
1 parent 54711a2 commit eeabc0e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ page.addEventListener('mouseup', enableIframes);
page.addEventListener('touchend', enableIframes);
page.addEventListener('touchcancel', enableIframes);

page.addEventListener('click',()=>{

if($('#start-menu').hasClass('show')){

hide_startmenu();
//开始菜单收回

// 上古代码
document.querySelectorAll('list.focs').forEach(li => {
li.addEventListener('click', () => {
Expand Down Expand Up @@ -4428,4 +4434,4 @@ function setupGlobalKey(){
}
});
}
setupGlobalKey();
setupGlobalKey();

0 comments on commit eeabc0e

Please sign in to comment.