Jump to navigation

Class: ExamEvent

Numbas.ExamEvent

new ExamEvent()

Represents what should happen when a particular timing or navigation event happens.

Source:

Members

action :string

Action to take when the event happens.

Choices for timer events:

  • none - Don't do anything.
  • warn - Show a message.

Choices for navigation events:

  • none - just allow the navigation
  • warnifunattempted - Show a warning but allow the student to continue.
  • preventifunattempted - Show a warning but allow the student to continue.
Type:
Source:

message :string

Message to show the student when the event happens.

Type:
Source:

type :string

Name of the event this corresponds to.

Navigation events:

  • onleave - The student tries to move to another question without answering the current one.

(There used to be more, but now they're all the same one)

Timer events:

  • timedwarning - Five minutes until the exam ends.
  • timeout - There's no time left; the exam is over.
Type:
Source: