don't start colors animation when we click back button

mistress
xenofem 2020-05-29 17:14:57 -04:00
parent 00acdb5901
commit 930c9bf049
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ function changeWord() {
wordEl.style.color = newColor; wordEl.style.color = newColor;
} }
document.getElementById("controls").onclick = function (e) {
e.stopPropagation();
}
window.onclick = function () { window.onclick = function () {
if (!started) { if (!started) {
started = true; started = true;