/quizlib

Simple JavaScript library for creating HTML quizes.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

QuizLib

A simple JavaScript library for creating HTML quizzes.

Demo and Usage

Docs

Features

  • Simple to implement, just add the provided classes to your HTML and follow the flexible structure
  • Supports an unlimited number of quizzes, questions and answers
  • Answer checking including:
    • Optional flagging of unanswered questions
    • Correct and incorrect answer highlighting with an optional callback to extend this functionality
    • Simple score querying, including automatic percentage calculation
  • Supports any combination of input types using the value attribute