View submitted answers locally

This commit is contained in:
Ross
2023-05-15 09:16:46 +01:00
parent c8515b51c7
commit 57e76c10fa
5 changed files with 126 additions and 97 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ export function postAnswers(ans, config, exam_details) {
// $.post( "http://localhost:8000/submit_answers", JSON.stringify(ans));
}
function submissionError(data, answer_json, exam_details) {
export function submissionError(data, answer_json, exam_details) {
// error will not be defined with server errors
if (data.error != undefined) {
alert(`Error submitting answers: ${data.error}`);