From 930c9bf049977e122e234517f3ab5668193ceb18 Mon Sep 17 00:00:00 2001 From: xenofem Date: Fri, 29 May 2020 17:14:57 -0400 Subject: [PATCH] don't start colors animation when we click back button --- content/hypno/colors/colors.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/hypno/colors/colors.js b/content/hypno/colors/colors.js index 8c15102..644bece 100644 --- a/content/hypno/colors/colors.js +++ b/content/hypno/colors/colors.js @@ -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;