Skip to content

Commit

Permalink
Final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilona committed Dec 8, 2023
1 parent 7f4f654 commit 581aa79
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ const questions = [
gif: "assets/gifs/7.gif",
},
{
question:
"What does Ross famously scream when trying to help move his new couch up the stairs?",
question: "What does Ross scream while moving his new couch upstairs?",
answer: ["Upward!", "Turn!", "Push!", "Pivot!"],
correctAnswer: "Pivot!",
gif: "assets/gifs/8.gif",
Expand All @@ -88,11 +87,10 @@ const questions = [
gif: "assets/gifs/9.gif",
},
{
question:
"What is the term 'Unagi' according to Ross, and why does he believe it's crucial for personal safety?",
question: "According to Ross, what does the term 'Unagi' mean?",
answer: [
"A type of sushi roll",
"Martial arts training",
"Meditation practice",
"Self-defense technique",
"A state of total awareness",
],
Expand Down Expand Up @@ -131,7 +129,6 @@ const renderQuestionCheck = (questionByIndex) => {
}

const btnCheck = document.querySelector("#btnCheck");
//const btnNext = document.querySelector("#btnNext");

btnCheck.addEventListener("click", () => {
const selectedAnswer = document.querySelector(
Expand Down Expand Up @@ -174,7 +171,7 @@ const onNext = () => {
const scoreText = document.querySelector(".scoreText");
scoreText.innerText = score;
const gif = document.querySelector("#gif");
if (score > 8) {
if (score >= 8) {
gif.setAttribute("src", scoreGifs[0].winner1);
} else if (score >= 5 && score < 8) {
gif.setAttribute("src", scoreGifs[1].winner2);
Expand Down

0 comments on commit 581aa79

Please sign in to comment.