Spaces:
Runtime error
Runtime error
Upload wake_and_redirect.html
Browse files
templates/wake_and_redirect.html
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<title>Loading...</title>
|
| 5 |
+
<style>
|
| 6 |
+
body { font-family: Arial, sans-serif; text-align: center; margin-top: 100px; }
|
| 7 |
+
.spinner {
|
| 8 |
+
margin: 0 auto;
|
| 9 |
+
width: 40px; height: 40px;
|
| 10 |
+
border: 4px solid #ccc;
|
| 11 |
+
border-top-color: #333;
|
| 12 |
+
border-radius: 50%;
|
| 13 |
+
animation: spin 1s infinite linear;
|
| 14 |
+
}
|
| 15 |
+
@keyframes spin {
|
| 16 |
+
to { transform: rotate(360deg); }
|
| 17 |
+
}
|
| 18 |
+
</style>
|
| 19 |
+
</head>
|
| 20 |
+
<body>
|
| 21 |
+
<h2>Loading, please wait...</h2>
|
| 22 |
+
<div class="spinner"></div>
|
| 23 |
+
<script>
|
| 24 |
+
// Try redirecting to /view-pdf after 5 seconds to check if backend is ready
|
| 25 |
+
setTimeout(() => {
|
| 26 |
+
window.location.href = "/view-pdf" + window.location.search;
|
| 27 |
+
}, 5000);
|
| 28 |
+
</script>
|
| 29 |
+
</body>
|
| 30 |
+
</html>
|