diff --git a/timer.js b/timer.js index bce10a4..5809ee1 100644 --- a/timer.js +++ b/timer.js @@ -3,7 +3,7 @@ var count = 4, tmID, hit = Math.floor(Math.random()*10); - areas = document.querySelectorAll("div"), + areas = document.querySelectorAll("box"), button = document.getElementById("start"), infobox = document.getElementById("message"); function countDown() { @@ -22,7 +22,7 @@ areas[hit].addEventListener("click", stopCountDown, false); } function changeColor() { - document.querySelectorAll("div").classList.add('color'); + document.getElementById("box").classList.add('color'); document.addEventListener("click", changeColor, false); } function stopCountDown() {