Skip to content

Commit

Permalink
亮色
Browse files Browse the repository at this point in the history
  • Loading branch information
xygodcyx committed May 27, 2024
1 parent 10fe60d commit 814d2c7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
Binary file added imgs/MicaApps/DiskInfo/AppIcon/DiskInfo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/MicaGames/Ballance/AppIcon/Ballance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/MicaGames/Inkball/AppIcon/InkBall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/Ventoy/Ventoy/AppIcon/Ventoy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 15 additions & 7 deletions web/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,15 @@ const doms = {
let inputHasFocus = false;

const search = () => {};
// Notification.requestPermission().then(function (permission) {
// if (permission === 'granted') {
// new Notification('页面有变化,请更新');
// }
// });

doms.close.addEventListener('click', (e) => {
hideShowInfo();
});

doms.close.addEventListener('click', (e) => {
hideShowInfo();
Expand All @@ -337,7 +346,6 @@ doms.close.addEventListener('click', (e) => {
doms.inputIcon.addEventListener('click', (e) => {
search();
});

doms.small.addEventListener('click', (e) => {
showLeftNav();
doms.searchInput.focus();
Expand All @@ -364,28 +372,28 @@ const setCurStatus = (who) => {
who.classList.add('cur');
};
doms.mainHome.addEventListener('click', (e) => {
createHomePage();
setCurStatus(e.target);
createHomePage();
});
doms.folders.addEventListener('click', (e) => {
createFoldersPage();
setCurStatus(e.target);
createFoldersPage();
});
doms.file.addEventListener('click', (e) => {
createFilePage();
setCurStatus(e.target);
createFilePage();
});
doms.app.addEventListener('click', (e) => {
createAppPage();
setCurStatus(e.target);
createAppPage();
});
doms.company.addEventListener('click', (e) => {
createCompanyPage();
setCurStatus(e.target);
createCompanyPage();
});
doms.software.addEventListener('click', (e) => {
createSoftwarePage();
setCurStatus(e.target);
createSoftwarePage();
});
doms.searchInput.addEventListener('focusin', (e) => {
inputHasFocus = true;
Expand Down

0 comments on commit 814d2c7

Please sign in to comment.