Skip to content

Feat: Use Open Trivia API for quiz questions (#56)#58

Merged
venisha-kalola merged 1 commit into
commitra:mainfrom
sneha31-debug:main
Oct 15, 2025
Merged

Feat: Use Open Trivia API for quiz questions (#56)#58
venisha-kalola merged 1 commit into
commitra:mainfrom
sneha31-debug:main

Conversation

@sneha31-debug
Copy link
Copy Markdown
Contributor

Summary

This PR implements Issue #56 by replacing the static quiz questions with a dynamic fetch from the Open Trivia Database API.
Key changes:

Replaced the hardcoded data array in projects/quiz/main.js with questions fetched from https://opentdb.com/api.php?amount=5&type=multiple.

Maintains the timer for each question, score tracking, and question rendering logic.

Handles correct/wrong answers and timeout scenarios.

Minor updates to data/projects.json to register the quiz project.

Checklist

Linked issue (#56)

Ran locally without console errors

Focused scope (quiz API integration only)

Updated data/projects.json

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 15, 2025

@sneha31-debug is attempting to deploy a commit to the hrishikesh-dalal's projects Team on Vercel.

A member of the Team first needs to authorize it.

@venisha-kalola
Copy link
Copy Markdown
Contributor

add screenshots of implementation also usually before PR u should have checked if the issue was assigned to you or not so there is no confusion

@venisha-kalola venisha-kalola merged commit 85793ca into commitra:main Oct 15, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants