How leak1415/quiz-website works
Quiz Website is a static browser app for taking subject quizzes, viewing results and rankings, and managing an account. The main user journey runs from the landing page through sign-in and the interactive quiz to feedback; users can also visit their profile and the leaderboard. Authentication, quiz progress, and results use browser storage rather than a backend. The README documents the major pages and capabilities; implementation detail is based on the supplied excerpts, so some page-to-page links are documented rather than verified in code.
Main entry points: quiz.js Quiz engine · index.html Home dashboard · contact.html Contact page · register.html Registration
Components 21
Site pages
- Home dashboard
index.html - Responsive navigation
js/nav.js - About page
pages/aboutUs.html - Contact page
pages/contact.html - Contact form
js/contact.js
Accounts
- Registration
auth/register.html - Registration logic
js/register.js - Login
auth/login.html - Login logic
js/login.js - Session guard
js/auth-guard.js - Browser app data
Quiz experience
- Quiz page
pages/quiz.html - Quiz engine
js/quiz.js - Quiz sharing
js/quiz-share.js - Results page
pages/result.html - Result feedback
js/result.js
Progress and community
- User profile
js/profile.js - Leaderboard
js/leaderBoard.js - Leaderboard page
pages/leaderBoard.html - Demo rankings
data/leaderBoard.json
Other components
- Visitor
Connections 24
- Visitor → Home dashboard: opens site
README.md - Home dashboard → Login: offers sign-in
README.md - Visitor → Registration: creates account
README.md - Registration → Registration logic: submits form
README.md - Registration logic → Browser app data: writes account
js/register.js - Login → Login logic: submits credentials
js/login.js - Login logic → Browser app data: reads and writes
js/login.js - Home dashboard → Responsive navigation: uses navigation
- Visitor → Quiz page: starts quiz
README.md - Quiz page → Quiz engine: runs quiz
README.md - Quiz engine → Session guard: checks session
js/quiz.js - Session guard → Browser app data: checks session data
js/auth-guard.js - Quiz engine → Quiz sharing: parses shared session
js/quiz.js - Quiz engine → Results page: shows feedback
README.md - Results page → Result feedback: loads results
js/result.js - Result feedback → Browser app data: reads saved results
js/result.js - Visitor → User profile: manages profile
README.md - User profile → Browser app data: reads and updates
js/profile.js - Visitor → Leaderboard page: views rankings
README.md - Leaderboard page → Leaderboard: displays rankings
- Leaderboard → Demo rankings: loads demo scores
js/leaderBoard.js - Visitor → Contact page: visits contact
README.md - Contact page → Contact form: validates form
js/contact.js - Visitor → About page: reads information
README.md