-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (62 loc) · 3.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavaScript Disabled</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="manifest" href="favicon/site.webmanifest">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
<style>
body{font-family:Inter,sans-serif;overflow:none;text-align:center;margin-top:40vh;height:60vh;background:#ebe7ff;background:radial-gradient(circle,rgba(235,231,255,1) 39%,rgba(224,216,255,1) 96%);background-repeat:no-repeat;background-size:cover;background-position:center}.hidden{display:none}a{text-decoration:none}a:hover{text-decoration:underline}#redir{white-space:pre-wrap; line-height: 2}
</style>
</head>
<body>
<noscript>
<h1>JavaScript Disabled</h1>
<h2>
JavaScript needs to be enabled to use this site.
<br>
Enable JavaScript, then <a href="" onclick="goBack()">Go Back</a>.
</h2>
<div class="links">
<b>How To:</b>
<a href="https://support.google.com/adsense/answer/12654" target="_blank" rel="noopener noreferrer">Chrome</a>,
<a href="https://support.mozilla.org/kb/javascript-settings-for-interactive-web-pages#w_for-advanced-users" target="_blank" rel="noopener noreferrer">Firefox</a>,
<a href="https://support.apple.com/en-gb/guide/safari/ibrw1074/mac" target="_blank" rel="noopener noreferrer">Safari</a>,
<a href="https://support.microsoft.com/en-gb/office/enable-javascript-7bb9ee74-6a9e-4dd1-babf-b0a1bb136361" target="_blank" rel="noopener noreferrer">Edge</a>
</div>
</noscript>
<div class="hidden">
<h1>JavaScript Enabled</h1>
<h2 id="redir">Redirecting <a href="" onclick="goBack()">back</a>...</h2>
</div>
<script>
let called = false;
document.querySelector(".hidden").classList.remove("hidden");
goBack();
function goBack() {
if (called) return;
called = true;
if (window.history.length > 1) {
for (var i = window.history.length - 1; i >= 0; i--) {
var state = window.history.state;
if (state && state.previousUrl) {
window.history.go(i - window.history.length + 1);
return;
}
window.history.go(-1);
}
} else { // No history to go back to
document.querySelector("#redir").innerHTML = "Sorry! I can't find a page to return you to. ( ✿˃̣̣̥᷄⌓˂̣̣̥᷅ )\nYour JavaScript is enabled, but you'll need to manually navigate to your desired page.";
const newP = document.createElement("p");
newP.innerHTML = "If you believe this is an error, please <a href='/~https://github.com/wiki-Bird/jsChecker/issues' target='_blank' rel='noopener noreferrer'>let us know</a>.";
document.querySelector("#redir").parentElement.appendChild(newP);
}
}
</script>
</body>