Adding back scripts in /docs

This commit is contained in:
Zachary Klosko 2020-05-19 10:16:31 -04:00
parent bcf938ca7e
commit 6540a34a9b
26 changed files with 336 additions and 94 deletions

View file

@ -87,6 +87,7 @@ function formSlide(dir) {
steps = parseInt(stepCount.html());
stepCount.html((dir == "next") ? (steps + 1) : (steps - 1));
hideRMQForm();
hideCORSForm();
}
/**
@ -112,11 +113,21 @@ function hideRMQForm() {
$("#advCaret").removeClass("caret-up");
}
/**
* Hide the RMQ form when the slider is called to avoid showing
* scrollbars on slider panels that fit vertically
*/
function hideCORSForm() {
$("#corsFormBody").slideUp(500);
$("#corsCaret").removeClass("caret-up");
}
function submitForm(e, obj) {
resetFeedback();
e.preventDefault();
var d = $(e.target).serializeArray();
addOverlay();
$(".viewport").scrollTop(0);
// Append .promise().done() rather than using a
// callback to avoid call duplication
$("#overlay, #loadingImage").fadeIn(500).promise().done(function() {