84 lines
2.3 KiB
HTML
84 lines
2.3 KiB
HTML
<div id="fps-counter"></div>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>404 Not Found</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #f8f9fa;
|
|
color: #343a40;
|
|
text-align: center;
|
|
padding: 50px;
|
|
}
|
|
h1 {
|
|
font-size: 60px;
|
|
color: #dc3545;
|
|
}
|
|
p {
|
|
font-size: 20px;
|
|
}
|
|
a {
|
|
text-decoration: none;
|
|
color: #007bff;
|
|
font-weight: bold;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
img {
|
|
max-width: 300px;
|
|
margin-top: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>404 Not Found</h1>
|
|
<p>Oops! The page you are looking for does not exist.</p>
|
|
<p>It might have been removed, had its name changed, or is temporarily unavailable.</p>
|
|
|
|
<p>Please <a href="/">return to the homepage</a> or use the navigation menu to find what you need.</p>
|
|
|
|
<img src="404.gif" alt="404">
|
|
<p>If you believe this is an error, please <a href="/Contact.html">contact us</a>.</p>
|
|
</body>
|
|
</html>
|
|
<style>
|
|
#fps-counter {
|
|
position: fixed;
|
|
top: 10px;
|
|
right: 10px;
|
|
font-size: 12px;
|
|
color: white;
|
|
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
z-index: 1000; /* Ensure it stays on top */
|
|
}
|
|
</style>
|
|
<script>
|
|
const fpsCounter = document.getElementById("fps-counter"); // Moved this to the correct place
|
|
|
|
function calculateFPS() {
|
|
let lastFrameTime = performance.now();
|
|
let frames = 0;
|
|
|
|
function frameLoop() {
|
|
const now = performance.now();
|
|
frames++;
|
|
|
|
if (now - lastFrameTime >= 1000) {
|
|
const fps = Math.round(frames / ((now - lastFrameTime) / 1000));
|
|
fpsCounter.textContent = `FPS: ${fps}`;
|
|
frames = 0;
|
|
lastFrameTime = now;
|
|
}
|
|
requestAnimationFrame(frameLoop);
|
|
}
|
|
frameLoop();
|
|
}
|
|
|
|
calculateFPS(); // Ensure the FPS calculation starts
|
|
</script> |