-
Notifications
You must be signed in to change notification settings - Fork 82
/
404.html
56 lines (52 loc) · 2.23 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
48
49
50
51
52
53
54
55
56
---
permalink: /404.html
---
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='author' content='Devine Lu Linvega'>
<meta name='description' content='The Nataniev Library.'/>
<meta name='keywords' content='Aliceffekt, Devine Lu Linvega, Lietal, Oquonie, Verreciel, Oscean, Solarpunk'/>
<meta name='license' content='name=BY-NC-SA(4.0), url=https://creativecommons.org/licenses/by-nc-sa/4.0/'/>
<meta name='thumbnail' content='https://wiki.xxiivv.com/media/services/thumbnail.jpg'/>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta property='og:title' content='XXIIVV'>
<meta property='og:description' content='The Nataniev Library.'>
<meta property='og:image' content='https://wiki.xxiivv.com/media/services/rss.jpg'>
<meta property='og:url' content='https://wiki.xxiivv.com/'>
<link rel='alternate' type='application/rss+xml' title='RSS Feed' href='https://wiki.xxiivv.com/links/rss.xml'/>
<link rel='shortcut icon' type='image/png' href='https://wiki.xxiivv.com/media/services/icon.png'>
<link rel='stylesheet' type='text/css' href='https://wiki.xxiivv.com/links/main.css'>
<link rel='me' href='https://merveilles.town/@neauoire'/>
<noscript>
<meta http-equiv='refresh' content='4; url=https://wiki.xxiivv.com/site/index.html'/>
</noscript>
<title>XXIIVV — Halting</title>
</head>
<body>
<header><a href="home.html"><img alt="XXIIVV" src="media/icon/logo.svg"></a></header>
<main>
<p style='max-width: 500px'>Your destination could not be found, please <a href='https://github.com/XXIIVV/oscean/issues/new' target='_blank'>report the broken route</a>, or visit the <a href='https://wiki.xxiivv.com/site/index.html'>index</a>.</p>
</main>
<script>
'use strict'
const parts = window.location.pathname.split("/")
const target = parts.slice(-1)
const filename = toFilename(target[0])
const filepath = `https://wiki.xxiivv.com/site/${filename}.html`
if(UrlExists(filepath)){
window.location.replace(filepath)
}
function toFilename(str){
return `${str}`.replace('#','').replace(/[\W_]+/g,"_").toLowerCase().trim()
}
function UrlExists(url) {
const http = new XMLHttpRequest()
http.open('HEAD', url, false)
http.send()
return http.status != 404
}
</script>
</body>
</html>