-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "html template fix (fix for endless spinner 2 attempt)"
This reverts commit 292e911.
- Loading branch information
Showing
1 changed file
with
6 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,19 +227,12 @@ def parse_arguments(): | |
<!-- Optional: Include Bootstrap JS --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
<script> | ||
// Show spinner when navigation starts | ||
function showSpinner(event) { | ||
event.preventDefault(); // Prevent the default link action | ||
const spinner = document.getElementById('spinner'); | ||
spinner.style.display = 'flex'; | ||
// Simulate navigation delay (replace with actual navigation logic if needed) | ||
setTimeout(() => { | ||
window.location.href = '/'; // Redirect to root after delay | ||
}, 2000); // Adjust the delay as needed | ||
} | ||
</script> | ||
<script> | ||
// Function to show the spinner | ||
function showSpinner() { | ||
document.querySelector('.spinner-overlay').style.display = 'flex'; | ||
} | ||
</script> | ||
</body> | ||
</html> | ||
|