mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
Update 404.html
This commit is contained in:
4
404.html
4
404.html
@@ -25,10 +25,10 @@
|
|||||||
if (window.location == "https://mapknitter.org/") {
|
if (window.location == "https://mapknitter.org/") {
|
||||||
window.location = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive";
|
window.location = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive";
|
||||||
} else if (window.location.href.split('/')[4] == "embed") {
|
} else if (window.location.href.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];
|
var path = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/" + document.location.href.split('.org/embed/')[1] + ".json";
|
||||||
window.location = path;
|
window.location = path;
|
||||||
} else {
|
} 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];
|
var path = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/" + document.location.href.split('.org/map/')[1] + ".json";
|
||||||
window.location = path;
|
window.location = path;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user