From e409550c95b1bf1ed0fa96ed11a6a17da4c275ef Mon Sep 17 00:00:00 2001 From: rbozek Date: Thu, 4 Jan 2024 15:47:01 -0500 Subject: [PATCH] fix timer --- js/app.js | 1 + js/data.js | 0 js/questions.js | 4 ++-- 3 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 js/data.js diff --git a/js/app.js b/js/app.js index 2a2d8ed..1f98ace 100644 --- a/js/app.js +++ b/js/app.js @@ -150,6 +150,7 @@ function playerChooseAnswer(evt){ function roundOver(){ // console.log('testing gameover state'); + stopTimer() if (playerScore >= 3) { playerScoreContainer.innerHTML = `Your score is:
${ playerScore }
Perfect. You are an evolved human.` } else if (playerScore < 3 && playerScore > 1) { diff --git a/js/data.js b/js/data.js deleted file mode 100644 index e69de29..0000000 diff --git a/js/questions.js b/js/questions.js index 27fcfd4..aaeca14 100644 --- a/js/questions.js +++ b/js/questions.js @@ -96,7 +96,7 @@ const questionsImportCat2 = [ const questionsImportCat3 = [ { - quesQ: `When driving on a highway in the U.S., the left-hand lanes are legally intended for _____.`, + quesQ: `When driving on a highway in the U.S., the left-hand lanes are legally intended for:`, quesAs: [ { answer: `Driving fast.`, correctAnswer: false }, { answer: `Passing, then returning to a right-hand lane.`, correctAnswer: true }, @@ -107,7 +107,7 @@ const questionsImportCat3 = [ { quesQ: `After you finish your Arby's Gut Buster with Cream Cheese, you should do this with your trash:`, quesAs: [ - { answer: `Recycle if possible, otherwise trash it.`, correctAnswer: true }, + { answer: `Recycle or compost if possible, otherwise trash it.`, correctAnswer: true }, { answer: `Toss it on the ground.`, correctAnswer: false }, { answer: `Give it back to an employee.`, correctAnswer: false }, { answer: `Leave it on the table for a staff member.`, correctAnswer: false },