diff --git a/README.md b/README.md index 41a85e1..af81fec 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Incase, music isn't playing for you, please do the following steps: The issue should be fixed. Incase of any further issue, please file a [Bug Report](https://github.com/KendallDoesCoding/quiz/issues/new?assignees=&labels=%F0%9F%9B%A0+goal%3A+fix&template=bug.yml). -# Links and Topics +# Links and Topicssssss #### [Tutorial Video](https://www.youtube.com/watch?v=f4fB9Xg2JEY) diff --git a/css/game.css b/css/game.css index 4672d1f..90471c5 100644 --- a/css/game.css +++ b/css/game.css @@ -109,4 +109,19 @@ body { transform: scale(2); opacity: 0; } -} \ No newline at end of file +} +#timer-container { + text-align: center; + margin-top: 10px; +} + +#timer-prefix { + margin-bottom: 5px; + font-size: 16px; +} + +#timer { + font-size: 24px; + font-weight: bold; + color: #ff0000; /* Set the color of the timer */ +} diff --git a/pages/game.html b/pages/game.html index 657b1be..95d060d 100644 --- a/pages/game.html +++ b/pages/game.html @@ -1,91 +1,107 @@ -
- - - - -Question
-Score
--100
+ function resetTimer() { + clearInterval(timer); + timeLimit = 10; + updateTimerDisplay(); + startTimer(); + } + + startTimer(); + + + +Question
+A
-Choice
-B
-Choice 2
-C
-Choice 3
-D
-Choice 4
+Score
+-100
Time Left:
+10s
+A
+Choice
+B
+Choice 2
C
+Choice 3
+D
+Choice 4
+