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

Show the advice for the current question.

Parameters:
Name Type Description
exam Numbas.Exam
Source:
See:

(static) jumpQuestion(jumpTo, exam)

Try to move directly to a particular question.

Parameters:
Name Type Description
jumpTo number

Number of the question to jump to.

exam Numbas.Exam
Source:
See:

(static) makeQuestionJumper(n, exam) → {function}

Make a function which tries to jump to question N.

Parameters:
Name Type Description
n number

Number of the question to jump to.

exam Numbas.Exam
Returns:
Type Description
function
Source:
See:

(static) nextQuestion(exam)

Try to move to the next question.

Parameters:
Name Type Description
exam Numbas.Exam
Source:
See:

(static) pauseExam()

Pause the exam.

Source:
See:

(static) previousQuestion(exam)

Try to move to the previous question.

Parameters:
Name Type Description
exam Numbas.Exam
Source:
See:

(static) regenQuestion(exam)

Regenerate the current question.

Parameters:
Name Type Description
exam Numbas.Exam
Source:
See:

(static) resumeExam()

Resume the paused exam.

Source:
See:

(static) revealAnswer(exam)

Reveal the answers to the current question.

Parameters:
Name Type Description
exam Numbas.Exam
Source:
See:

(static) showIntroduction()

Show the introduction text, while the exam is in progress.

Source:

(static) submitPart(part)

Submit a part.

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

(static) submitQuestion(exam)

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

Parameters:
Name Type Description
exam Numbas.Exam
Source:
See: