A visually stunning, modern web-based Quiz Game featuring a premium Vanilla JS + CSS frontend. Test your knowledge with dynamic trivia powered by the OpenTDB API, presented in a glorious glassmorphic gaming dashboard!
- 🎨 Glorious UI: Beautifully crafted, responsive interface featuring intense glassmorphism, fluid micro-animations, and ambient dynamic background effects.
- 🧠 Real-Time Trivia: Connects live to OpenTDB API to fetch diverse quiz questions instantly.
- 🎚️ Dynamic Quiz Control: Comprehensive Main Menu allows users to customize the length of their session using a sleek neon slider (5–50 questions).
- ⏱️ High-Stakes Timer: A ticking race against time per question to maintain an urgent arcade thrill.
- 🏆 Highscore Tracking: Native persistence storage systematically collects and ranks your top 10 best career scores.
- ✨ Semantic Contextualism: Clean, text-based difficulty badges (Easy, Medium, Hard) color-coded with high-quality neon glows automatically adjusting point value logic.
- 📊 Visual Progression: Features a liquid-plasma progress bar that animates smoothly as you resolve queries.
- Initialization: Users specify their ideal question load from the immersive entry portal.
- Data Fetching: Contacts the OpenTDB gateway, gracefully isolating HTML-encoded streams for safe layout construction.
- Game Logic: Users pick answers and finalize commitments via locked submission gates.
- Visual Grading: The engine highlights right and wrong selections visually while accumulating score weights according to difficulty class.
- Cycle Completion: Highscores are automatically updated locally and the terminal display prepares the full replay gateway.
- A modern web browser (Chrome, Firefox, Edge, Safari)
- Active internet connection (required for OpenTDB question streaming)
- Clone this repository to your local machine:
git clone https://github.com/HeX-ecutioner/quiz-game.git- Navigate to the project subdirectory:
cd quiz-gameSeamlessly open the index.html file directly in your favorite browser!
quiz-game/
├── images/ # Project branding assets (Favicon, Mario animations)
├── styles.css # Premium design system, glassmorphism & Neomorphism animations
├── script.js # Asynchronous state engine & dynamic UI constructor
└── index.html # Application Scaffold entry point- HTML5
- CSS3 (Custom Properties, Mesh Gradients, Animations)
- Vanilla JavaScript (ES6+ Fetch, LocalStorage API)
- OpenTDB API Gateway
This project uses the MIT License