-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
47 lines (46 loc) · 1.14 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="/favicon.png">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<title>bodjo-pages</title>
</head>
<body>
<div id="main" class='bodjo-page'></div>
<style type="text/css">
#main {
width: 80%;
box-sizing: border-box;
margin: 2% auto;
max-width: 700px;
}
@media (max-width: 600px) {
#main {
width: 100%;
margin: 0;
padding: 2% 20px;
}
}
</style>
<script type="text/javascript">
// window.onerror = alert;
</script>
<script type="text/javascript" src='/loader.min.js'></script>
<script type="text/javascript">
function load() {
document.querySelector('#main').innerHTML = '';
let hash = window.location.hash, url = window.location.pathname;
if (hash[0] === '#')
hash = hash.substring(1);
if (url[0] === '/')
url = url.substring(1);
let id = hash ? hash : (url ? url : 'main.default.ru');
loadBodjoPage(id, '#main');
}
window.addEventListener('hashchange', load);
load();
</script>
</body>
</html>