View on GitHub

HTML-a-CSS-1

Javascript

const mujButton = document.querySelector('#muj-button')

const prepniSvetlo = () => {
	document.querySelector('body').classList.toggle('rozsviceno')
}

mujButton.addEventListener('click', prepniSvetlo)