This is a simple JavaScript Quiz App that lets users take a quiz on different categories by fetching questions from the OpenTrivia API.
- Category Selection: Users can choose a category for their quiz.
- Question Navigation: Navigate through questions using next and previous buttons.
- Correct Answer Indication: If the user answers incorrectly, the correct answer is shown temporarily.
- Prevent Skipping: Users cannot proceed to the next question without selecting an answer.
- End of Quiz Summary: Displays the user's total score at the end of the quiz.
-
Clone the Repository:
git clone https://github.com/yashcrest/quiz.github.io.git
-
Open
index.html
File: Navigate to the project folder and openindex.html
in your browser. -
Choose a Category: Select the desired category from the dropdown.
-
Begin the Quiz: Click on "Begin" to start the quiz.
-
Answer the Questions: Select the answers using the radio buttons and navigate using "Next" and "Previous."
-
View Your Score: At the end of the quiz, your total score will be displayed.
- JavaScript (ES6)
- HTML5
- CSS3
- Bootstrap 5
Feel free to contribute to this project by forking the repository and submitting a pull request, or opening an issue with suggestions and bug reports.
This project is licensed under the MIT License. See the LICENSE file for details.