Skip to content

Commit 002862d

Browse files
committed
feat: add 404.html
1 parent 4ba798a commit 002862d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

404.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<html>
2+
<head>
3+
<title>ES6标准参考教程</title>
4+
<script>
5+
var loc = 'http://es6.ruanyifeng.com';
6+
var regex = /http:\/\/es6\.ruanyifeng\.com\/docs\/([^#]+)#(.+)/;
7+
var result = regex.exec(window.location);
8+
if (result) {
9+
window.location = loc + '/#docs/' + result[1] + '#' + result[2];
10+
} else {
11+
window.location = loc;
12+
}
13+
</script>
14+
</head>
15+
<body>
16+
<p>redirecting...</p>
17+
</body>
18+
</html>

0 commit comments

Comments
 (0)