42 lines
1.0 KiB
HTML
42 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>404 - Lost in the Void</title>
|
||
<link rel="stylesheet" href="404.css">
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<div class="error-icon">🪐</div>
|
||
<h1>404 - Page Not Found</h1>
|
||
<p>You’ve warped into an unknown sector.</p>
|
||
<p class="url-line">Tried to reach: <span id="attempted-url"></span></p>
|
||
|
||
<div class="actions">
|
||
<button onclick="goHome()">Go to Home</button>
|
||
<button onclick="goSettings()">Open Settings</button>
|
||
</div>
|
||
</div>
|
||
|
||
<script>
|
||
function getQueryParam(name) {
|
||
const params = new URLSearchParams(window.location.search);
|
||
return params.get(name);
|
||
}
|
||
|
||
const attemptedUrl = getQueryParam("url");
|
||
if (attemptedUrl) {
|
||
document.getElementById("attempted-url").textContent = decodeURIComponent(attemptedUrl);
|
||
}
|
||
|
||
function goHome() {
|
||
window.location.href = "https://google.com";
|
||
}
|
||
|
||
function goSettings() {
|
||
window.location.href = "settings.html";
|
||
}
|
||
</script>
|
||
</body>
|
||
</html>
|