Skip to content

Commit 50bcbdf

Browse files
ci: added sandbox redirect to pyTermTkDocs
1 parent cd974e5 commit 50bcbdf

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

tests/sandbox/redirect.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Redirect Sandbox to docs</title>
7+
<script>
8+
// Function to redirect with all GET parameters
9+
function redirect() {
10+
const targetUrl = 'https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html';
11+
const queryString = window.location.search;
12+
window.location.href = targetUrl + queryString;
13+
}
14+
15+
// Execute the redirect function on page load
16+
window.onload = redirect;
17+
</script>
18+
</head>
19+
<body>
20+
<p>Redirecting to <a href="https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html">pyTermTk-Docs</a>...</p>
21+
</body>
22+
</html>

0 commit comments

Comments
 (0)