4 lines
114 B
JavaScript
4 lines
114 B
JavaScript
const bdy = document.querySelector('body');
|
|
addEventListener('click', e => {
|
|
bdy.classList.toggle('invert');
|
|
}); |