.
This commit is contained in:
+5
-2
@@ -63,17 +63,20 @@ export function postAnswers(ans) {
|
|||||||
alert(`Error submitting answers: ${data.error}`);
|
alert(`Error submitting answers: ${data.error}`);
|
||||||
var docHeight = $(document).height();
|
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")
|
$("#overlay")
|
||||||
.height(docHeight)
|
.height(docHeight)
|
||||||
.css({
|
.css({
|
||||||
'opacity' : 0.4,
|
'opacity' : 0.9,
|
||||||
'position': 'absolute',
|
'position': 'absolute',
|
||||||
'top': 0,
|
'top': 0,
|
||||||
'left': 0,
|
'left': 0,
|
||||||
'background-color': 'black',
|
'background-color': 'black',
|
||||||
'width': '100%',
|
'width': '100%',
|
||||||
|
'user-select': 'text',
|
||||||
|
'-moz-user-select': 'text',
|
||||||
|
'-webkit-user-select': 'text',
|
||||||
'z-index': 5000
|
'z-index': 5000
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user