Skip to content

Commit

Permalink
fix timer
Browse files Browse the repository at this point in the history
  • Loading branch information
rbozek committed Jan 4, 2024
1 parent a30b074 commit e409550
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ function playerChooseAnswer(evt){

function roundOver(){
// console.log('testing gameover state');
stopTimer()
if (playerScore >= 3) {
playerScoreContainer.innerHTML = `Your score is:<br> ${ playerScore } <br> Perfect. You are an evolved human.`
} else if (playerScore < 3 && playerScore > 1) {
Expand Down
Empty file removed js/data.js
Empty file.
4 changes: 2 additions & 2 deletions js/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -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 },
Expand Down

0 comments on commit e409550

Please sign in to comment.