Add event listener
Register a listener to one of the supported events for a single widget instance.
||The widget ID identifies the widget and can be retrieved either from
||The event to register to. Valid values are:
||The widget is injected in the page. Default the widget is in an inactive state until the student activates it by clicking on the widget.
||The exercise was activated, either automatically (if configured) or manually by the student by clicking on the widget.
||Sent after every input submitted by the student.
eventData object contains
inputExp: input expression
inputStatus: input evaluation
exerciseState: exercise status<
||Student requests a hint.
||Student has successfully finished the exercise.
Copyright AlgebraKiT 2018