Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to run multiple exams in one page, and separate from display code #564

Closed
christianp opened this issue Aug 6, 2018 · 1 comment
Labels

Comments

@christianp
Copy link
Member

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.

@christianp
Copy link
Member Author

This is possible after c1ca9e8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant