Update 404.html

This commit is contained in:
Jeffrey Warren
2025-09-11 02:54:59 -04:00
committed by GitHub
parent 5776b1fc88
commit 693fc09ad3

View File

@@ -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>