Skip to content

Commit

Permalink
Revert "html template fix (fix for endless spinner 2 attempt)"
Browse files Browse the repository at this point in the history
This reverts commit 292e911.
  • Loading branch information
papko26 committed Nov 24, 2024
1 parent 292e911 commit 42b4c36
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions app/gtw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 42b4c36

Please sign in to comment.