From 019cb08560e6bca6c91f91d9be03d468b4031494 Mon Sep 17 00:00:00 2001
From: Matt Hughes Please wait while you are being redirected...
}
);
- function check_exam_started(e) {
+ function handle_start_exam(e) {
e.preventDefault();
+ check_exam_started(function() {
+ // The proctoring setup is not yet complete.
+ // Show a modal indicating that the user is not done yet.
+ edx.courseware.proctored_exam.accessibleError(
+ gettext("Cannot Start Proctored Exam"),
+ gettext("You must complete the proctoring setup before you can start the exam.")
+ );
+ });
+ }
+ function check_exam_started(failureCallback) {
var url = $('.instructions').data('exam-started-poll-url') + '?sourceid=instructions';
$.ajax(url).success(function(data){
if (data.status === 'ready_to_start') {
@@ -129,27 +139,18 @@
// to reflect the new state (which will expose the test)
location.reload();
} else {
- // The proctoring setup is not yet complete.
- // Show a modal indicating that the user is not done yet.
- edx.courseware.proctored_exam.accessibleError(
- gettext("Cannot Start Proctored Exam"),
- gettext("You must complete the proctoring setup before you can start the exam.")
- );
+ failureCallback();
}
});
}
- $('.start-proctored-exam').click(check_exam_started);
-
- $("#software_download_link").click(function (e) {
- e.preventDefault();
+ function launchSystemCheck() {
var url = $('.instructions').data('exam-started-poll-url');
- var action = $(this).data('action');
+ var action = $('#software_download_link').data('action');
// open the new tab in the click event with an empty URL but show the message.
var newWindow = window.open("", "_blank");
$(newWindow.document.body).html("
}).fail(function(){
newWindow.close();
});
+
+ }
+
+ $('.start-proctored-exam').click(handle_start_exam);
+
+ $("#software_download_link").click(function (e) {
+ e.preventDefault();
+ check_exam_started(launchSystemCheck);
});
{{backend_js|safe}}
From 6bad263bdccee8a0fb72e090f3d8d7e10ca1049b Mon Sep 17 00:00:00 2001
From: Matt Hughes
- {% blocktrans %} - 1. Copy this unique exam code. You will be prompted to paste this code later before you start the exam. - {% endblocktrans %} -
++ {% blocktrans %} + Copy this unique exam code. You will be prompted to paste this code later before you start the exam. + {% endblocktrans %} +
{{exam_code}}
{% blocktrans %} - Select the exam code, then copy it using Command+C (Mac) or Control+C (Windows). + Select the exam code, then copy it using Control + C (Windows) or Command + C (Mac). {% endblocktrans %}
+{% blocktrans %} - 2. Click the button below to set up proctoring. - {% endblocktrans %} -
- -- {% blocktrans %} - A new window will open. You will run a system check before downloading the proctoring application. + Start your system check now. A new window will open for this step and you will verify your identity. {% endblocktrans %}
{% blocktrans %} - You will be asked to verify your identity as part of the proctoring exam set up. - Make sure you are on a computer with a webcam, and that you have valid photo identification - such as a driver's license or passport, before you continue. + Make sure you: {% endblocktrans %}
+{% blocktrans %} - 3. When you have finished setting up proctoring, start the exam. + When you've finished the system check and verified your identity, begin your exam. {% endblocktrans %}
{% endif %}