-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
74 lines (65 loc) · 1.13 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#247420">
<title>OpenTHC</title>
<style>
body {
background: #101010;
color: #fdfdfd;
font-family:sans-serif;
margin: 0;
padding: 0;
}
a {
color: #247420;
font-weight: bold;
}
h1 {
text-align: center;
margin: 0 0 1em 0;
}
p {
text-align:center;
margin: 0 0 1em 0;
}
#img-wrap {
margin: 10vh auto;
padding: 0;
text-align:center;
}
</style>
</head>
<body>
<div id="img-wrap">
<img src="https://cdn.openthc.com/img/icon.png">
</div>
<h1>Loading...</h1>
<script>
var usp = new URLSearchParams(window.location.search);
if (usp.has('h')) {
var h = document.querySelector('h1');
if (h) {
h.innerText = usp.get('h');
}
}
if (usp.has('r')) {
var r = usp.get('r');
var f = document.querySelector('footer');
if (f) {
f.innerText = 'Sending you to: ' + r;
}
t = 1000;
if (usp.has('t')) {
t = parseInt(usp.get('t'), 10) || 0;
t = t * 1000;
}
setTimeout(function() {
window.location = r;
}, t);
}
</script>
</body>
</html>