JavaScript Trivia Game Questions: Show and process a trivia questions game

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 169 All time: 305 This week: 17Up
Version License JavaScript version Categories
trivia-game 1.0.0BSD License3.0Games
Description Author

This object can show and process a trivia questions game.

It can retrieve the list of questions from JSON or XML files from the server using AJAX requests.

The object can display the questions and possible answers using a HTML template that has elements identified to show the different text messages of the questions and answers.

The trivia game difficulty has two possible levels. On the easy level the game shows all possible answers. On the difficult level the game requires that the user enters the right answer without seeing any suggestions.

The game sequence may be run in two possible modes. In the consecutive mode it shows all the questions by the order they were stored in the questions file. In the random mode it shows the questions by a random order.

Optionally the user may have a limited period of time to answer each question. The object makes the remaining time to answer show in the page.

Innovation Award
JavaScript Programming Innovation award nominee
February 2013
Number 4
Trivia games are very popular among people that enjoy challenges to demonstrate their knowledge in a certain subject.

This object makes it possible to create a whole trivia game in JavaScript by reading the questions from XML files.

Manuel Lemos
Picture of MarPlo
  Performance   Level  
Name: MarPlo <contact>
Classes: 13 packages by
Country: Romania Romania
Age: ???
All time rank: 131 in Romania Romania
Week rank: 6 Up1 in Romania Romania Equal
Innovation award
Innovation award
Nominee: 5x

Winner: 1x

  Files folder image Files  
File Role Description
Files folder imagetrivia (7 files)
Accessible without login HTML file readme.html Doc. Documentation
Accessible without login Plain text file trivia.html Example Example script

  Files folder image Files  /  trivia  
File Role Description
  Accessible without login Plain text file animals.xml Data File with quizzes
  Accessible without login Plain text file animals_json.txt Data File with quizzes
  Accessible without login Plain text file general.xml Data File with quizzes
  Accessible without login Plain text file general_json.txt Data File with quizzes
  Accessible without login HTML file index.html Data Index file in trivia directory
  Accessible without login Plain text file trivia.css Data CSS code
  Plain text file trivia.js Class JavaScript code

 Version Control Unique User Downloads Download Rankings  
 0%
Total:169
This week:0
All time:305
This week:17Up