Maximelat commited on
Commit
c6cfe5a
·
verified ·
1 Parent(s): c15476c

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +548 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Test
3
- emoji: 🏃
4
- colorFrom: purple
5
- colorTo: blue
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: gray
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,548 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>MCP CyberChat Interface</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
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto+Mono:wght@300;400;600&display=swap');
11
+
12
+ :root {
13
+ --primary: #00ff9d;
14
+ --secondary: #00b4ff;
15
+ --dark: #0a0a0a;
16
+ --darker: #050505;
17
+ --light: #f0f0f0;
18
+ --neon-glow: 0 0 10px rgba(0, 255, 157, 0.7);
19
+ }
20
+
21
+ body {
22
+ font-family: 'Roboto Mono', monospace;
23
+ background-color: var(--dark);
24
+ color: var(--light);
25
+ margin: 0;
26
+ padding: 0;
27
+ min-height: 100vh;
28
+ overflow-x: hidden;
29
+ }
30
+
31
+ .cyber-font {
32
+ font-family: 'Orbitron', sans-serif;
33
+ }
34
+
35
+ .cyber-border {
36
+ border: 1px solid var(--primary);
37
+ box-shadow: var(--neon-glow);
38
+ }
39
+
40
+ .cyber-btn {
41
+ background: linear-gradient(45deg, var(--primary), var(--secondary));
42
+ color: var(--dark);
43
+ border: none;
44
+ transition: all 0.3s ease;
45
+ }
46
+
47
+ .cyber-btn:hover {
48
+ transform: translateY(-2px);
49
+ box-shadow: 0 0 15px rgba(0, 255, 157, 0.9);
50
+ }
51
+
52
+ .cyber-input {
53
+ background-color: rgba(15, 15, 15, 0.8);
54
+ border: 1px solid var(--secondary);
55
+ color: var(--light);
56
+ transition: all 0.3s ease;
57
+ }
58
+
59
+ .cyber-input:focus {
60
+ outline: none;
61
+ border-color: var(--primary);
62
+ box-shadow: var(--neon-glow);
63
+ }
64
+
65
+ .pulse {
66
+ animation: pulse 2s infinite;
67
+ }
68
+
69
+ @keyframes pulse {
70
+ 0% {
71
+ box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7);
72
+ }
73
+ 70% {
74
+ box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
75
+ }
76
+ 100% {
77
+ box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
78
+ }
79
+ }
80
+
81
+ .chat-container {
82
+ height: 65vh;
83
+ background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(5, 5, 5, 0.95));
84
+ backdrop-filter: blur(5px);
85
+ }
86
+
87
+ .message {
88
+ max-width: 80%;
89
+ border-radius: 8px;
90
+ padding: 12px 16px;
91
+ margin-bottom: 12px;
92
+ position: relative;
93
+ word-wrap: break-word;
94
+ }
95
+
96
+ .user-message {
97
+ background: linear-gradient(45deg, rgba(0, 180, 255, 0.2), rgba(0, 255, 157, 0.2));
98
+ border-left: 3px solid var(--secondary);
99
+ margin-left: auto;
100
+ }
101
+
102
+ .bot-message {
103
+ background: linear-gradient(45deg, rgba(0, 255, 157, 0.1), rgba(0, 180, 255, 0.1));
104
+ border-right: 3px solid var(--primary);
105
+ margin-right: auto;
106
+ }
107
+
108
+ .typing-indicator::after {
109
+ content: '...';
110
+ display: inline-block;
111
+ animation: typing 1.5s infinite;
112
+ }
113
+
114
+ @keyframes typing {
115
+ 0% { content: '.'; }
116
+ 33% { content: '..'; }
117
+ 66% { content: '...'; }
118
+ }
119
+
120
+ .status-connected {
121
+ background-color: rgba(0, 255, 157, 0.2);
122
+ color: var(--primary);
123
+ }
124
+
125
+ .status-disconnected {
126
+ background-color: rgba(255, 0, 0, 0.2);
127
+ color: #ff0000;
128
+ }
129
+
130
+ .glitch {
131
+ position: relative;
132
+ }
133
+
134
+ .glitch::before, .glitch::after {
135
+ content: attr(data-text);
136
+ position: absolute;
137
+ top: 0;
138
+ left: 0;
139
+ width: 100%;
140
+ height: 100%;
141
+ background: var(--dark);
142
+ }
143
+
144
+ .glitch::before {
145
+ left: 2px;
146
+ text-shadow: -2px 0 #ff00c1;
147
+ clip: rect(24px, 550px, 90px, 0);
148
+ animation: glitch-anim-1 2s infinite linear alternate-reverse;
149
+ }
150
+
151
+ .glitch::after {
152
+ left: -2px;
153
+ text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
154
+ clip: rect(85px, 550px, 140px, 0);
155
+ animation: glitch-anim-2 2s infinite linear alternate-reverse;
156
+ }
157
+
158
+ @keyframes glitch-anim-1 {
159
+ 0% { clip: rect(32px, 9999px, 72px, 0); }
160
+ 20% { clip: rect(48px, 9999px, 115px, 0); }
161
+ 40% { clip: rect(15px, 9999px, 95px, 0); }
162
+ 60% { clip: rect(78px, 9999px, 130px, 0); }
163
+ 80% { clip: rect(63px, 9999px, 92px, 0); }
164
+ 100% { clip: rect(39px, 9999px, 108px, 0); }
165
+ }
166
+
167
+ @keyframes glitch-anim-2 {
168
+ 0% { clip: rect(102px, 9999px, 76px, 0); }
169
+ 20% { clip: rect(145px, 9999px, 53px, 0); }
170
+ 40% { clip: rect(120px, 9999px, 24px, 0); }
171
+ 60% { clip: rect(86px, 9999px, 15px, 0); }
172
+ 80% { clip: rect(67px, 9999px, 32px, 0); }
173
+ 100% { clip: rect(91px, 9999px, 58px, 0); }
174
+ }
175
+
176
+ .scanline {
177
+ position: absolute;
178
+ top: 0;
179
+ left: 0;
180
+ width: 100%;
181
+ height: 100%;
182
+ background: linear-gradient(
183
+ to bottom,
184
+ transparent 0%,
185
+ rgba(0, 255, 157, 0.05) 50%,
186
+ transparent 100%
187
+ );
188
+ background-size: 100% 8px;
189
+ animation: scanline 8s linear infinite;
190
+ pointer-events: none;
191
+ z-index: 10;
192
+ }
193
+
194
+ @keyframes scanline {
195
+ 0% { background-position: 0 0; }
196
+ 100% { background-position: 0 100vh; }
197
+ }
198
+ </style>
199
+ </head>
200
+ <body class="relative overflow-hidden">
201
+ <!-- Scanline effect -->
202
+ <div class="scanline"></div>
203
+
204
+ <!-- Main container -->
205
+ <div class="container mx-auto px-4 py-8 max-w-6xl">
206
+ <!-- Header -->
207
+ <header class="flex flex-col md:flex-row justify-between items-center mb-8">
208
+ <div class="flex items-center mb-4 md:mb-0">
209
+ <div class="w-12 h-12 rounded-full cyber-border flex items-center justify-center mr-4">
210
+ <i class="fas fa-robot text-2xl text-primary"></i>
211
+ </div>
212
+ <h1 class="cyber-font text-3xl md:text-4xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-secondary">
213
+ <span class="glitch" data-text="MCP CHAT INTERFACE">MCP CHAT INTERFACE</span>
214
+ </h1>
215
+ </div>
216
+
217
+ <div class="flex items-center space-x-4">
218
+ <div class="flex items-center">
219
+ <div class="w-3 h-3 rounded-full bg-primary pulse mr-2"></div>
220
+ <span id="connection-status" class="status-connected px-3 py-1 rounded-full text-xs font-bold">CONNECTED</span>
221
+ </div>
222
+ <button id="settings-btn" class="cyber-btn px-4 py-2 rounded-md text-sm font-bold">
223
+ <i class="fas fa-cog mr-2"></i>SETTINGS
224
+ </button>
225
+ </div>
226
+ </header>
227
+
228
+ <!-- Main content -->
229
+ <main class="grid grid-cols-1 lg:grid-cols-4 gap-6">
230
+ <!-- Side panel -->
231
+ <div class="lg:col-span-1 cyber-border rounded-lg p-4 hidden lg:block">
232
+ <h2 class="cyber-font text-xl font-bold mb-4 text-primary">SYSTEM STATUS</h2>
233
+
234
+ <div class="space-y-4">
235
+ <div class="bg-darker rounded-md p-3">
236
+ <div class="flex justify-between items-center mb-1">
237
+ <span class="text-xs text-gray-400">MCP PROTOCOL</span>
238
+ <span class="text-xs text-primary font-bold">ACTIVE</span>
239
+ </div>
240
+ <div class="w-full bg-dark rounded-full h-2">
241
+ <div class="bg-primary rounded-full h-2" style="width: 92%"></div>
242
+ </div>
243
+ </div>
244
+
245
+ <div class="bg-darker rounded-md p-3">
246
+ <div class="flex justify-between items-center mb-1">
247
+ <span class="text-xs text-gray-400">ENCRYPTION</span>
248
+ <span class="text-xs text-secondary font-bold">AES-256</span>
249
+ </div>
250
+ <div class="w-full bg-dark rounded-full h-2">
251
+ <div class="bg-secondary rounded-full h-2" style="width: 100%"></div>
252
+ </div>
253
+ </div>
254
+
255
+ <div class="bg-darker rounded-md p-3">
256
+ <div class="flex justify-between items-center mb-1">
257
+ <span class="text-xs text-gray-400">BANDWIDTH</span>
258
+ <span class="text-xs text-primary font-bold">4.7 MB/s</span>
259
+ </div>
260
+ <div class="w-full bg-dark rounded-full h-2">
261
+ <div class="bg-gradient-to-r from-primary to-secondary rounded-full h-2" style="width: 65%"></div>
262
+ </div>
263
+ </div>
264
+ </div>
265
+
266
+ <h2 class="cyber-font text-xl font-bold mt-6 mb-4 text-primary">QUICK COMMANDS</h2>
267
+
268
+ <div class="grid grid-cols-2 gap-2">
269
+ <button class="cyber-input text-xs py-2 px-2 rounded hover:bg-primary hover:text-dark transition-colors">
270
+ /status
271
+ </button>
272
+ <button class="cyber-input text-xs py-2 px-2 rounded hover:bg-primary hover:text-dark transition-colors">
273
+ /help
274
+ </button>
275
+ <button class="cyber-input text-xs py-2 px-2 rounded hover:bg-primary hover:text-dark transition-colors">
276
+ /clear
277
+ </button>
278
+ <button class="cyber-input text-xs py-2 px-2 rounded hover:bg-primary hover:text-dark transition-colors">
279
+ /ping
280
+ </button>
281
+ <button class="cyber-input text-xs py-2 px-2 rounded hover:bg-primary hover:text-dark transition-colors">
282
+ /debug
283
+ </button>
284
+ <button class="cyber-input text-xs py-2 px-2 rounded hover:bg-primary hover:text-dark transition-colors">
285
+ /encrypt
286
+ </button>
287
+ </div>
288
+
289
+ <div class="mt-6 text-xs text-gray-400">
290
+ <p>MCP v3.2.1</p>
291
+ <p>Last sync: <span id="last-sync">just now</span></p>
292
+ </div>
293
+ </div>
294
+
295
+ <!-- Chat container -->
296
+ <div class="lg:col-span-3">
297
+ <div class="chat-container cyber-border rounded-lg p-4 overflow-y-auto mb-4">
298
+ <div id="chat-messages" class="space-y-3">
299
+ <!-- Messages will be inserted here -->
300
+ <div class="message bot-message">
301
+ <div class="flex items-start">
302
+ <div class="w-6 h-6 rounded-full bg-dark border border-primary flex items-center justify-center mr-2 flex-shrink-0">
303
+ <i class="fas fa-robot text-xs text-primary"></i>
304
+ </div>
305
+ <div>
306
+ <p class="font-bold text-primary text-xs mb-1">MCP SYSTEM</p>
307
+ <p>Connection established. MCP protocol initialized. How can I assist you today?</p>
308
+ </div>
309
+ </div>
310
+ <div class="text-right mt-1">
311
+ <span class="text-xs text-gray-500">just now</span>
312
+ </div>
313
+ </div>
314
+ </div>
315
+ </div>
316
+
317
+ <div class="flex space-x-2">
318
+ <input
319
+ id="message-input"
320
+ type="text"
321
+ placeholder="Type your message..."
322
+ class="cyber-input flex-grow rounded-md px-4 py-3 focus:outline-none"
323
+ autocomplete="off"
324
+ >
325
+ <button
326
+ id="send-btn"
327
+ class="cyber-btn px-6 py-3 rounded-md font-bold"
328
+ >
329
+ <i class="fas fa-paper-plane mr-2"></i>SEND
330
+ </button>
331
+ </div>
332
+
333
+ <div class="flex justify-between items-center mt-3 text-xs text-gray-400">
334
+ <div>
335
+ <span>Press <span class="text-primary font-bold">Enter</span> to send</span>
336
+ </div>
337
+ <div class="flex items-center">
338
+ <i class="fas fa-lock mr-1"></i>
339
+ <span>End-to-end encrypted</span>
340
+ </div>
341
+ </div>
342
+ </div>
343
+ </main>
344
+ </div>
345
+
346
+ <!-- Settings modal -->
347
+ <div id="settings-modal" class="fixed inset-0 bg-black bg-opacity-80 flex items-center justify-center z-50 hidden">
348
+ <div class="cyber-border rounded-lg p-6 w-full max-w-md relative">
349
+ <button id="close-settings" class="absolute top-4 right-4 text-gray-400 hover:text-primary">
350
+ <i class="fas fa-times"></i>
351
+ </button>
352
+
353
+ <h2 class="cyber-font text-2xl font-bold mb-6 text-primary">SYSTEM SETTINGS</h2>
354
+
355
+ <div class="space-y-4">
356
+ <div>
357
+ <label class="block text-sm font-bold mb-2 text-gray-300">MCP Server</label>
358
+ <input type="text" class="cyber-input w-full px-3 py-2 rounded" value="mcp.cybernet.io:443">
359
+ </div>
360
+
361
+ <div>
362
+ <label class="block text-sm font-bold mb-2 text-gray-300">Encryption Level</label>
363
+ <select class="cyber-input w-full px-3 py-2 rounded">
364
+ <option>AES-256 (Recommended)</option>
365
+ <option>ChaCha20-Poly1305</option>
366
+ <option>Twofish</option>
367
+ </select>
368
+ </div>
369
+
370
+ <div class="flex items-center">
371
+ <input type="checkbox" id="dark-mode" class="mr-2" checked>
372
+ <label for="dark-mode" class="text-sm text-gray-300">Dark Mode</label>
373
+ </div>
374
+
375
+ <div class="flex items-center">
376
+ <input type="checkbox" id="typing-indicator" class="mr-2" checked>
377
+ <label for="typing-indicator" class="text-sm text-gray-300">Show Typing Indicator</label>
378
+ </div>
379
+
380
+ <div class="pt-4">
381
+ <button class="cyber-btn w-full py-2 rounded-md font-bold">
382
+ SAVE SETTINGS
383
+ </button>
384
+ </div>
385
+ </div>
386
+ </div>
387
+ </div>
388
+
389
+ <script>
390
+ document.addEventListener('DOMContentLoaded', function() {
391
+ // DOM elements
392
+ const messageInput = document.getElementById('message-input');
393
+ const sendBtn = document.getElementById('send-btn');
394
+ const chatMessages = document.getElementById('chat-messages');
395
+ const settingsBtn = document.getElementById('settings-btn');
396
+ const settingsModal = document.getElementById('settings-modal');
397
+ const closeSettings = document.getElementById('close-settings');
398
+ const connectionStatus = document.getElementById('connection-status');
399
+
400
+ // Simulate MCP connection
401
+ let isConnected = true;
402
+
403
+ // Event listeners
404
+ messageInput.addEventListener('keypress', function(e) {
405
+ if (e.key === 'Enter') {
406
+ sendMessage();
407
+ }
408
+ });
409
+
410
+ sendBtn.addEventListener('click', sendMessage);
411
+
412
+ settingsBtn.addEventListener('click', function() {
413
+ settingsModal.classList.remove('hidden');
414
+ });
415
+
416
+ closeSettings.addEventListener('click', function() {
417
+ settingsModal.classList.add('hidden');
418
+ });
419
+
420
+ // Function to send message
421
+ function sendMessage() {
422
+ const messageText = messageInput.value.trim();
423
+ if (messageText === '') return;
424
+
425
+ // Add user message to chat
426
+ addMessage(messageText, 'user');
427
+ messageInput.value = '';
428
+
429
+ // Simulate typing indicator
430
+ const typingIndicator = document.createElement('div');
431
+ typingIndicator.className = 'message bot-message typing-indicator';
432
+ typingIndicator.innerHTML = `
433
+ <div class="flex items-start">
434
+ <div class="w-6 h-6 rounded-full bg-dark border border-primary flex items-center justify-center mr-2 flex-shrink-0">
435
+ <i class="fas fa-robot text-xs text-primary"></i>
436
+ </div>
437
+ <div>
438
+ <p class="font-bold text-primary text-xs mb-1">MCP SYSTEM</p>
439
+ <p>Processing request</p>
440
+ </div>
441
+ </div>
442
+ `;
443
+ chatMessages.appendChild(typingIndicator);
444
+ chatMessages.scrollTop = chatMessages.scrollHeight;
445
+
446
+ // Simulate bot response after delay
447
+ setTimeout(() => {
448
+ // Remove typing indicator
449
+ const indicators = document.querySelectorAll('.typing-indicator');
450
+ indicators.forEach(indicator => indicator.remove());
451
+
452
+ // Generate bot response
453
+ const botResponse = generateBotResponse(messageText);
454
+ addMessage(botResponse, 'bot');
455
+ }, 1000 + Math.random() * 2000);
456
+ }
457
+
458
+ // Function to add message to chat
459
+ function addMessage(text, sender) {
460
+ const messageDiv = document.createElement('div');
461
+ messageDiv.className = `message ${sender}-message`;
462
+
463
+ const timestamp = new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
464
+
465
+ messageDiv.innerHTML = `
466
+ <div class="flex items-start">
467
+ <div class="w-6 h-6 rounded-full bg-dark border ${sender === 'bot' ? 'border-primary' : 'border-secondary'} flex items-center justify-center mr-2 flex-shrink-0">
468
+ <i class="fas ${sender === 'bot' ? 'fa-robot text-primary' : 'fa-user text-secondary'} text-xs"></i>
469
+ </div>
470
+ <div>
471
+ <p class="font-bold ${sender === 'bot' ? 'text-primary' : 'text-secondary'} text-xs mb-1">${sender === 'bot' ? 'MCP SYSTEM' : 'YOU'}</p>
472
+ <p>${text}</p>
473
+ </div>
474
+ </div>
475
+ <div class="text-right mt-1">
476
+ <span class="text-xs text-gray-500">${timestamp}</span>
477
+ </div>
478
+ `;
479
+
480
+ chatMessages.appendChild(messageDiv);
481
+ chatMessages.scrollTop = chatMessages.scrollHeight;
482
+ }
483
+
484
+ // Function to generate bot responses
485
+ function generateBotResponse(userMessage) {
486
+ const lowerMsg = userMessage.toLowerCase();
487
+
488
+ if (lowerMsg.includes('hello') || lowerMsg.includes('hi')) {
489
+ return "Greetings, user. MCP protocol engaged. How may I assist you today?";
490
+ } else if (lowerMsg.includes('status')) {
491
+ return "System status: Optimal\nProtocol: MCP v3.2.1\nEncryption: AES-256 active\nBandwidth: 4.7MB/s";
492
+ } else if (lowerMsg.includes('help')) {
493
+ return "Available commands:\n/status - Check system status\n/help - Display this message\n/clear - Clear chat history\n/ping - Test connection\n/debug - Show debug info";
494
+ } else if (lowerMsg.includes('ping')) {
495
+ return "PONG! Latency: " + Math.floor(Math.random() * 50) + "ms";
496
+ } else if (lowerMsg.includes('time')) {
497
+ return "Current system time: " + new Date().toLocaleTimeString();
498
+ } else if (lowerMsg.includes('date')) {
499
+ return "Current date: " + new Date().toLocaleDateString();
500
+ } else if (lowerMsg.includes('encrypt')) {
501
+ return "Encryption protocol confirmed. All communications are secured with AES-256 bit encryption.";
502
+ } else if (lowerMsg.includes('disconnect')) {
503
+ // Simulate disconnection
504
+ isConnected = false;
505
+ connectionStatus.textContent = "DISCONNECTED";
506
+ connectionStatus.className = "status-disconnected px-3 py-1 rounded-full text-xs font-bold";
507
+ return "Warning: Connection terminated. Attempting to reconnect...";
508
+ } else if (lowerMsg.includes('reconnect')) {
509
+ // Simulate reconnection
510
+ isConnected = true;
511
+ connectionStatus.textContent = "CONNECTED";
512
+ connectionStatus.className = "status-connected px-3 py-1 rounded-full text-xs font-bold";
513
+ return "Connection re-established. MCP protocol resumed.";
514
+ } else {
515
+ const randomResponses = [
516
+ "Processing request... Command understood.",
517
+ "Affirmative. Request logged in system.",
518
+ "MCP protocol confirms receipt of your message.",
519
+ "Understood. Further parameters required?",
520
+ "Command executed. Awaiting next instruction.",
521
+ "System acknowledges your input.",
522
+ "Data received. Processing complete.",
523
+ "Directive confirmed. Standing by."
524
+ ];
525
+ return randomResponses[Math.floor(Math.random() * randomResponses.length)];
526
+ }
527
+ }
528
+
529
+ // Simulate initial connection status
530
+ setInterval(() => {
531
+ if (isConnected) {
532
+ // Randomly change bandwidth display
533
+ const bandwidthElements = document.querySelectorAll('.bg-gradient-to-r.from-primary.to-secondary');
534
+ bandwidthElements.forEach(el => {
535
+ const newWidth = Math.floor(30 + Math.random() * 70);
536
+ el.style.width = `${newWidth}%`;
537
+ });
538
+
539
+ // Update last sync time
540
+ const lastSync = document.getElementById('last-sync');
541
+ const minutesAgo = Math.floor(Math.random() * 5);
542
+ lastSync.textContent = minutesAgo === 0 ? 'just now' : `${minutesAgo} min ago`;
543
+ }
544
+ }, 5000);
545
+ });
546
+ </script>
547
+ <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=Maximelat/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
548
+ </html>