From b7a4167bcb8f9904dd033b4c55cdeee2636f6e2d Mon Sep 17 00:00:00 2001 From: SOLVE-NITK Date: Mon, 15 Jul 2024 10:40:31 +0530 Subject: [PATCH] Review comments are rectified --- experiment/simulation/css/style.css | 4 +++- experiment/simulation/index.html | 20 ++++++++++---------- experiment/simulation/js/script.js | 4 +++- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/experiment/simulation/css/style.css b/experiment/simulation/css/style.css index 794dfb7..a085066 100644 --- a/experiment/simulation/css/style.css +++ b/experiment/simulation/css/style.css @@ -570,7 +570,9 @@ canvas { grid-template-columns: 80fr 20fr; gap: 2rem; } - +.anim{ + animation: highlight 1s infinite; +} .var-spinner { justify-self: center; } diff --git a/experiment/simulation/index.html b/experiment/simulation/index.html index f8a1659..1177027 100644 --- a/experiment/simulation/index.html +++ b/experiment/simulation/index.html @@ -63,7 +63,7 @@

Isometric to Orthographic view

  • - solution @@ -91,7 +91,7 @@

    Apparatus

    Compass
    - drafter + drafter Drafter
    @@ -118,14 +118,14 @@

    Apparatus

    Well Done! The conversion of the isometric view to the orthographic view is successful.

    - - - - - - - - + + + + + + + + diff --git a/experiment/simulation/js/script.js b/experiment/simulation/js/script.js index bfc0aa0..ae6b983 100644 --- a/experiment/simulation/js/script.js +++ b/experiment/simulation/js/script.js @@ -333,13 +333,15 @@ function checkAnswer(ele, index, answer, buttonClass) { optionSelected.classList.remove("correct"); if (index === answer) { optionSelected.classList.add("correct"); + buttonClass.classList.add("anim"); buttonClass.classList.remove("hide"); validateAnswer.innerHTML = "Right answer👍"; answersDiv.appendChild(validateAnswer); } else { optionSelected.classList.add("wrong"); + buttonClass.classList.remove("anim"); buttonClass.classList.add("hide"); - validateAnswer.innerHTML = "Worng answer, please check the options again👎"; + validateAnswer.innerHTML = "Wrong answer, please check the options again👎"; answersDiv.appendChild(validateAnswer); } }