| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>Loading...</title> |
| 5 |
<script> |
| 6 |
// Function to get URL parameters |
| 7 |
function getParameterByName(name, url = window.location.href) { |
| 8 |
name = name.replace(/[\[\]]/g, '\\$&'); |
| 9 |
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), |
| 10 |
results = regex.exec(url); |
| 11 |
if (!results) return null; |
| 12 |
if (!results[2]) return ''; |
| 13 |
return decodeURIComponent(results[2].replace(/\+/g, ' ')); |
| 14 |
} |
| 15 |
|
| 16 |
// Get the redirect URL from the query parameter |
| 17 |
var redirectUrl = getParameterByName('url'); |
| 18 |
|
| 19 |
// Wait 100ms and then redirect |
| 20 |
if (redirectUrl) { |
| 21 |
setTimeout(function() { |
| 22 |
window.location.href = redirectUrl; |
| 23 |
}, 100); |
| 24 |
} else { |
| 25 |
document.write('No redirect URL specified.'); |
| 26 |
} |
| 27 |
</script> |
| 28 |
</head> |
| 29 |
<body> |
| 30 |
</body> |
| 31 |
</html> |