-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy path404.html
More file actions
50 lines (46 loc) · 1.86 KB
/
Copy path404.html
File metadata and controls
50 lines (46 loc) · 1.86 KB
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
---
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'/>
<meta http-equiv='refresh' content='1; url=https://wiki.xxiivv.com/site/404.html'/>
<title>XXIIVV — Halting</title>
</head>
<body>
<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>