Update 404.html (#1892)

This commit is contained in:
Jeffrey Warren
2025-09-11 02:47:53 -04:00
committed by GitHub
parent c2f85f3f2d
commit a97b893823

View File

@@ -26,10 +26,10 @@
window.location = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive/";
} 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];
window.location.replace("https://publiclab.github.io/Leaflet.DistortableImage/" + path);
window.location = "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);
window.location = "https://publiclab.github.io/Leaflet.DistortableImage/" + path;
}
</script>
</body>