Move JavaScript to edx-proctoring repo
This commit is contained in:
@@ -25,20 +25,6 @@
|
||||
</b>
|
||||
</span>
|
||||
<a id="toggle_timer" href="#" title="<%- gettext("Hide Timer") %>"><i class="fa fa-eye-slash" aria-hidden="true"></i></a>
|
||||
<script type="text/javascript">
|
||||
$("#toggle_timer").click(function() {
|
||||
if ($("#time_remaining_id").css("visibility") === "visible") {
|
||||
$("#time_remaining_id").css("visibility", "hidden");
|
||||
$(this).attr("title", "<%- gettext("Show Timer") %>");
|
||||
$(this).find("i").removeClass("fa-eye-slash").addClass("fa-eye");
|
||||
} else {
|
||||
$("#time_remaining_id").css("visibility", "visible");
|
||||
$(this).attr("title", "<%- gettext("Hide Timer") %>");
|
||||
$(this).find("i").removeClass("fa-eye").addClass("fa-eye-slash");
|
||||
}
|
||||
return false; // prevents the window from scrolling up on click
|
||||
});
|
||||
</script>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user