/
404.html
33 lines (30 loc) · 1.04 KB
/
404.html
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
29
30
31
32
33
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<script type="text/javascript">
window.onload = function()
{
var s = window.location.href.split('/'),
p = ['home','about', 'services', 'mobile', 'marketing', 'news', 'team', 'contact','page-about','page-news','page-services','page-mobile','page-marketing'];
for(var i=0; i<p.length; i++)
{
if(p[i] == s[3])
{
window.location.href = 'https://jmfcool.com/#' + s[3];
break;
}
else if(p[i] == s[4])
{
window.location.href = 'http://localhost/jmfcool.com/#' + s[4];
break;
}
else
{
window.location.href = 'https://jmfcool.com/#error';
}
}
};
</script>
</head>
<body></body>
</html>