Skip to content

fadymas/Quiz_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 QuizSpark

QuizSpark is a responsive, accessible, and interactive quiz web app built with HTML, CSS, and JavaScript. It fetches trivia questions from the Open Trivia Database (OpenTDB) and presents them in a clean, mobile-first UI. This project was designed for fun, learning, and practicing modern web development techniques.


πŸ“Έ Screenshots

Start Screen Question Screen Results Screen


πŸš€ Features

  • βœ… Responsive design (mobile, tablet, desktop)
  • βœ… Accessible answer buttons (keyboard + screen reader support)
  • βœ… Dynamic progress tracking with styled range input
  • βœ… Audio feedback for correct, incorrect, and final answers
  • βœ… Smooth transitions between sections
  • βœ… Reset functionality to replay the quiz
  • βœ… Questions fetched from OpenTDB API

🧠 How It Works

  1. Start Page: A welcome message and a button to start the quiz.
  2. Question Page:
    • 5 multiple-choice animal-related questions are fetched via OpenTDB.
    • User selects an answer; correct/incorrect feedback is shown.
    • Score increases by 5 points per correct answer.
    • A progress bar visually tracks quiz completion.
  3. Results Page: The total correct answers and final score are displayed, with an option to restart the quiz.

πŸ› οΈ Technologies Used

  • HTML5 β€” Semantic markup and structure
  • CSS3 β€” Custom properties (variables), media queries, transitions
  • JavaScript (ES6) β€” Dynamic DOM manipulation, generators, async/await
  • Google Fonts β€” Roboto family
  • Audio API β€” For sound feedback
  • OpenTDB API β€” For real-time trivia data

Releases

No releases published

Packages

 
 
 

Contributors