Refactor 404.html structure and update AI chat widget messages in ai-chat.js and added ai to the home page 🥳🥳🥳

This commit is contained in:
2025-10-08 03:11:05 +00:00
committed by GitHub
parent 19bb73a8ee
commit f533052603
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -115,7 +115,8 @@
}
</style>
</head>
<body><script src="https://js.puter.com/v2/"></script>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
let aiChatWindow = null;
let chatVisible = false;
+2 -2
View File
@@ -32,7 +32,7 @@ async function toggleAIChat() {
`;
aiChatWindow.innerHTML = `
<div style="background:#222;padding:10px;text-align:center;font-weight:bold;">
🎮 Fun Miles AI Chat
🎮 AI Chat to help with games
</div>
<div id="chatLog" style="flex:1;overflow-y:auto;padding:10px;"></div>
<div style="display:flex;border-top:1px solid #333;">
@@ -50,7 +50,7 @@ async function toggleAIChat() {
// 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.
<b>AI:</b> 👋 Hi! I'm the <b>Moon Gaming AI</b> — here to answer your <b>gaming questions</b>, chat about mods, or just have fun.
Ask me anything!
</div>
`;
+2
View File
@@ -8,6 +8,8 @@
<link rel="stylesheet" href="/index.css">
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Press+Start+2P&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer">
<script src="./ai-chat.js"></script>
<script src="https://js.puter.com/v2/"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>
<style>
:root {