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> </style>
</head> </head>
<body><script src="https://js.puter.com/v2/"></script> <body>
<script src="https://js.puter.com/v2/"></script>
<script> <script>
let aiChatWindow = null; let aiChatWindow = null;
let chatVisible = false; let chatVisible = false;
+2 -2
View File
@@ -32,7 +32,7 @@ async function toggleAIChat() {
`; `;
aiChatWindow.innerHTML = ` aiChatWindow.innerHTML = `
<div style="background:#222;padding:10px;text-align:center;font-weight:bold;"> <div style="background:#222;padding:10px;text-align:center;font-weight:bold;">
🎮 Fun Miles AI Chat 🎮 AI Chat to help with games
</div> </div>
<div id="chatLog" style="flex:1;overflow-y:auto;padding:10px;"></div> <div id="chatLog" style="flex:1;overflow-y:auto;padding:10px;"></div>
<div style="display:flex;border-top:1px solid #333;"> <div style="display:flex;border-top:1px solid #333;">
@@ -50,7 +50,7 @@ async function toggleAIChat() {
// Intro message // Intro message
chatLog.innerHTML = ` chatLog.innerHTML = `
<div style="margin-bottom:10px;"> <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! Ask me anything!
</div> </div>
`; `;
+2
View File
@@ -8,6 +8,8 @@
<link rel="stylesheet" href="/index.css"> <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 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"> <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> <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>
<style> <style>
:root { :root {