-
Notifications
You must be signed in to change notification settings - Fork 0
/
url.html
28 lines (27 loc) · 748 Bytes
/
url.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
<html>
<head>
<title>URL - Warren Woodhouse</title>
<meta name="robots" content="noindex">
<meta name="robots" content="user-agent: disallow">
</head>
<body>
<p>This page will redirect in a few seconds.</p>
<p>
<script>
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
var redirectUrl = getParameterByName('url');
if(redirectUrl != null){
window.location.href = redirectUrl;
}
</script>
</p>
</body>
</html>