An open API service indexing awesome lists of open source software.

https://github.com/planeshifter/qality.js

Multiple-Choice QA System for JavaScript
https://github.com/planeshifter/qality.js

Last synced: about 1 year ago
JSON representation

Multiple-Choice QA System for JavaScript

Awesome Lists containing this project

README

          

[![NPM version][npm-image]][npm-url]
[![Bower version][bower-image]][bower-url]
[![Build Status][travis-image]][travis-url]
[![Dependencies][dependencies-image]][dependencies-url]

# QAlity.js

> Multiple-Choice QA System for JavaScript

## Features:

- **Versatile**: Several question types: *multiple choice*, *input fields*, *timed and untimed questions*
- **Evaluation system**: Provide result scores and targeted feedback
- **Animations**: customizable animations based on the performant [gsap](http://greensock.com/gsap) library
- **Visual Editor**: create quizzes interactively using a visual frontend
- **Markdown support**: implemented via [markdown-it](https://markdown-it.github.io/)
- **Math support**: blazingly fast rendering via [KaTeX](http://khan.github.io/KaTeX/)
- **Customizable Design**: change appearance of all elements via CSS

## Getting Started

Create a quiz on on the [QAlity Frontend](http://qality.philipp-burckhardt.com/),
grab the created JavaScript object and insert on your page via one of the following options.

## Installation:

#### CDN

Include the following two lines in your `head` and you are ready to go:
```html

<link href="https://cdn.rawgit.com/Planeshifter/qality.js/d02a37d884cd658448ee64a058cd32ceb7df4dfb/css/exam.css" media="screen" rel="stylesheet" type="text/css"/>
```

See the following minimal working example:
```html
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.rawgit.com/Planeshifter/qality.js/d02a37d884cd658448ee64a058cd32ceb7df4dfb/dist/QAreader.min.js">




new QAlity({"sequence":{"nodes":[{"id":0,"type":"input","question":"Who is the current president of the United States?","right_answer":"Barack Obama","transition_in":"dynamic","transition_out":"dynamic","points":1,"duration":"0","background":"none"}]},"evaluation":{"seperator":[{"start":0.33,"id":0},{"start":0.66,"id":1}],"sorted":[],"ranges":[{"id":0,"text":"RANGE 1","start":0,"end":0.33},{"id":1,"text":"RANGE 2","start":0.33,"end":0.66},{"id":2,"text":"RANGE 3","start":0.66,"end":1}]}},
{"div":"quizHolder"});