Commit 8a40531b by Chris Dodge

tweeks to template html/js

parent 8acba50f
......@@ -10,15 +10,17 @@
<strong>
{% trans "In order to successfully pass this exam you will have to answer the following questions and problems in the time allotted." %}
</strong>
{% blocktrans %}
Once you proceed, you'll start both the exam and the {{total_time|lower}} given to you.
{% endblocktrans %}
</p>
<div class="gated-sequence">
{% blocktrans %}
I'm ready! Start this timed exam.
<a class='start-timed-exam' data-ajax-url="{{enter_exam_endpoint}}">
<a class='start-timed-exam' data-ajax-url="{{enter_exam_endpoint}}" data-exam-id="{{exam_id}}">
{% blocktrans %}
I'm ready! Start this timed exam.
{% endblocktrans %}
<i class="fa fa-arrow-circle-right"></i>
</a>
{% endblocktrans %}
</div>
</div>
{% include 'proctoring/seq_timed_exam_footer.html' %}
......@@ -26,9 +28,9 @@
<script type="text/javascript">
$('.start-timed-exam').click(
function(event) {
var target = $(event.target);
var action_url = target.data('ajax-url');
var exam_id = target.parent().parent().data('exam-id');
var action_url = $(this).data('ajax-url');
var exam_id = $(this).data('exam-id');
$.post(
action_url,
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment