mirror of
https://github.com/ChenKaiLiuG/find_your_own_fxxking_problem.git
synced 2026-06-17 16:54:24 +00:00
Create script.js
This commit is contained in:
6
js/script.js
Normal file
6
js/script.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const toggleButton = document.getElementById('toggle-theme');
|
||||
const body = document.body;
|
||||
|
||||
toggleButton.addEventListener('click', () => {
|
||||
body.classList.toggle('dark-mode');
|
||||
});
|
||||
Reference in New Issue
Block a user