m0m0x01d 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/file.html +27 -0
- package/package.json +11 -0
package/file.html
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
+
<title>Redirecting...</title>
|
8
|
+
<script>
|
9
|
+
window.onload = function() {
|
10
|
+
// Get the 'redir' parameter from the query string
|
11
|
+
const urlParams = new URLSearchParams(window.location.search);
|
12
|
+
const redirectUrl = urlParams.get('redir');
|
13
|
+
|
14
|
+
// If 'redir' is present, redirect to the provided URL
|
15
|
+
if (redirectUrl) {
|
16
|
+
window.location.href = redirectUrl;
|
17
|
+
} else {
|
18
|
+
document.body.innerHTML = "<h1>Error: No redirection URL provided!</h1>";
|
19
|
+
}
|
20
|
+
};
|
21
|
+
</script>
|
22
|
+
</head>
|
23
|
+
<body>
|
24
|
+
<h1>Redirecting...</h1>
|
25
|
+
</body>
|
26
|
+
</html>
|
27
|
+
|