diff --git a/html/index.html b/html/index.html index ecda650..8d30317 100644 --- a/html/index.html +++ b/html/index.html @@ -277,9 +277,10 @@

Timer: 30 seconds

{ buttonEvent(this.getAttribute("id"),1); }); - cells[i].addEventListener("onmouseup",function() + cells[i].addEventListener("mouseup",function() { buttonEvent(this.getAttribute("id"),2); + document.getElementById(this.getAttribute("id")).style.backgroundColor="blue"; }); cells[i].addEventListener("mouseout",function() {