How do I embed exams on my web site?

Putting exams into your own web pages only takes a couple lines of javascript.

You will need to embed a few lines of code in your web page for an exam to load and a gateway to be formed between your web server and ours. Any code that you embed must be placed between the opening <body> and closing </body> tags, and may need to have a height value set to function properly in all browsers.

Embed code may need to be wrapped in <div> tags with height set to a fixed value.

							
  1. <div style="height: 600px;">
  2.     place embed code here
  3. </div>

There are two methods for embedding exams.

  1. Individual Exams
  2. Student Interface

Individual exams

If you wish embed a single exam on your web-site, use the following code as an example.

Individual embed code

							
  1. <script src="https://my.examprofessor.com/embed/67DB31B129FBCC9B/0694E51709F65C62" language="javascript"></script>

Change the last key with the one provided in the teacher admin interface under exams.

Exam will automatically size to fit any container.


Student interface

If you wish to embed the whole student interface on your web-site, use the following code as an example.

Student interface embed code.

							
  1. <script src="https://my.examprofessor.com/embed/67DB31B129FBCC9B" language="javascript"></script>

Change the key with the one provided in the teacher admin interface under settings.

The student interface will include a complete list of both private and public exams under your account, including a student log-in, dashboard of exam data including exam name, passing score, number of takes, retakes, scores and other data specific to your account.