don't start colors animation when we click back button
This commit is contained in:
parent
00acdb5901
commit
930c9bf049
|
@ -28,6 +28,10 @@ function changeWord() {
|
|||
wordEl.style.color = newColor;
|
||||
}
|
||||
|
||||
document.getElementById("controls").onclick = function (e) {
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
window.onclick = function () {
|
||||
if (!started) {
|
||||
started = true;
|
||||
|
|
Loading…
Reference in a new issue