Jump to navigation

Namespace: controls

Numbas.controls

Methods

(static) backToResults()

In an ended exam, go back from reviewing a question the results page

Source:

(static) beginExam()

Start the exam - triggered when user clicks "Start" button on frontpage

Source:
See:

(static) endExam()

(Try to) end the exam

Source:
See:

(static) exitExam()

"Exit" the exam - really this just shows the "You can close the browser" page

Source:
See:

(static) getAdvice()

Show the advice for the current question

Source:
See:

(static) hideSteps(partRef)

Hide the steps for a question part

Parameters:
Name Type Description
partRef Numbas.parts.partpath

id of the part

Source:
See:

(static) jumpQuestion(jumpTo)

Try to move directly to a particular question

Parameters:
Name Type Description
jumpTo Number

number of the question to jump to

Source:
See:

(static) makeQuestionJumper(n) → {function}

Make a function which tries to jump to question N

Parameters:
Name Type Description
n Number

number of the question to jump to

Returns:
Type Description
function
Source:
See:

(static) nextQuestion()

Try to move to the next question

Source:
See:

(static) pauseExam()

Pause the exam

Source:
See:

(static) previousQuestion()

Try to move to the previous question

Source:
See:

(static) regenQuestion()

Regenerate the current question

Source:
See:

(static) resumeExam()

Resume the paused exam

Source:
See:

(static) revealAnswer()

Reveal the answers to the current question

Source:
See:

(static) submitQuestion()

Submit student's answers to all parts in the current question

Source:
See: