Add loading message to sport submit form

main
sudoer777 2022-03-09 10:56:35 -07:00
parent 5adf927412
commit 492d10f635
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ const nameTextbox = document.getElementById('name-textbox');
const submitButton = document.getElementById('submit-button');
const deleteButton = document.getElementById('delete-button');
const submissionForm = document.getElementById('submission-form');
const loadingSpan = document.getElementById('loading-message');
async function initializeForm() {
@ -27,6 +28,7 @@ async function initializeForm() {
nameTextbox.addEventListener('keyup', checkDataValidity);
loadingSpan.textContent = '';
submissionForm.style.visibility = 'visible';
}
initializeForm();

View File

@ -5,6 +5,7 @@ block stylesheets
link(rel='stylesheet', href='/stylesheets/form.css')
block content
span#loading-message Loading...
form#submission-form(action='./sport', method='POST')
span(class='form-section')
label Sport name