-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloading.html
More file actions
98 lines (86 loc) · 2.07 KB
/
loading.html
File metadata and controls
98 lines (86 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Loading Task Manager...</title>
<style>
/* Match site's color and typography */
:root {
--dark-blue: #0b3d91;
--dark-blue-hover: #072d61;
--background: #f8f9fa;
}
body {
background-color: var(--background);
font-family: Georgia, 'Times New Roman', Times, serif;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
text-align: center;
color: #333;
}
.spinner {
border: 4px solid #e0e0e0;
border-top: 4px solid var(--dark-blue);
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
margin-bottom: 1.5rem;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
h1 {
color: var(--dark-blue);
font-size: 1.8rem;
margin-bottom: 0.5rem;
}
p {
font-size: 1rem;
color: #555;
margin-bottom: 2rem;
}
footer {
position: absolute;
bottom: 1rem;
font-size: 0.9rem;
color: #666;
}
footer a {
color: var(--dark-blue);
text-decoration: none;
font-weight: bold;
}
footer a:hover {
color: var(--dark-blue-hover);
text-decoration: underline;
}
</style>
</head>
<body>
<div class="spinner"></div>
<h1>Loading Task Manager...</h1>
<p>This may take a few seconds.</p>
<footer>
By Cathy Patton (<a href="https://cvcpatton.github.io/index.html" target="_blank">Portfolio</a>)
</footer>
<script>
// Render URL
const appUrl = "https://taskmanager-f44j.onrender.com/";
async function checkApp() {
try {
const res = await fetch(appUrl, { mode: "no-cors" });
window.location.href = appUrl; // Redirect when available
} catch {
setTimeout(checkApp, 3000); // Retry every 3 seconds
}
}
checkApp();
</script>
</body>
</html>