-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (37 loc) · 1.1 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="index.css" />
<title>redirecting...</title>
</head>
<body>
<div class="redirect" style="text-align: center">
<div class="ellipsis">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</a>
</div>
<a class="message" id="message" href="https://barrettruth.com">
barrettruth.com
</a>
<script>
const DELAY_MS = 2000;
setTimeout(function () {
window.location.href = "https://barrettruth.com";
}, DELAY_MS);
// display direct link if redirect fails 1 second later
setTimeout(function () {
const redirect = document.querySelector(".redirect");
const message = document.getElementById("message");
redirect.style.display = "none";
message.style.display = "block";
}, DELAY_MS + 1000);
</script>
</body>
</html>