Skip to content

Commit

Permalink
fixed the btn hover problem
Browse files Browse the repository at this point in the history
  • Loading branch information
PANAKAR committed Oct 7, 2023
1 parent 357a3d5 commit 5ee3f55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ function checkMode() {
darkModeOn();
btn.addEventListener('mouseover', () => {
btn.style.color = "white";
btn.style.background = "black";
})
btn.addEventListener('mouseout', () => {
btn.style.background = "white"
btn.style.color = "black";
})
} else {
Expand Down

0 comments on commit 5ee3f55

Please sign in to comment.