Files
moon-gaming/404.html
T
2025-10-07 19:42:47 -04:00

225 lines
6.2 KiB
HTML

<!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>
:root {
/* Light mode colors */
--background-light: #f8f9fa;
--text-light: #343a40;
--accent-light: #007bff;
/* Dark mode colors */
--background-dark: #121212;
--text-dark: #f8f9fa;
--accent-dark: #0d6efd;
/* Shared colors */
--error-color: #dc3545;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: var(--background-light);
color: var(--text-light);
transition: background-color 0.3s, color 0.3s;
}
body.dark-mode {
background-color: var(--background-dark);
color: var(--text-dark);
}
h1 {
font-size: 60px;
color: var(--error-color);
animation: fadeIn 1s ease-out;
}
p {
font-size: 20px;
margin: 10px 0;
animation: slideUp 1s ease-out;
}
a {
text-decoration: none;
color: var(--accent-light);
font-weight: bold;
transition: color 0.3s;
}
a:hover {
text-decoration: underline;
}
body.dark-mode a {
color: var(--accent-dark);
}
img {
max-width: 300px;
margin-top: 20px;
animation: bounce 2s infinite;
}
#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 */
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideUp {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
</style>
</head>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
let aiChatWindow = null;
let chatVisible = false;
// Detect Ctrl+T
document.addEventListener("keydown", (e) => {
if (e.ctrlKey && e.key.toLowerCase() === "t") {
e.preventDefault();
toggleAIChat();
}
});
async function toggleAIChat() {
if (!chatVisible) {
aiChatWindow = document.createElement("div");
aiChatWindow.style = `
position: fixed;
bottom: 20px;
right: 20px;
width: 400px;
height: 500px;
background: #1e1e1e;
color: #f0f0f0;
border: 2px solid #444;
border-radius: 12px;
box-shadow: 0 0 20px rgba(0,0,0,0.5);
z-index: 9999;
display: flex;
flex-direction: column;
overflow: hidden;
font-family: system-ui, sans-serif;
`;
aiChatWindow.innerHTML = `
<div style="background:#222;padding:10px;text-align:center;font-weight:bold;">
🎮 Fun Miles AI Chat
</div>
<div id="chatLog" style="flex:1;overflow-y:auto;padding:10px;"></div>
<div style="display:flex;border-top:1px solid #333;">
<input id="chatInput" type="text" placeholder="Type a message..."
style="flex:1;padding:10px;background:#2a2a2a;color:#fff;border:none;outline:none;">
<button id="chatSend" style="padding:10px 15px;background:#444;color:#fff;border:none;">Send</button>
</div>
`;
document.body.appendChild(aiChatWindow);
const chatLog = aiChatWindow.querySelector("#chatLog");
const chatInput = aiChatWindow.querySelector("#chatInput");
const chatSend = aiChatWindow.querySelector("#chatSend");
// Custom intro message
chatLog.innerHTML = `
<div style="margin-bottom:10px;">
<b>AI:</b> 👋 Hi! I'm the <b>Fun Miles AI</b> — here to answer your <b>gaming questions</b>, chat about mods, or just have fun.
Ask me anything!
</div>
`;
// Send message
chatSend.onclick = async () => {
const msg = chatInput.value.trim();
if (!msg) return;
chatLog.innerHTML += `<div><b>You:</b> ${msg}</div>`;
chatInput.value = "";
try {
const response = await puter.ai.chat(msg);
chatLog.innerHTML += `<div><b>AI:</b> ${response}</div>`;
chatLog.scrollTop = chatLog.scrollHeight;
} catch (err) {
chatLog.innerHTML += `<div style="color:red;"><b>Error:</b> ${err.message}</div>`;
}
};
// Send on Enter
chatInput.addEventListener("keydown", (e) => {
if (e.key === "Enter") chatSend.click();
});
chatVisible = true;
} else {
aiChatWindow.remove();
chatVisible = false;
}
}
</script>
<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="/allimages/404.gif" alt="404">
<p>If you believe this is an error, please <a href="/Contact.html">contact us</a>.</p>
<script>
// Apply dark mode based on localStorage
function applyDarkMode() {
const isDarkMode = localStorage.getItem('darkMode') === 'true';
document.body.classList.toggle('dark-mode', isDarkMode);
}
// Initialize dark mode on page load
window.onload = applyDarkMode;
</script>
</body>
</html>