barshbub commited on
Commit
43beaef
·
verified ·
1 Parent(s): 8980984

good now add "supply chain dsh board that show major trade routes and the ports used in them - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +505 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Port
3
- emoji: 🐨
4
- colorFrom: gray
5
- colorTo: yellow
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: port
3
+ emoji: 🐳
4
+ colorFrom: purple
5
+ colorTo: pink
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,505 @@
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>Global Port Health Dashboard</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
+ primary: '#0056b3',
15
+ secondary: '#003366',
16
+ dark: '#1a1a2e',
17
+ light: '#f8f9fa'
18
+ }
19
+ }
20
+ }
21
+ }
22
+ </script>
23
+ <style>
24
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
25
+
26
+ body {
27
+ font-family: 'Inter', sans-serif;
28
+ background-color: #f8f9fa;
29
+ }
30
+
31
+ .chat-container {
32
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
33
+ border: 1px solid #e0e0e0;
34
+ }
35
+
36
+ .message-bubble {
37
+ max-width: 80%;
38
+ animation: fadeIn 0.3s ease-in-out;
39
+ border-radius: 8px;
40
+ }
41
+
42
+ .user-bubble {
43
+ background-color: #0056b3;
44
+ color: white;
45
+ }
46
+
47
+ .bot-bubble {
48
+ background-color: #ffffff;
49
+ border: 1px solid #e0e0e0;
50
+ color: #333;
51
+ }
52
+
53
+ .typing-indicator {
54
+ display: flex;
55
+ justify-content: center;
56
+ padding: 8px;
57
+ }
58
+
59
+ .typing-dot {
60
+ width: 8px;
61
+ height: 8px;
62
+ margin: 0 3px;
63
+ background-color: #94a3b8;
64
+ border-radius: 50%;
65
+ display: inline-block;
66
+ animation: typing 1.4s infinite ease-in-out;
67
+ }
68
+
69
+ .typing-dot:nth-child(1) { animation-delay: 0s; }
70
+ .typing-dot:nth-child(2) { animation-delay: 0.2s; }
71
+ .typing-dot:nth-child(3) { animation-delay: 0.4s; }
72
+
73
+ @keyframes typing {
74
+ 0%, 60%, 100% { transform: translateY(0); }
75
+ 30% { transform: translateY(-5px); }
76
+ }
77
+
78
+ @keyframes fadeIn {
79
+ from { opacity: 0; transform: translateY(10px); }
80
+ to { opacity: 1; transform: translateY(0); }
81
+ }
82
+
83
+ .send-btn {
84
+ transition: all 0.2s ease;
85
+ }
86
+
87
+ .send-btn:hover {
88
+ transform: translateY(-2px);
89
+ box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3), 0 2px 4px -1px rgba(99, 102, 241, 0.1);
90
+ }
91
+ </style>
92
+ </head>
93
+ <body class="min-h-screen bg-gray-50">
94
+ <div class="container mx-auto p-4">
95
+ <div class="flex flex-col lg:flex-row gap-6">
96
+ <!-- Main Dashboard -->
97
+ <div class="flex-1">
98
+ <div class="bg-white shadow rounded-lg p-6">
99
+ <div class="flex justify-between items-center mb-6">
100
+ <h2 class="text-2xl font-bold text-gray-800">Global Port Health Monitor</h2>
101
+ <div class="relative">
102
+ <input
103
+ type="text"
104
+ placeholder="Search ports..."
105
+ class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
106
+ >
107
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
108
+ </div>
109
+ </div>
110
+
111
+ <!-- Health Overview Cards -->
112
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
113
+ <div class="bg-green-50 p-4 rounded-lg border border-green-100">
114
+ <div class="flex items-center">
115
+ <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mr-3">
116
+ <i class="fas fa-check-circle text-green-600 text-xl"></i>
117
+ </div>
118
+ <div>
119
+ <p class="text-gray-500">Operational</p>
120
+ <p class="text-2xl font-bold">287</p>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ <div class="bg-yellow-50 p-4 rounded-lg border border-yellow-100">
125
+ <div class="flex items-center">
126
+ <div class="w-12 h-12 bg-yellow-100 rounded-full flex items-center justify-center mr-3">
127
+ <i class="fas fa-exclamation-triangle text-yellow-500 text-xl"></i>
128
+ </div>
129
+ <div>
130
+ <p class="text-gray-500">Under Inspection</p>
131
+ <p class="text-2xl font-bold">43</p>
132
+ </div>
133
+ </div>
134
+ </div>
135
+ <div class="bg-red-50 p-4 rounded-lg border border-red-100">
136
+ <div class="flex items-center">
137
+ <div class="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mr-3">
138
+ <i class="fas fa-times-circle text-red-600 text-xl"></i>
139
+ </div>
140
+ <div>
141
+ <p class="text-gray-500">Restricted</p>
142
+ <p class="text-2xl font-bold">19</p>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ </div>
147
+
148
+ <!-- Supply Chain Dashboard -->
149
+ <div class="bg-white p-6 rounded-lg border mb-6">
150
+ <h3 class="text-xl font-semibold mb-4 text-gray-800">Major Global Supply Chains</h3>
151
+
152
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
153
+ <!-- Route 1 -->
154
+ <div class="border rounded-lg p-4 hover:bg-gray-50">
155
+ <div class="flex justify-between items-start mb-2">
156
+ <h4 class="font-medium text-blue-700">Asia-Europe Trade Lane</h4>
157
+ <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Operational</span>
158
+ </div>
159
+ <div class="flex items-center justify-between text-sm text-gray-600">
160
+ <div class="flex items-center">
161
+ <i class="fas fa-ship mr-1 text-blue-500"></i>
162
+ <span>Shanghai →</span>
163
+ </div>
164
+ <div class="flex items-center">
165
+ <i class="fas fa-ship mr-1 text-blue-500"></i>
166
+ <span>Singapore →</span>
167
+ </div>
168
+ <div class="flex items-center">
169
+ <i class="fas fa-ship mr-1 text-blue-500"></i>
170
+ <span>Hamburg</span>
171
+ </div>
172
+ </div>
173
+ <p class="mt-3 text-sm text-gray-500">Current status: All ports operational, no delays</p>
174
+ </div>
175
+
176
+ <!-- Route 2 -->
177
+ <div class="border rounded-lg p-4 hover:bg-gray-50">
178
+ <div class="flex justify-between items-start mb-2">
179
+ <h4 class="font-medium text-blue-700">Trans-Pacific Route</h4>
180
+ <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Monitoring</span>
181
+ </div>
182
+ <div class="flex items-center justify-between text-sm text-gray-600">
183
+ <div class="flex items-center">
184
+ <i class="fas fa-ship mr-1 text-blue-500"></i>
185
+ <span>Los Angeles →</span>
186
+ </div>
187
+ <div class="flex items-center">
188
+ <i class="fas fa-ship mr-1 text-blue-500"></i>
189
+ <span>Yokohama →</span>
190
+ </div>
191
+ <div class="flex items-center">
192
+ <i class="fas fa-ship mr-1 text-blue-500"></i>
193
+ <span>Busan</span>
194
+ </div>
195
+ </div>
196
+ <p class="mt-3 text-sm text-gray-500">Potential delays: LA port experiencing 12hr delays</p>
197
+ </div>
198
+
199
+ <!-- More routes would go here -->
200
+ </div>
201
+
202
+ <div class="mt-4 flex justify-between items-center">
203
+ <p class="text-sm text-gray-500">Last updated: May 25, 2023</p>
204
+ <button class="text-blue-600 text-sm font-medium hover:text-blue-800">
205
+ <i class="fas fa-plus-circle mr-1"></i> View all trade routes
206
+ </button>
207
+ </div>
208
+ </div>
209
+
210
+ <!-- Port Table -->
211
+ <div class="overflow-x-auto">
212
+ <table class="min-w-full divide-y divide-gray-200">
213
+ <thead class="bg-gray-50">
214
+ <tr>
215
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Port Name</th>
216
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Location</th>
217
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
218
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Inspection</th>
219
+ </tr>
220
+ </thead>
221
+ <tbody class="bg-white divide-y divide-gray-200">
222
+ <!-- Example port data rows -->
223
+ <tr class="hover:bg-gray-50">
224
+ <td class="px-6 py-4 whitespace-nowrap">
225
+ <div class="flex items-center">
226
+ <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-3">
227
+ <i class="fas fa-anchor text-blue-600"></i>
228
+ </div>
229
+ <div>
230
+ <p class="font-medium">Port of Shanghai</p>
231
+ <p class="text-sm text-gray-500">China</p>
232
+ </div>
233
+ </div>
234
+ </td>
235
+ <td class="px-6 py-4 whitespace-nowrap">
236
+ <p>31.23°N, 121.47°E</p>
237
+ </td>
238
+ <td class="px-6 py-4 whitespace-nowrap">
239
+ <span class="px-3 py-1 rounded-full text-xs font-semibold bg-green-100 text-green-800">Operational</span>
240
+ </td>
241
+ <td class="px-6 py-4 whitespace-nowrap text-gray-500">
242
+ May 12, 2023
243
+ </td>
244
+ </tr>
245
+ <tr class="hover:bg-gray-50">
246
+ <td class="px-6 py-4 whitespace-nowrap">
247
+ <div class="flex items-center">
248
+ <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-3">
249
+ <i class="fas fa-anchor text-blue-600"></i>
250
+ </div>
251
+ <div>
252
+ <p class="font-medium">Port of Los Angeles</p>
253
+ <p class="text-sm text-gray-500">USA</p>
254
+ </div>
255
+ </div>
256
+ </td>
257
+ <td class="px-6 py-4 whitespace-nowrap">
258
+ <p>33.72°N, 118.26°W</p>
259
+ </td>
260
+ <td class="px-6 py-4 whitespace-nowrap">
261
+ <span class="px-3 py-1 rounded-full text-xs font-semibold bg-yellow-100 text-yellow-800">Under Inspection</span>
262
+ </td>
263
+ <td class="px-6 py-4 whitespace-nowrap text-gray-500">
264
+ April 28, 2023
265
+ </td>
266
+ </tr>
267
+ <tr class="hover:bg-gray-50">
268
+ <td class="px-6 py-4 whitespace-nowrap">
269
+ <div class="flex items-center">
270
+ <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-3">
271
+ <i class="fas fa-anchor text-blue-600"></i>
272
+ </div>
273
+ <div>
274
+ <p class="font-medium">Port of Hamburg</p>
275
+ <p class="text-sm text-gray-500">Germany</p>
276
+ </div>
277
+ </div>
278
+ </td>
279
+ <td class="px-6 py-4 whitespace-nowrap">
280
+ <p>53.54°N, 9.98°E</p>
281
+ </td>
282
+ <td class="px-6 py-4 whitespace-nowrap">
283
+ <span class="px-3 py-1 rounded-full text-xs font-semibold bg-red-100 text-red-800">Restricted</span>
284
+ </td>
285
+ <td class="px-6 py-4 whitespace-nowrap text-gray-500">
286
+ March 15, 2023
287
+ </td>
288
+ </tr>
289
+ <!-- Add the rest of your port data here -->
290
+ </tbody>
291
+ </table>
292
+ </div>
293
+ </div>
294
+ </div>
295
+
296
+ <!-- Chat Assistant Sidebar -->
297
+ <div class="lg:w-96">
298
+ <div class="h-[80vh] flex flex-col bg-white rounded-lg shadow-lg overflow-hidden">
299
+ <!-- Header -->
300
+ <div class="bg-blue-800 p-4 text-white">
301
+ <div class="flex items-center">
302
+ <div class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center mr-3">
303
+ <i class="fas fa-robot text-xl"></i>
304
+ </div>
305
+ <div>
306
+ <h1 class="text-xl font-bold">Port Health Assistant</h1>
307
+ <p class="text-xs opacity-80">Powered by IMO & WHO Data</p>
308
+ </div>
309
+ <div class="ml-auto flex space-x-2">
310
+ <button class="w-8 h-8 rounded-full bg-white/10 flex items-center justify-center hover:bg-white/20">
311
+ <i class="fas fa-question-circle"></i>
312
+ </button>
313
+ </div>
314
+ </div>
315
+ </div>
316
+
317
+ <!-- Chat Messages -->
318
+ <div id="chat-messages" class="flex-1 overflow-y-auto p-4 bg-gray-50">
319
+ <!-- Welcome message -->
320
+ <div class="message-bubble bot-bubble p-4 mb-4">
321
+ <div class="flex items-start">
322
+ <div class="w-8 h-8 rounded-full bg-blue-800 flex items-center justify-center mr-3 flex-shrink-0">
323
+ <i class="fas fa-robot text-white"></i>
324
+ </div>
325
+ <div>
326
+ <p class="font-medium text-gray-800">Welcome to the Port Health Assistant</p>
327
+ <p class="mt-1 text-gray-700">I can help you understand port health statuses and supply chain implications. Ask me about any port's current status, inspection reports, or regulations.</p>
328
+ <div class="mt-3 flex flex-wrap gap-2">
329
+ <span class="px-2 py-1 bg-gray-100 rounded text-xs text-gray-600 border border-gray-200">Try: Status of Shanghai Port</span>
330
+ <span class="px-2 py-1 bg-gray-100 rounded text-xs text-gray-600 border border-gray-200">Try: Import restrictions in USA</span>
331
+ <span class="px-2 py-1 bg-gray-100 rounded text-xs text-gray-600 border border-gray-200">Try: What does restricted mean?</span>
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </div>
336
+
337
+ <!-- Example messages -->
338
+ <div class="message-bubble user-bubble p-4 mb-4 ml-auto text-white">
339
+ <div class="flex items-start">
340
+ <div class="ml-3">
341
+ <p>Hi there! What can you help me with?</p>
342
+ </div>
343
+ <div class="w-8 h-8 rounded-full bg-white/20 flex items-center justify-center ml-3 flex-shrink-0">
344
+ <i class="fas fa-user"></i>
345
+ </div>
346
+ </div>
347
+ </div>
348
+
349
+ <div class="message-bubble bot-bubble p-4 mb-4">
350
+ <div class="flex items-start">
351
+ <div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center mr-3 flex-shrink-0">
352
+ <i class="fas fa-robot text-white"></i>
353
+ </div>
354
+ <div>
355
+ <p class="font-medium text-gray-800">I can assist with many things!</p>
356
+ <p class="mt-1 text-gray-700">Here are some examples:</p>
357
+ <ul class="mt-2 text-gray-700 list-disc list-inside space-y-1">
358
+ <li>Answering general knowledge questions</li>
359
+ <li>Helping with writing and editing</li>
360
+ <li>Providing explanations on various topics</li>
361
+ <li>Generating creative ideas</li>
362
+ <li>And much more!</li>
363
+ </ul>
364
+ </div>
365
+ </div>
366
+ </div>
367
+ </div>
368
+
369
+ <!-- Typing indicator (hidden by default) -->
370
+ <div id="typing-indicator" class="typing-indicator hidden">
371
+ <div class="flex items-center bg-gray-100 px-4 py-2 rounded-full">
372
+ <div class="typing-dot"></div>
373
+ <div class="typing-dot"></div>
374
+ <div class="typing-dot"></div>
375
+ <span class="ml-2 text-sm text-gray-500">Assistant is typing...</span>
376
+ </div>
377
+ </div>
378
+
379
+ <!-- Input Area -->
380
+ <div class="p-4 border-t border-gray-200 bg-white">
381
+ <div class="flex items-center">
382
+ <div class="flex-1 relative">
383
+ <input
384
+ id="message-input"
385
+ type="text"
386
+ placeholder="Ask about economic data or policy insights..."
387
+ class="w-full py-3 px-4 bg-gray-100 rounded focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500"
388
+ >
389
+ </div>
390
+ <button id="send-btn" class="send-btn w-12 h-12 rounded bg-blue-800 flex items-center justify-center ml-3 text-white hover:bg-blue-900">
391
+ <i class="fas fa-paper-plane"></i>
392
+ </button>
393
+ </div>
394
+ <div class="mt-2 flex justify-center text-xs text-gray-500">
395
+ <span>This service provides general information only. For official reports, visit imo.org or who.int</span>
396
+ </div>
397
+ </div>
398
+ </div>
399
+
400
+ <script>
401
+ document.addEventListener('DOMContentLoaded', function() {
402
+ const chatMessages = document.getElementById('chat-messages');
403
+ const messageInput = document.getElementById('message-input');
404
+ const sendBtn = document.getElementById('send-btn');
405
+ const typingIndicator = document.getElementById('typing-indicator');
406
+
407
+ // Function to add a message to the chat
408
+ function addMessage(message, isUser = false) {
409
+ const messageDiv = document.createElement('div');
410
+ messageDiv.classList.add('message-bubble', 'p-4', 'mb-4');
411
+
412
+ if (isUser) {
413
+ messageDiv.classList.add('user-bubble', 'ml-auto', 'text-white');
414
+ messageDiv.innerHTML = `
415
+ <div class="flex items-start">
416
+ <div class="ml-3">
417
+ <p>${message}</p>
418
+ </div>
419
+ <div class="w-8 h-8 rounded-full bg-white/20 flex items-center justify-center ml-3 flex-shrink-0">
420
+ <i class="fas fa-user"></i>
421
+ </div>
422
+ </div>
423
+ `;
424
+ } else {
425
+ messageDiv.classList.add('bot-bubble');
426
+ messageDiv.innerHTML = `
427
+ <div class="flex items-start">
428
+ <div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center mr-3 flex-shrink-0">
429
+ <i class="fas fa-robot text-white"></i>
430
+ </div>
431
+ <div>
432
+ <p class="text-gray-700">${message}</p>
433
+ </div>
434
+ </div>
435
+ `;
436
+ }
437
+
438
+ chatMessages.appendChild(messageDiv);
439
+ // Scroll to the bottom
440
+ chatMessages.scrollTop = chatMessages.scrollHeight;
441
+ }
442
+
443
+ // Function to simulate bot response
444
+ function botResponse(userMessage) {
445
+ // Show typing indicator
446
+ typingIndicator.classList.remove('hidden');
447
+ chatMessages.scrollTop = chatMessages.scrollHeight;
448
+
449
+ // Simulate thinking time
450
+ setTimeout(() => {
451
+ typingIndicator.classList.add('hidden');
452
+
453
+ // Simple responses based on user input
454
+ let response;
455
+ userMessage = userMessage.toLowerCase();
456
+
457
+ if (userMessage.includes('hello') || userMessage.includes('hi') || userMessage.includes('hey')) {
458
+ response = "Hello there! How can I assist you today?";
459
+ } else if (userMessage.includes('how are you')) {
460
+ response = "I'm just a bot, but I'm functioning perfectly! How can I help you?";
461
+ } else if (userMessage.includes('thank')) {
462
+ response = "You're welcome! Is there anything else I can help with?";
463
+ } else if (userMessage.includes('joke')) {
464
+ response = "Why don't scientists trust atoms?<br>Because they make up everything! 😄";
465
+ } else if (userMessage.includes('name')) {
466
+ response = "I'm your friendly AI assistant! You can call me whatever you like.";
467
+ } else if (userMessage.includes('weather')) {
468
+ response = "I don't have access to real-time weather data, but I can help you find weather information if you tell me your location!";
469
+ } else if (userMessage.includes('help')) {
470
+ response = "I can help with answering questions, providing information, generating ideas, explaining concepts, and much more! What do you need assistance with?";
471
+ } else {
472
+ // Default response
473
+ response = "Thanks for your message! I'm an AI assistant designed to help with various tasks. How can I assist you today?";
474
+ }
475
+
476
+ addMessage(response, false);
477
+ }, 1500);
478
+ }
479
+
480
+ // Send message function
481
+ function sendMessage() {
482
+ const message = messageInput.value.trim();
483
+ if (message) {
484
+ addMessage(message, true);
485
+ messageInput.value = '';
486
+ botResponse(message);
487
+ }
488
+ }
489
+
490
+ // Event listeners
491
+ sendBtn.addEventListener('click', sendMessage);
492
+
493
+ messageInput.addEventListener('keypress', function(e) {
494
+ if (e.key === 'Enter' && !e.shiftKey) {
495
+ e.preventDefault();
496
+ sendMessage();
497
+ }
498
+ });
499
+
500
+ // Initial scroll to bottom
501
+ chatMessages.scrollTop = chatMessages.scrollHeight;
502
+ });
503
+ </script>
504
+ <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=barshbub/port" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
505
+ </html>