Initial commit
This commit is contained in:
8
assets/js/app.js
Normal file
8
assets/js/app.js
Normal file
@ -0,0 +1,8 @@
|
||||
document.getElementById('mode').addEventListener('click', () => {
|
||||
document.body.classList.toggle('dark');
|
||||
localStorage.setItem('theme', document.body.classList.contains('dark') ? 'dark' : 'light');
|
||||
});
|
||||
|
||||
if (localStorage.getItem('theme') === 'dark') {
|
||||
document.body.classList.add('dark');
|
||||
}
|
0
assets/js/vendor/.gitkeep
vendored
Normal file
0
assets/js/vendor/.gitkeep
vendored
Normal file
Reference in New Issue
Block a user