-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (25 loc) · 965 Bytes
/
index.html
File metadata and controls
28 lines (25 loc) · 965 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Getting Started</title>
<script>
(function() { //subdomain redirect wizard
var matchedSub = /(.*)\.cm\-ht\.ml/.exec(window.location.hostname);
if ((matchedSub === null || (matchedSub[1] === "www" && location.pathname.split("/").length > 1 && location.pathname.split("/")[1].length > 0)) && location.hostname !== "localhost") {
var projectName = location.pathname.split("/")[1];
var fixedLocation = location.protocol + "//" + "www." + projectName + ".cm-ht.ml" + "/" + location.pathname.split("/").filter(x => x.length > 0).slice(1).concat([""]).join("/") + (location.hash ? "#" + location.hash : "");
window.location = fixedLocation;
}
})();
</script>
</head>
<body>
<script src="bundle.js"></script>
<style>
* {
padding: 0;
margin: 0
}
</style>
</body>
</html>