Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2013-02-04 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 157 All time: 298 This week: 18Up
Version License JavaScript version Categories
trivia-game 1.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
Name: MarPlo <contact>
Classes: 12 packages by
Country: Romania Romania
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:157
This week:0
All time:298
This week:18Up