Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files147 unmodified lines14814915015115215315460 unmodified lines21521621721821922024 unmodified lines245246247248249250251252253254255147 unmodified lines}.disabled {cursor: not-allowed !important; /* Set cursor to not-allowed */}/* Responsive design */60 unmodified linesdocument.getElementById('fileUploadForm').onsubmit = function() {document.getElementById('loader').style.display = 'block';// Disable the tab buttons and apply disabled classconst buttons = document.querySelectorAll('.tab button');buttons.forEach(button => {24 unmodified linesprocessingMessage.remove(); // Remove the processing message}// Re-enable tab buttons and remove disabled classconst buttons = document.querySelectorAll('.tab button');buttons.forEach(button => {button.removeAttribute('disabled');button.classList.remove('disabled'); // Remove disabled class});}, 3000); // Adjust timing based on your upload duration147 unmodified lines14814915015115215315415560 unmodified lines21621721821922022122222322422522622722822924 unmodified lines254255256257258259260261262263264265266267268269270271147 unmodified lines}.disabled {cursor: not-allowed !important;opacity: 0.6;/* Set cursor to not-allowed */}/* Responsive design */60 unmodified linesdocument.getElementById('fileUploadForm').onsubmit = function() {document.getElementById('loader').style.display = 'block';// Disable the file input and the submit buttonconst fileInput = document.querySelector('input[type="file"]');const submitButton = document.querySelector('input[type="submit"]');fileInput.setAttribute('disabled', 'true');fileInput.classList.add('disabled');submitButton.setAttribute('disabled', 'true');submitButton.classList.add('disabled');// Disable the tab buttons and apply disabled classconst buttons = document.querySelectorAll('.tab button');buttons.forEach(button => {24 unmodified linesprocessingMessage.remove(); // Remove the processing message}// Re-enable file input, submit button, and tab buttonsconst fileInput = document.querySelector('input[type="file"]');const submitButton = document.querySelector('input[type="submit"]');fileInput.removeAttribute('disabled');fileInput.classList.remove('disabled');submitButton.removeAttribute('disabled');submitButton.classList.remove('disabled');const buttons = document.querySelectorAll('.tab button');buttons.forEach(button => {button.removeAttribute('disabled');button.classList.remove('disabled');});}, 3000); // Adjust timing based on your upload duration
templates/index.html+19-3