Spaces:
Paused
Paused
Update static/index.html
Browse files- static/index.html +0 -9
static/index.html
CHANGED
|
@@ -354,16 +354,7 @@ input[type="number"]#scale:focus {
|
|
| 354 |
}
|
| 355 |
});
|
| 356 |
|
| 357 |
-
// Add event listener to the "Enhance Image" button
|
| 358 |
-
document.querySelector('button[type="submit"]').addEventListener('click', function(event) {
|
| 359 |
-
const fileInput = document.getElementById('image');
|
| 360 |
|
| 361 |
-
// Check if file input is empty
|
| 362 |
-
if (!fileInput.files.length) {
|
| 363 |
-
// Display message in resultImage container
|
| 364 |
-
document.getElementById('resultImage').innerHTML = `<p style="color: white;">Please upload an image.</p>`;
|
| 365 |
-
}
|
| 366 |
-
});
|
| 367 |
|
| 368 |
|
| 369 |
</script>
|
|
|
|
| 354 |
}
|
| 355 |
});
|
| 356 |
|
|
|
|
|
|
|
|
|
|
| 357 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 358 |
|
| 359 |
|
| 360 |
</script>
|