-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
23 lines (22 loc) · 1018 Bytes
/
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
<!-- Redirects to: ./External Merge Sort Visualizer/index.html -->
<html>
<head>
<meta http-equiv="refresh" content="0"/>
<title>Redirecting...</title>
</head>
<body>
<script type="text/javascript">
// Page is published in GitHub Pages, get the actual URL of the index.html file in "External Merge Sort Visualizer" folder
// Check if the URL contains "index.html" in it
let redirect_url = window.location.href;
if (window.location.href.includes("index.html")) {
redirect_url = window.location.href.replace("index.html", "External Merge Sort Visualizer/index.html");
} else if (window.location.href[window.location.href.length - 1] == "/") {
redirect_url = window.location.href + "External Merge Sort Visualizer/index.html";
} else {
redirect_url = window.location.href + "/External Merge Sort Visualizer/index.html";
}
// Redirect to the URL for the index.html file in "External Merge Sort Visualizer" folder
window.location.href = redirect_url;
</script>
</body>