diff --git a/js/interact.js b/js/interact.js index c0346e2..0a9222c 100644 --- a/js/interact.js +++ b/js/interact.js @@ -35,7 +35,7 @@ export function postAnswers(ans) { (data) => { console.log(data) if (data.success) { - alert("Answers sucessfully submitted."); + alert(`${data.question_count} answers sucessfully submitted.`); } else { alert(`Error submitting answers: ${data.error}`); } diff --git a/js/main.js b/js/main.js index 6304da5..7bf5c09 100644 --- a/js/main.js +++ b/js/main.js @@ -1748,22 +1748,25 @@ $(".start-packet-button").click(function (evt) { window.timer = timer; - $("#timer").click(() => { - window.timer.pause(); + // If we are not in an exam we can pause the session + if (!window.exam_mode) { + $("#timer").click(() => { + window.timer.pause(); - let time_remaining = window.timer.getTimeValues().toString(); + let time_remaining = window.timer.getTimeValues().toString(); - $("#pause").empty(); - $("#pause").append( - $( - `