Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +3 -19
templates/index.html
CHANGED
|
@@ -148,8 +148,7 @@
|
|
| 148 |
}
|
| 149 |
|
| 150 |
.disabled {
|
| 151 |
-
cursor: not-allowed !important;
|
| 152 |
-
opacity: 0.6;/* Set cursor to not-allowed */
|
| 153 |
}
|
| 154 |
|
| 155 |
/* Responsive design */
|
|
@@ -216,14 +215,6 @@
|
|
| 216 |
document.getElementById('fileUploadForm').onsubmit = function() {
|
| 217 |
document.getElementById('loader').style.display = 'block';
|
| 218 |
|
| 219 |
-
// Disable the file input and the submit button
|
| 220 |
-
const fileInput = document.querySelector('input[type="file"]');
|
| 221 |
-
const submitButton = document.querySelector('input[type="submit"]');
|
| 222 |
-
fileInput.setAttribute('disabled', 'true');
|
| 223 |
-
fileInput.classList.add('disabled');
|
| 224 |
-
submitButton.setAttribute('disabled', 'true');
|
| 225 |
-
submitButton.classList.add('disabled');
|
| 226 |
-
|
| 227 |
// Disable the tab buttons and apply disabled class
|
| 228 |
const buttons = document.querySelectorAll('.tab button');
|
| 229 |
buttons.forEach(button => {
|
|
@@ -254,18 +245,11 @@
|
|
| 254 |
processingMessage.remove(); // Remove the processing message
|
| 255 |
}
|
| 256 |
|
| 257 |
-
// Re-enable
|
| 258 |
-
const fileInput = document.querySelector('input[type="file"]');
|
| 259 |
-
const submitButton = document.querySelector('input[type="submit"]');
|
| 260 |
-
fileInput.removeAttribute('disabled');
|
| 261 |
-
fileInput.classList.remove('disabled');
|
| 262 |
-
submitButton.removeAttribute('disabled');
|
| 263 |
-
submitButton.classList.remove('disabled');
|
| 264 |
-
|
| 265 |
const buttons = document.querySelectorAll('.tab button');
|
| 266 |
buttons.forEach(button => {
|
| 267 |
button.removeAttribute('disabled');
|
| 268 |
-
button.classList.remove('disabled');
|
| 269 |
});
|
| 270 |
}, 3000); // Adjust timing based on your upload duration
|
| 271 |
|
|
|
|
| 148 |
}
|
| 149 |
|
| 150 |
.disabled {
|
| 151 |
+
cursor: not-allowed !important; /* Set cursor to not-allowed */
|
|
|
|
| 152 |
}
|
| 153 |
|
| 154 |
/* Responsive design */
|
|
|
|
| 215 |
document.getElementById('fileUploadForm').onsubmit = function() {
|
| 216 |
document.getElementById('loader').style.display = 'block';
|
| 217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
// Disable the tab buttons and apply disabled class
|
| 219 |
const buttons = document.querySelectorAll('.tab button');
|
| 220 |
buttons.forEach(button => {
|
|
|
|
| 245 |
processingMessage.remove(); // Remove the processing message
|
| 246 |
}
|
| 247 |
|
| 248 |
+
// Re-enable tab buttons and remove disabled class
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 249 |
const buttons = document.querySelectorAll('.tab button');
|
| 250 |
buttons.forEach(button => {
|
| 251 |
button.removeAttribute('disabled');
|
| 252 |
+
button.classList.remove('disabled'); // Remove disabled class
|
| 253 |
});
|
| 254 |
}, 3000); // Adjust timing based on your upload duration
|
| 255 |
|