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:
parent
4ba798a774
commit
002862d50c
18
404.html
Normal file
18
404.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user