You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Questions and parts can be created and used without reference to a parent object or any display code, so the same should be true for exams.
At the moment, a lot of code assumes that there's only one exam running, referenced by the global Numbas.exam. Instead, anything that belongs to an exam should keep a reference to the exam object, so there's no need for a global.
The display code should also allow for more than one exam in a page, again by referring to a parent HTML element rather than the <body> tag and id attributes.
The text was updated successfully, but these errors were encountered:
Questions and parts can be created and used without reference to a parent object or any display code, so the same should be true for exams.
At the moment, a lot of code assumes that there's only one exam running, referenced by the global
Numbas.exam
. Instead, anything that belongs to an exam should keep a reference to the exam object, so there's no need for a global.The display code should also allow for more than one exam in a page, again by referring to a parent HTML element rather than the
<body>
tag andid
attributes.The text was updated successfully, but these errors were encountered: