Skip to content

Commit

Permalink
Removed cursor on app_icon hover
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan-yip committed Sep 4, 2024
1 parent e47a1fc commit ccb2a76
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"
/>
<!--icons-->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png" />
<link rel="manifest" href="./site.webmanifest" />
<!--Preload img-->
<link rel="prefetch" href="./public/IMG_4463.jpeg" />
<link rel="prefetch" href="./public/DSC00151.JPG" />
Expand Down
9 changes: 9 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,15 @@ for (let i = 0; i < app_icon_no_sound.length; i++) {
app_icon_no_sound[i].tabIndex = 0;
}

//no cursor on icons
for (let i = 0; i < app_icon.length; i++) {
app_icon[i].style.cursor = "none";
}

for (let i = 0; i < app_icon_scroll.length; i++) {
app_icon_scroll[i].style.cursor = "none";
}

// prevent right click
document.addEventListener("contextmenu", (event) => {
event.preventDefault();
Expand Down

0 comments on commit ccb2a76

Please sign in to comment.