From 4e547e50badcae24e07314ab7faee22d1b965f72 Mon Sep 17 00:00:00 2001
From: Akanchha Singh <100962900+Akanchha112@users.noreply.github.com>
Date: Sat, 27 Jan 2024 13:21:41 +0530
Subject: [PATCH] Revert "Background Music"
---
Dark/game.html | 2 ++
Light/game.html | 46 ++++++++--------------------------------------
app.js | 14 +++++---------
3 files changed, 15 insertions(+), 47 deletions(-)
diff --git a/Dark/game.html b/Dark/game.html
index e3ece67..5c4f5a8 100644
--- a/Dark/game.html
+++ b/Dark/game.html
@@ -54,6 +54,7 @@
+
Correct option :
+
diff --git a/Light/game.html b/Light/game.html
index 8764173..09e6629 100644
--- a/Light/game.html
+++ b/Light/game.html
@@ -14,6 +14,7 @@
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
/>
+
@@ -27,18 +28,6 @@
-
-
-
Score
-
0
-
-
@@ -143,33 +131,15 @@
D
-
-
+
+
+
diff --git a/app.js b/app.js
index d00bc26..84d10ae 100644
--- a/app.js
+++ b/app.js
@@ -3,15 +3,11 @@ let bgMusic = new Audio(`/assets/music_bg/${index}.mp3`);
function changeMusic() {
bgMusic.src = `/assets/music_bg${index}.mp3`;
-
- if (index <= 5) {
-
- if (index <= music.length) {
-
- index += 1;
- } else {
- index = 1;
- }
+ if (index <= music.length) {
+ index += 1;
+ } else {
+ index = 1;
+ }
}
window.addEventListener("load", () => {