6 lines
149 B
JavaScript
6 lines
149 B
JavaScript
|
const checkbox = document.getElementById('checkbox');
|
||
|
|
||
|
checkbox.addEventListener('change', () => {
|
||
|
document.body.classList.toggle('dark');
|
||
|
});
|