Jump to navigation

Namespace: controls

Numbas.controls

Methods

(static) backToMenu()

Go back to the question menu.

Source:

(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) 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

The 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) submitPart(part)

Submit a part.

Parameters:
Name Type Description
part Numbas.parts.Part
Source:

(static) submitQuestion()

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

Source:
See: