Created
February 15, 2017 10:00
-
-
Save ljanecek/80596b400fcf85d962216ea97fb935f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sviti = 0; | |
function rozsvit() { | |
var zarovka = document.getElementById('zarovka'); | |
if (sviti == 0) { | |
zarovka.src = "zarovka_sviti.jpg"; | |
sviti = 1; | |
} else { | |
zarovka.src = "zarovka_nesviti.jpg"; | |
sviti = 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment