From 92eccdeebccbc054284d1ad321e92d7d20dacce2 Mon Sep 17 00:00:00 2001
From: Akanchha Singh <100962900+Akanchha112@users.noreply.github.com>
Date: Wed, 17 Jan 2024 11:24:49 +0530
Subject: [PATCH] Revert "My first commit"
---
.vscode/settings.json | 3 ---
Dark/game.css | 15 +--------------
Dark/game.html | 7 ++-----
Dark/game.js | 27 ---------------------------
Light/game.css | 8 +-------
Light/game.html | 21 +--------------------
Light/game.js | 27 +--------------------------
7 files changed, 6 insertions(+), 102 deletions(-)
delete mode 100644 .vscode/settings.json
diff --git a/.vscode/settings.json b/.vscode/settings.json
deleted file mode 100644
index 6f3a291..0000000
--- a/.vscode/settings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "liveServer.settings.port": 5501
-}
\ No newline at end of file
diff --git a/Dark/game.css b/Dark/game.css
index 07fc936..add8ce6 100644
--- a/Dark/game.css
+++ b/Dark/game.css
@@ -85,20 +85,7 @@
background-color: #56a5eb;
width: 0%;
}
-#display{
- border:2px solid black;
- border-radius: 5px;
- width:100%;
- margin-bottom:2px;
- display:block;
-}
-#display{
- border:2px solid black;
- border-radius: 5px;
- width:100%;
- margin-bottom:2px;
- display:block;
-}
+
/* LOADER */
#loader {
border: 1.6rem solid white;
diff --git a/Dark/game.html b/Dark/game.html
index 419a9c3..590c762 100644
--- a/Dark/game.html
+++ b/Dark/game.html
@@ -37,7 +37,7 @@
- Question
+
A
@@ -54,15 +54,12 @@
Question
D
-
- Correct option :
-
+
diff --git a/Dark/game.js b/Dark/game.js
index 2a81b0e..7aa1724 100644
--- a/Dark/game.js
+++ b/Dark/game.js
@@ -9,9 +9,6 @@ const time_line = document.querySelector(".time .time_line");
const timeText = document.querySelector(".timer .time_left_txt");
const timeCount = document.querySelector(".timer .timer_sec");
-const question1= document.getElementById('question1');
-
-
var soundCorrect = new Audio("sounds/correctAns.mp3");
var soundIncorrect = new Audio("sounds/wrongAns.mp3");
var myMusic = new Audio("sounds/gametheme.mp3");
@@ -85,7 +82,6 @@ getNewQuestion = () => {
return window.location.assign('end.html');
}
questionCounter++;
- question1.innerText = `Question ${questionCounter}`;//update question number
progressText.innerText = `Question ${questionCounter}/${MAX_QUESTIONS}`;
//Update the progress bar
progressBarFull.style.width = `${(questionCounter / MAX_QUESTIONS) * 100}%`;
@@ -141,10 +137,7 @@ choices.forEach((choice) => {
soundCorrect.play();
} else {
soundIncorrect.play();
- display(currentQuestion.answer);
}
- setInterval(displaynone,4000);
-
selectedChoice.parentElement.classList.add(classToApply);
setTimeout(() => {
@@ -201,27 +194,7 @@ function startTimerLine(time) {
}
}
}
-let string;
-function display(string) {
- let display = document.getElementById('display');
- if (string == 1) {
- display.innerText = `Correct option : A`;
- }
- if (string == 2) {
- display.innerText = `Correct option : B`;
- }
- if (string == 3) {
- display.innerText = `Correct option : C`;
- }
- if (string == 4) {
- display.innerText = `Correct option : D`;
- }
-}
-function displaynone() {
- let display = document.getElementById('display');
- display.innerText = `Correct option : `;
-}
incrementScore = (num) => {
score += num;
scoreText.innerText = score;
diff --git a/Light/game.css b/Light/game.css
index 740f553..f376a8d 100644
--- a/Light/game.css
+++ b/Light/game.css
@@ -82,13 +82,7 @@
background-color: #56a5eb;
width: 0%;
}
-#display{
- border:2px solid black;
- border-radius: 5px;
- width:100%;
- margin-bottom:2px;
- display:block;
-}
+
/* LOADER */
#loader {
border: 1.6rem solid white;
diff --git a/Light/game.html b/Light/game.html
index afb3328..590c762 100644
--- a/Light/game.html
+++ b/Light/game.html
@@ -7,7 +7,6 @@
Game-play
-
-
-
-
Time Left
@@ -33,7 +29,6 @@
-
Score
@@ -42,7 +37,7 @@
-
Question
+
A
@@ -59,7 +54,6 @@
Question
D
-
@@ -69,21 +63,8 @@
Question
-
-
-
-
-