-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d30a3a9
commit 45b572a
Showing
8 changed files
with
251 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
edx_proctoring/templates/proctored_exam/waiting_for_app_shutdown.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{% load i18n %} | ||
<div class="sequence proctored-exam completed" data-exam-id="{{exam_id}}"> | ||
<h3> | ||
{% blocktrans %} | ||
You are about to complete your proctored exam | ||
{% endblocktrans %} | ||
</h3> | ||
<p> | ||
{% blocktrans %} | ||
Make sure you return to the proctoring software and select <strong> Quit </strong> to end proctoring | ||
and submit your exam. | ||
{% endblocktrans %} | ||
</p> | ||
|
||
<p> | ||
{% blocktrans %} | ||
If you have questions about the status of your proctored exam results, contact {{ platform_name }} Support. | ||
{% endblocktrans %} | ||
</p> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
var _waiting_for_app_timeout = null; | ||
|
||
$(document).ready(function(){ | ||
_waiting_for_app_timeout = setInterval( | ||
poll_exam_started, | ||
1000 | ||
); | ||
}); | ||
|
||
function poll_exam_started() { | ||
var url = '{{ exam_started_poll_url }}'; | ||
$.ajax(url).success(function(data){ | ||
if (data.status === 'submitted') { | ||
// Do we believe the client proctoring app has shut down | ||
// if so, then refresh the page which will expose | ||
// other content | ||
if (data.client_has_shutdown !== undefined && data.client_has_shutdown) { | ||
if (_waiting_for_app_timeout != null) { | ||
clearInterval(_waiting_for_app_timeout) | ||
} | ||
// we've state transitioned, so refresh the page | ||
// to reflect the new state (which will expose the test) | ||
location.reload(); | ||
} | ||
} | ||
}); | ||
} | ||
|
||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.