-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathredirect.html
36 lines (33 loc) · 1.01 KB
/
redirect.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
<!DOCTYPE html>
<head>
<title>Hello, redirecting...</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<!--
<link href="./assets/redirect.css" rel="stylesheet" />
-->
</head>
<body>
<div class="loading"><span>•</span><span>•</span><span>•</span></div>
<h2>Please close this window to continue.</h2>
<script>
// DEBUG
if(window.navigator.userAgent.match(/iPad|iPhone/)&&window.navigator.userAgent.match('Version/8.0')){
p("Wait one pesky minute: Your on iOS8 aren't you? [eye-roll] it can't automatically close tabs.");
}
else{
p("Hmmm, something is awry. It should have closed automatically by now.");
p(window.location.href, 'overflow');
}
p("~ #HelloJS ~");
function p(str,className){
var a = document.createElement('p');
if(className){
a.className=className;
}
a.appendChild(document.createTextNode(str));
document.body.appendChild(a);
}
</script>
<script src="js/hello.min.js"></script>
</body>
</html>