From a47295beef5419dbf474caae35fee223b63e890f Mon Sep 17 00:00:00 2001 From: Pablo Carmona Date: Tue, 18 Apr 2017 17:30:09 +0200 Subject: [PATCH] Update index-FINISHED.html I found that if you don't call the parentNode the value of this point to the mole and the class was added to the hole. BTW, the remove class didn't worked. --- 30 - Whack A Mole/index-FINISHED.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/30 - Whack A Mole/index-FINISHED.html b/30 - Whack A Mole/index-FINISHED.html index 8d741d5..39bbc40 100644 --- a/30 - Whack A Mole/index-FINISHED.html +++ b/30 - Whack A Mole/index-FINISHED.html @@ -76,7 +76,7 @@ function bonk(e) { if(!e.isTrusted) return; // cheater! score++; - this.classList.remove('up'); + this.parentNode.classList.remove('up'); scoreBoard.textContent = score; } -- knotmirror 0.0.1