33 lines
1.4 KiB
Plaintext
33 lines
1.4 KiB
Plaintext
<div class="exam-timer">
|
|
<%
|
|
function gtLtEscape(str) {
|
|
return String(str)
|
|
.replace(/</g, '<')
|
|
.replace(/>/g, '>')
|
|
}
|
|
%>
|
|
<div class='exam-text'>
|
|
<%= interpolate_text('You are taking "{exam_link}" as a {exam_type} exam. The timer on the right shows the time remaining in the exam.', {exam_link: "<a href='" + exam_url_path + "'>"+gtLtEscape(exam_display_name)+"</a>", exam_type: (!_.isUndefined(arguments[0].exam_type)) ? exam_type : gettext('timed')}) %>
|
|
<%- gettext('To receive credit for problems, you must select "Submit" for each problem before you select "End My Exam".') %>
|
|
</div>
|
|
<div id="turn_in_exam_id" class="pull-right turn_in_exam">
|
|
<span>
|
|
<% if(attempt_status !== 'ready_to_submit') {%>
|
|
<button class="exam-button-turn-in-exam btn btn-pl-primary">
|
|
<%- gettext("End My Exam") %>
|
|
</button>
|
|
<% } %>
|
|
</span>
|
|
<span class="sr timer-announce" aria-live="assertive"></span>
|
|
<span class="exam-timer-clock">
|
|
<span id="time_remaining_id">
|
|
<b>
|
|
</b>
|
|
</span>
|
|
<button role="button" id="toggle_timer" aria-label="<%- gettext("Hide Timer") %>" aria-pressed="false">
|
|
<i class="fa fa-eye-slash" aria-hidden="true"></i>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</div>
|