Files
NebulaBrowser/renderer/404.html
T
2025-07-25 22:46:38 +12:00

42 lines
1.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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>Youve 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>