-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
23 lines (20 loc) · 842 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
<html>
<head>
<title>
Redirecting...</title></head>
<script language="JavaScript">
function redirectHttpToHttps() {
//var httpURL= window.location.hostname + window.location.pathname + window.location.search;
//if(window.locaion.hostname == "rainroot.org"()dd
//alert(window.location.hostname);
var timeStampInMs = window.performance && window.performance.now && window.performance.timing && window.performance.timing.navigationStart ? window.performance.now() + window.performance.timing.navigationStart : Date.now();
var httpURL= window.location.hostname + window.location.pathname + window.location.search;
//var httpsURL= "https://rainroot.github.io" + httpURL;
var httpsURL= "https://rainroot.github.io/main_index.html?timeStampInMs";
window.location.href = httpsURL;
}
redirectHttpToHttps();
</script>
<body>
</body>
</html>