-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path404.html
More file actions
23 lines (22 loc) · 797 Bytes
/
404.html
File metadata and controls
23 lines (22 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Singapore Laws</title> <script type="text/javascript">
// Single Page Apps for GitHub Pages
// MIT License https://github.com/rafgraph/spa-github-pages
// This script checks the URL, saves it, and redirects to index.html
var pathSegmentsToKeep = 1;
var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);
</script>
</head>
<body>
</body>
</html>