6 lines
149 B
JavaScript
6 lines
149 B
JavaScript
{08d4c328d65440dee9e51b40ae075352b3ae81c6 true 149 main.js 0xc001e7b960}
const checkbox = document.getElementById('checkbox');
|
|
|
|
checkbox.addEventListener('change', () => {
|
|
document.body.classList.toggle('dark');
|
|
});
|