~exprez135/mountaen

mountaen/404.html -rw-r--r-- 1.9 KiB
fe9c8109Nate Ijams Update Arvelie to install properly. 5 months ago
                                                                                
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'>
  <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'>
  <noscript>
    <meta http-equiv='refresh' content='0; url=site/index.html' />
  </noscript>
  <title>XXIIVV — Halting</title>
</head>
<body>
  <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>