From 4b2c191c68e47281c78015265e3e8d3f427ecb0b Mon Sep 17 00:00:00 2001 From: muktar1907 Date: Wed, 24 Apr 2024 21:15:09 -0500 Subject: [PATCH] edit --- html/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {