Spaces:
Running
Running
Как то не очень выглядит когда все на одной странице - Initial Deployment
Browse files- README.md +7 -5
- index.html +401 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: test
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: red
|
5 |
+
colorTo: red
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,401 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>AI Agent Console</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<script>
|
10 |
+
tailwind.config = {
|
11 |
+
theme: {
|
12 |
+
extend: {
|
13 |
+
colors: {
|
14 |
+
'console-bg': '#1e1e1e',
|
15 |
+
'console-text': '#d4d4d4',
|
16 |
+
'ai-purple': '#8b5cf6',
|
17 |
+
'user-blue': '#3b82f6'
|
18 |
+
}
|
19 |
+
}
|
20 |
+
}
|
21 |
+
}
|
22 |
+
</script>
|
23 |
+
<style>
|
24 |
+
.console-scrollbar::-webkit-scrollbar {
|
25 |
+
width: 8px;
|
26 |
+
}
|
27 |
+
|
28 |
+
.console-scrollbar::-webkit-scrollbar-track {
|
29 |
+
background: #2d2d2d;
|
30 |
+
}
|
31 |
+
|
32 |
+
.console-scrollbar::-webkit-scrollbar-thumb {
|
33 |
+
background: #555;
|
34 |
+
border-radius: 4px;
|
35 |
+
}
|
36 |
+
|
37 |
+
.console-scrollbar::-webkit-scrollbar-thumb:hover {
|
38 |
+
background: #888;
|
39 |
+
}
|
40 |
+
|
41 |
+
.chat-bubble-ai {
|
42 |
+
background-color: #8b5cf6;
|
43 |
+
color: white;
|
44 |
+
border-radius: 18px 18px 18px 4px;
|
45 |
+
}
|
46 |
+
|
47 |
+
.chat-bubble-user {
|
48 |
+
background-color: #3b82f6;
|
49 |
+
color: white;
|
50 |
+
border-radius: 18px 18px 4px 18px;
|
51 |
+
}
|
52 |
+
|
53 |
+
.terminal-cursor {
|
54 |
+
display: inline-block;
|
55 |
+
width: 8px;
|
56 |
+
height: 18px;
|
57 |
+
background-color: #d4d4d4;
|
58 |
+
animation: blink 1s infinite;
|
59 |
+
}
|
60 |
+
|
61 |
+
@keyframes blink {
|
62 |
+
0%, 100% { opacity: 1; }
|
63 |
+
50% { opacity: 0; }
|
64 |
+
}
|
65 |
+
|
66 |
+
.task-item {
|
67 |
+
transition: all 0.3s ease;
|
68 |
+
}
|
69 |
+
|
70 |
+
.task-item:hover {
|
71 |
+
transform: translateY(-2px);
|
72 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
73 |
+
}
|
74 |
+
|
75 |
+
.glow {
|
76 |
+
box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
|
77 |
+
}
|
78 |
+
</style>
|
79 |
+
</head>
|
80 |
+
<body class="bg-gray-900 text-gray-100 min-h-screen">
|
81 |
+
<!-- Header -->
|
82 |
+
<header class="bg-gray-800 border-b border-gray-700">
|
83 |
+
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
84 |
+
<div class="flex items-center space-x-3">
|
85 |
+
<div class="bg-gradient-to-r from-purple-600 to-indigo-600 w-10 h-10 rounded-lg flex items-center justify-center">
|
86 |
+
<i class="fas fa-robot text-xl"></i>
|
87 |
+
</div>
|
88 |
+
<h1 class="text-2xl font-bold">AI Agent Console</h1>
|
89 |
+
</div>
|
90 |
+
<div class="flex items-center space-x-4">
|
91 |
+
<button class="bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-lg transition">
|
92 |
+
<i class="fas fa-cog mr-2"></i>Settings
|
93 |
+
</button>
|
94 |
+
<div class="relative">
|
95 |
+
<div class="w-10 h-10 rounded-full bg-gradient-to-r from-purple-500 to-pink-500 flex items-center justify-center">
|
96 |
+
<span class="font-bold">U</span>
|
97 |
+
</div>
|
98 |
+
<span class="absolute top-0 right-0 w-3 h-3 bg-green-500 rounded-full border-2 border-gray-800"></span>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
</div>
|
102 |
+
</header>
|
103 |
+
|
104 |
+
<!-- Main Content -->
|
105 |
+
<main class="container mx-auto px-4 py-8">
|
106 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
107 |
+
<!-- Left Column: Chat and Tasks -->
|
108 |
+
<div class="space-y-8">
|
109 |
+
<!-- Task Creation -->
|
110 |
+
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
|
111 |
+
<h2 class="text-xl font-bold mb-4 flex items-center">
|
112 |
+
<i class="fas fa-tasks mr-2 text-indigo-400"></i> Task Management
|
113 |
+
</h2>
|
114 |
+
<div class="flex mb-4">
|
115 |
+
<input type="text" id="taskInput" placeholder="Enter new task..." class="flex-grow bg-gray-700 text-white rounded-l-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
116 |
+
<button id="addTaskBtn" class="bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-r-lg transition">
|
117 |
+
<i class="fas fa-plus"></i>
|
118 |
+
</button>
|
119 |
+
</div>
|
120 |
+
|
121 |
+
<div class="mt-6">
|
122 |
+
<h3 class="font-semibold mb-2 text-gray-300">Active Tasks</h3>
|
123 |
+
<div id="taskList" class="space-y-3">
|
124 |
+
<!-- Tasks will be added here -->
|
125 |
+
</div>
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
|
129 |
+
<!-- Chat Interface -->
|
130 |
+
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
|
131 |
+
<h2 class="text-xl font-bold mb-4 flex items-center">
|
132 |
+
<i class="fas fa-comments mr-2 text-indigo-400"></i> AI Communication
|
133 |
+
</h2>
|
134 |
+
|
135 |
+
<div id="chatContainer" class="h-80 overflow-y-auto mb-4 bg-gray-700 rounded-lg p-4 console-scrollbar">
|
136 |
+
<div class="chat-message mb-4">
|
137 |
+
<div class="flex items-start mb-2">
|
138 |
+
<div class="bg-gradient-to-r from-purple-500 to-indigo-500 w-8 h-8 rounded-full flex items-center justify-center mr-3">
|
139 |
+
<i class="fas fa-robot text-sm"></i>
|
140 |
+
</div>
|
141 |
+
<div class="chat-bubble-ai px-4 py-2 max-w-[80%]">
|
142 |
+
Hello! I'm your AI assistant. How can I help you today?
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
<div class="text-xs text-gray-400 ml-11">Just now</div>
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
|
149 |
+
<div class="flex">
|
150 |
+
<input type="text" id="messageInput" placeholder="Type your message..." class="flex-grow bg-gray-700 text-white rounded-l-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
151 |
+
<button id="sendMessageBtn" class="bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-r-lg transition">
|
152 |
+
<i class="fas fa-paper-plane"></i>
|
153 |
+
</button>
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
|
158 |
+
<!-- Right Column: Console -->
|
159 |
+
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
|
160 |
+
<div class="flex justify-between items-center mb-4">
|
161 |
+
<h2 class="text-xl font-bold flex items-center">
|
162 |
+
<i class="fas fa-terminal mr-2 text-indigo-400"></i> Agent Console
|
163 |
+
</h2>
|
164 |
+
<div class="flex space-x-2">
|
165 |
+
<button class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded-lg text-sm">
|
166 |
+
<i class="fas fa-sync-alt mr-1"></i> Refresh
|
167 |
+
</button>
|
168 |
+
<button class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded-lg text-sm">
|
169 |
+
<i class="fas fa-trash mr-1"></i> Clear
|
170 |
+
</button>
|
171 |
+
</div>
|
172 |
+
</div>
|
173 |
+
|
174 |
+
<div id="consoleOutput" class="bg-console-bg text-console-text font-mono text-sm p-4 rounded-lg h-[calc(100%-3rem)] overflow-y-auto console-scrollbar">
|
175 |
+
<div class="mb-2">
|
176 |
+
<span class="text-green-400">user@ai-console:~$</span>
|
177 |
+
<span>agent --start</span>
|
178 |
+
</div>
|
179 |
+
<div class="mb-2 text-green-500">AI Agent initialized successfully</div>
|
180 |
+
<div class="mb-2">
|
181 |
+
<span class="text-green-400">user@ai-console:~$</span>
|
182 |
+
<span>agent --status</span>
|
183 |
+
</div>
|
184 |
+
<div class="mb-2">
|
185 |
+
Agent Status: <span class="text-green-500">Active</span><br>
|
186 |
+
Memory Usage: <span class="text-yellow-300">42%</span><br>
|
187 |
+
Tasks in Queue: <span class="text-blue-300">3</span>
|
188 |
+
</div>
|
189 |
+
<div class="mb-2">
|
190 |
+
<span class="text-green-400">user@ai-console:~$</span>
|
191 |
+
<span>agent --task "Analyze user preferences"</span>
|
192 |
+
</div>
|
193 |
+
<div class="mb-2">
|
194 |
+
<span class="text-cyan-300">[TASK]</span> Starting analysis of user preferences...<br>
|
195 |
+
<span class="text-cyan-300">[TASK]</span> Loading user profile data...<br>
|
196 |
+
<span class="text-green-500">[SUCCESS]</span> Profile loaded successfully<br>
|
197 |
+
<span class="text-cyan-300">[TASK]</span> Processing historical interactions...<br>
|
198 |
+
<span class="text-yellow-300">[WARNING]</span> Incomplete data in interaction history<br>
|
199 |
+
<span class="text-cyan-300">[TASK]</span> Generating preference model...<br>
|
200 |
+
<span class="text-green-500">[SUCCESS]</span> Preference model created<br>
|
201 |
+
<span class="text-green-500">[TASK COMPLETE]</span> Analysis finished in 1.42s
|
202 |
+
</div>
|
203 |
+
<div class="mb-2">
|
204 |
+
<span class="text-green-400">user@ai-console:~$</span>
|
205 |
+
<span class="terminal-cursor"></span>
|
206 |
+
</div>
|
207 |
+
</div>
|
208 |
+
</div>
|
209 |
+
</div>
|
210 |
+
</main>
|
211 |
+
|
212 |
+
<!-- Footer -->
|
213 |
+
<footer class="bg-gray-800 border-t border-gray-700 mt-12 py-6">
|
214 |
+
<div class="container mx-auto px-4 text-center text-gray-400">
|
215 |
+
<div class="flex justify-center space-x-6 mb-4">
|
216 |
+
<a href="#" class="hover:text-indigo-400 transition"><i class="fab fa-github"></i></a>
|
217 |
+
<a href="#" class="hover:text-indigo-400 transition"><i class="fab fa-discord"></i></a>
|
218 |
+
<a href="#" class="hover:text-indigo-400 transition"><i class="fab fa-twitter"></i></a>
|
219 |
+
<a href="#" class="hover:text-indigo-400 transition"><i class="fas fa-book"></i></a>
|
220 |
+
</div>
|
221 |
+
<p>AI Agent Console v1.0 © 2023 | Real-time AI communication platform</p>
|
222 |
+
</div>
|
223 |
+
</footer>
|
224 |
+
|
225 |
+
<script>
|
226 |
+
// Task management
|
227 |
+
const taskInput = document.getElementById('taskInput');
|
228 |
+
const addTaskBtn = document.getElementById('addTaskBtn');
|
229 |
+
const taskList = document.getElementById('taskList');
|
230 |
+
|
231 |
+
addTaskBtn.addEventListener('click', addTask);
|
232 |
+
taskInput.addEventListener('keypress', (e) => {
|
233 |
+
if (e.key === 'Enter') addTask();
|
234 |
+
});
|
235 |
+
|
236 |
+
function addTask() {
|
237 |
+
const taskText = taskInput.value.trim();
|
238 |
+
if (taskText) {
|
239 |
+
const taskId = Date.now();
|
240 |
+
const taskItem = document.createElement('div');
|
241 |
+
taskItem.className = 'task-item bg-gray-700 rounded-lg p-3 flex items-center justify-between';
|
242 |
+
taskItem.innerHTML = `
|
243 |
+
<div class="flex items-center">
|
244 |
+
<div class="w-4 h-4 rounded-full border-2 border-indigo-400 mr-3"></div>
|
245 |
+
<span>${taskText}</span>
|
246 |
+
</div>
|
247 |
+
<div class="flex space-x-2">
|
248 |
+
<button class="text-gray-400 hover:text-green-400 transition" onclick="completeTask(${taskId})">
|
249 |
+
<i class="fas fa-check"></i>
|
250 |
+
</button>
|
251 |
+
<button class="text-gray-400 hover:text-red-400 transition" onclick="deleteTask(${taskId})">
|
252 |
+
<i class="fas fa-trash"></i>
|
253 |
+
</button>
|
254 |
+
</div>
|
255 |
+
`;
|
256 |
+
taskList.appendChild(taskItem);
|
257 |
+
taskInput.value = '';
|
258 |
+
|
259 |
+
// Simulate AI response to new task
|
260 |
+
simulateAIResponse(`Task added: "${taskText}"`);
|
261 |
+
addConsoleOutput(`agent --task "${taskText}"`);
|
262 |
+
}
|
263 |
+
}
|
264 |
+
|
265 |
+
function completeTask(id) {
|
266 |
+
const task = document.querySelector(`.task-item`);
|
267 |
+
if (task) {
|
268 |
+
task.classList.add('opacity-50');
|
269 |
+
task.querySelector('span').classList.add('line-through', 'text-gray-500');
|
270 |
+
simulateAIResponse('Task marked as completed!');
|
271 |
+
}
|
272 |
+
}
|
273 |
+
|
274 |
+
function deleteTask(id) {
|
275 |
+
const task = document.querySelector(`.task-item`);
|
276 |
+
if (task) {
|
277 |
+
task.classList.add('opacity-0', 'h-0', 'py-0', 'mb-0');
|
278 |
+
setTimeout(() => task.remove(), 300);
|
279 |
+
simulateAIResponse('Task removed successfully.');
|
280 |
+
}
|
281 |
+
}
|
282 |
+
|
283 |
+
// Chat functionality
|
284 |
+
const messageInput = document.getElementById('messageInput');
|
285 |
+
const sendMessageBtn = document.getElementById('sendMessageBtn');
|
286 |
+
const chatContainer = document.getElementById('chatContainer');
|
287 |
+
|
288 |
+
sendMessageBtn.addEventListener('click', sendMessage);
|
289 |
+
messageInput.addEventListener('keypress', (e) => {
|
290 |
+
if (e.key === 'Enter') sendMessage();
|
291 |
+
});
|
292 |
+
|
293 |
+
function sendMessage() {
|
294 |
+
const message = messageInput.value.trim();
|
295 |
+
if (message) {
|
296 |
+
addMessage(message, 'user');
|
297 |
+
messageInput.value = '';
|
298 |
+
|
299 |
+
// Simulate AI response after a short delay
|
300 |
+
setTimeout(() => {
|
301 |
+
simulateAIResponse(getAIResponse(message));
|
302 |
+
}, 1000);
|
303 |
+
}
|
304 |
+
}
|
305 |
+
|
306 |
+
function addMessage(message, sender) {
|
307 |
+
const messageElement = document.createElement('div');
|
308 |
+
messageElement.className = 'chat-message mb-4';
|
309 |
+
|
310 |
+
const timestamp = new Date().toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
|
311 |
+
|
312 |
+
messageElement.innerHTML = `
|
313 |
+
<div class="flex items-start mb-2 ${sender === 'ai' ? '' : 'justify-end'}">
|
314 |
+
${sender === 'ai' ?
|
315 |
+
`<div class="bg-gradient-to-r from-purple-500 to-indigo-500 w-8 h-8 rounded-full flex items-center justify-center mr-3">
|
316 |
+
<i class="fas fa-robot text-sm"></i>
|
317 |
+
</div>` : ''
|
318 |
+
}
|
319 |
+
<div class="${sender === 'ai' ? 'chat-bubble-ai' : 'chat-bubble-user'} px-4 py-2 max-w-[80%]">
|
320 |
+
${message}
|
321 |
+
</div>
|
322 |
+
${sender === 'user' ?
|
323 |
+
`<div class="bg-gradient-to-r from-blue-500 to-cyan-500 w-8 h-8 rounded-full flex items-center justify-center ml-3">
|
324 |
+
<i class="fas fa-user text-sm"></i>
|
325 |
+
</div>` : ''
|
326 |
+
}
|
327 |
+
</div>
|
328 |
+
<div class="text-xs text-gray-400 ${sender === 'ai' ? 'ml-11' : 'text-right mr-11'}">${timestamp}</div>
|
329 |
+
`;
|
330 |
+
|
331 |
+
chatContainer.appendChild(messageElement);
|
332 |
+
chatContainer.scrollTop = chatContainer.scrollHeight;
|
333 |
+
}
|
334 |
+
|
335 |
+
function simulateAIResponse(message) {
|
336 |
+
addMessage(message, 'ai');
|
337 |
+
addConsoleOutput(`agent --response "${message}"`);
|
338 |
+
}
|
339 |
+
|
340 |
+
function getAIResponse(userMessage) {
|
341 |
+
const responses = [
|
342 |
+
"I've processed your request and the results are ready.",
|
343 |
+
"I understand your request. Working on it now...",
|
344 |
+
"That's an interesting task. I'll start working on it immediately.",
|
345 |
+
"I've added this to my task queue. Estimated completion in 2 minutes.",
|
346 |
+
"Based on your request, I recommend considering these additional factors...",
|
347 |
+
"I've completed the task. Would you like me to provide more details?",
|
348 |
+
"I've detected a potential optimization for this task. Should I implement it?",
|
349 |
+
"Task completed successfully. Let me know if you need anything else!"
|
350 |
+
];
|
351 |
+
return responses[Math.floor(Math.random() * responses.length)];
|
352 |
+
}
|
353 |
+
|
354 |
+
// Console functionality
|
355 |
+
const consoleOutput = document.getElementById('consoleOutput');
|
356 |
+
|
357 |
+
function addConsoleOutput(command) {
|
358 |
+
const commandElement = document.createElement('div');
|
359 |
+
commandElement.className = 'mb-2';
|
360 |
+
|
361 |
+
const prompt = `<span class="text-green-400">user@ai-console:~$</span>`;
|
362 |
+
const output = `
|
363 |
+
<div class="mt-1 ml-4">
|
364 |
+
<span class="text-cyan-300">[TASK]</span> Processing command: ${command}<br>
|
365 |
+
<span class="text-green-500">[SUCCESS]</span> Command executed successfully
|
366 |
+
</div>
|
367 |
+
`;
|
368 |
+
|
369 |
+
commandElement.innerHTML = `${prompt} <span>${command}</span>${output}`;
|
370 |
+
consoleOutput.appendChild(commandElement);
|
371 |
+
|
372 |
+
// Add new prompt line
|
373 |
+
const newPrompt = document.createElement('div');
|
374 |
+
newPrompt.className = 'mb-2';
|
375 |
+
newPrompt.innerHTML = `<span class="text-green-400">user@ai-console:~$</span> <span class="terminal-cursor"></span>`;
|
376 |
+
consoleOutput.appendChild(newPrompt);
|
377 |
+
|
378 |
+
consoleOutput.scrollTop = consoleOutput.scrollHeight;
|
379 |
+
}
|
380 |
+
|
381 |
+
// Simulate initial console activity
|
382 |
+
setTimeout(() => {
|
383 |
+
addConsoleOutput('agent --monitor');
|
384 |
+
setTimeout(() => {
|
385 |
+
addConsoleOutput('agent --optimize');
|
386 |
+
}, 3000);
|
387 |
+
}, 2000);
|
388 |
+
|
389 |
+
// Simulate periodic AI activity
|
390 |
+
setInterval(() => {
|
391 |
+
const activities = [
|
392 |
+
'agent --update',
|
393 |
+
'agent --check-performance',
|
394 |
+
'agent --clean-cache',
|
395 |
+
'agent --report'
|
396 |
+
];
|
397 |
+
addConsoleOutput(activities[Math.floor(Math.random() * activities.length)]);
|
398 |
+
}, 15000);
|
399 |
+
</script>
|
400 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=davydluben/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
401 |
+
</html>
|