Plugin for creating pretty, dynamic quizzes.


Based on:

https://github.com/jewlofthelotus/SlickQuiz


Sample App:
https://visualneo.com/tutorials/neoquiz

 

neoQuizNewQuiz

Purpose:

Create a new Quiz JSON Object.


Alternatively you can create it directlly using JavaScript.

Category:

neoQuiz

Syntax:

neoQuizNewQuiz json "nameText" "descriptionText" "resultsText" "level1" "level2" "level3" "level4" "level5"

 

json

JSON object variable name (will be created if not exists)

nameText

Quiz name text

descriptionText

Description text

resultsText

Results text (shown when fishished)

level1

Ranking level 1 text

level2

Ranking level 2 text

level3

Ranking level 3 text

level4

Ranking level 4 text

level5

Ranking level 5 text

 

neoQuizAddQuestion

Purpose:

Add a new question to a Quiz JSON Object.


Alternatively you can create it directlly using JavaScript.

Category:

neoQuiz

Syntax:

neoQuizAddQuestion json "question" "correctText" "incorrectText" "answer1" answer1type "answer2" answer2type "answer3" answer3type "answer4" answer4type

 

json

JSON object variable name

question

Question text (HTML allowed)

correctText

Text to display if the answer is correct

incorrectText

Text to display if the answer is incorrect

answer1

Answer1 text (HTML allowed)

answer1type

Answer1 is a correct answer?

answer2

Answer2 text (HTML allowed)

answer2type

Answer2 is a correct answer?

answer3

Answer3 text (HTML allowed)

answer3type

Answer3 is a correct answer?

answer4

Answer4 text (HTML allowed)

answer4type

Answer4 is a correct answer?

 

neoQuizSetText

Purpose:

Set default text strings for quizzes.


Left any of them empty for default content.

Category:

neoQuiz

Syntax:

neoQuizSetText "getStartedText" "checkAnswerText" "nextQuestionText" "backButtonText" ""completeQuizText" "tryAgainText" "preventUnansweredText" "questionCountText" "questionTemplateText" "scoreTemplateText" "nameTemplateText" "youScoredText" "rankingText"

 

getStartedText

Text for get started button. Default: 'Get Started!'

checkAnswerText

Text for the check answer button. Default: 'Check My Answer!'

nextQuestionText

Text for the next question button. Default: 'Next ยป'

backButtonText

Text for the back button. Left blank (default) for no back button

"completeQuizText

Text for last button before getting results. Example: ""Get Your Results!"""

tryAgainText

Text for the try again button. If left blank - no try again button will be displayed

preventUnansweredText

Text to show if a user enter a blank answer. Default: 'Select at least one answer'

questionCountText

Question count text. Default: 'Question %current of %total'

questionTemplateText

Question template text. Default: '%count. %text'

scoreTemplateText

Score template text. Default: '%score / %total'

nameTemplateText

Name template text. Default: 'Quiz: %name'

youScoredText

You scored text. Default: 'You scored:'

rankingText

Ranking text. Default: 'Ranking:'

 

neoQuizSetOptions

Purpose:

Set quiz options

Category:

neoQuiz

Syntax:

neoQuizSetOptions skipStartButton numberOfQuestions randomSortQuestions randomSortAnswers preventUnanswered perQuestionResponseMessaging completionResponseMessaging scoreAsPercentage

 

skipStartButton

Skip start button

numberOfQuestions

Number of questions to load from the question set (0 = all)

randomSortQuestions

Sort questions randomly

randomSortAnswers

Sort answers randomly

preventUnanswered

Prevent submitting a question with no answer

perQuestionResponseMessaging

Show correct / incorrect response messages after each answer

completionResponseMessaging

Display all questions results when the quiz is completed

scoreAsPercentage

Display score as a percentage rather than the correct responses number

 

neoQuizSetEvents

Category:

neoQuiz

Syntax:

neoQuizSetEvents onstart oncomplete onreset oncheckanswer onnextquestion onbackquestion

 

onstart

On start quiz

oncomplete

On complete quiz

onreset

On reset quiz

oncheckanswer

On check answer

onnextquestion

On next question

onbackquestion

On back question

 

neoQuizStart

Purpose:

Start the Quiz

Category:

neoQuiz

Syntax:

neoQuizStart "objId" [jsonData]

 

objId

Container for the quiz

jsonData

JSON object variable name with questions data