mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
Create 404.html with redirects (#1889)
* Create 404.html with redirects * Create index.html
This commit is contained in:
36
404.html
Normal file
36
404.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta charset="utf-8"/>
|
||||
<title>MapKnitter | static archive</title>
|
||||
|
||||
<link rel="stylesheet" href="https://jywarren.github.io/markdown-pages/node_modules/spectre-markdown.css/dist/markdown.css">
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Lora">
|
||||
<link rel="stylesheet" href="https://jywarren.github.io/markdown-pages-template/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<a href="#">MapKnitter</a>
|
||||
</header>
|
||||
<div class="md-pages markdown-css responsive"></div>
|
||||
<!--
|
||||
https://mapknitter.org/map/tidwell-park
|
||||
should become:
|
||||
https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/tidwell-park.json
|
||||
and same with https://mapknitter.org/embed/tidwell-park
|
||||
-->
|
||||
<script>
|
||||
if (window.location == "https://mapknitter.org/") {
|
||||
window.location = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive/";
|
||||
} else if (window.location.split('/')[4] == "embed") {
|
||||
var path = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/" + document.location.href.split('.org/embed/')[1];
|
||||
window.location.replace("https://publiclab.github.io/Leaflet.DistortableImage/" + path);
|
||||
} else {
|
||||
var path = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/" + document.location.href.split('.org/map/')[1];
|
||||
window.location.replace("https://publiclab.github.io/Leaflet.DistortableImage/" + path);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
23
index.html
Normal file
23
index.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta charset="utf-8"/>
|
||||
<title>MapKnitter | static archive</title>
|
||||
|
||||
<link rel="stylesheet" href="https://jywarren.github.io/markdown-pages/node_modules/spectre-markdown.css/dist/markdown.css">
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Lora">
|
||||
<link rel="stylesheet" href="https://jywarren.github.io/markdown-pages-template/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<a href="#">MapKnitter</a>
|
||||
</header>
|
||||
<div class="md-pages markdown-css responsive"></div>
|
||||
Redirecting to <a href="https://publiclab.github.io/Leaflet.DistortableImage/examples/archive/">https://publiclab.github.io/Leaflet.DistortableImage/examples/archive/</a> ...
|
||||
<script>
|
||||
window.location = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive/";
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user