1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

feat: add 404.html

This commit is contained in:
ruanyf 2016-05-19 08:53:57 +08:00
parent 4ba798a774
commit 002862d50c

18
404.html Normal file
View File

@ -0,0 +1,18 @@
<html>
<head>
<title>ES6标准参考教程</title>
<script>
var loc = 'http://es6.ruanyifeng.com';
var regex = /http:\/\/es6\.ruanyifeng\.com\/docs\/([^#]+)#(.+)/;
var result = regex.exec(window.location);
if (result) {
window.location = loc + '/#docs/' + result[1] + '#' + result[2];
} else {
window.location = loc;
}
</script>
</head>
<body>
<p>redirecting...</p>
</body>
</html>