Skip to content

Commit

Permalink
Update light-mode.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lunekiska authored Feb 17, 2024
1 parent 1ebce66 commit 3d65fa1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/light-mode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const button = document.querySelector('input');

button.addEventListener('switchTheme', () => {
document.body.classList.toggle('light');
})
const checkbox =
document.getElementById('checkbox');
checkbox.addEventListener('change', () => {
document.body.classList.toggle('light');
});

0 comments on commit 3d65fa1

Please sign in to comment.