This commit is contained in:
Ross
2021-01-04 10:54:52 +00:00
parent 81bc8c6868
commit e07984095c
+5 -2
View File
@@ -63,17 +63,20 @@ export function postAnswers(ans) {
alert(`Error submitting answers: ${data.error}`);
var docHeight = $(document).height();
$("body").append(`<div id='overlay'><span style='color: yellow'><p>A copy of your answers are displayed below. Please refresh this page to continue.</p>${JSON.stringify(ans)}</span></div>`);
$("body").append(`<div id='overlay'><span style='color: white'><p>An error has occured when submit your answers. A copy of your answers are displayed below, you may wish to save a copy. Please refresh this page to continue.</p>${JSON.stringify(ans)}</span></div>`);
$("#overlay")
.height(docHeight)
.css({
'opacity' : 0.4,
'opacity' : 0.9,
'position': 'absolute',
'top': 0,
'left': 0,
'background-color': 'black',
'width': '100%',
'user-select': 'text',
'-moz-user-select': 'text',
'-webkit-user-select': 'text',
'z-index': 5000
});
}