privateuserh commited on
Commit
aec7513
·
verified ·
1 Parent(s): 5af03d5

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +473 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Privhoneycombxhat
3
- emoji: 👀
4
- colorFrom: pink
5
- colorTo: green
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: privhoneycombxhat
3
+ emoji: 🐳
4
+ colorFrom: yellow
5
+ colorTo: purple
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,473 @@
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
+ <meta name="description" content="Honeycomb Chat - Synchronized communication between prefectures">
7
+ <meta name="theme-color" content="#3b82f6">
8
+ <meta property="og:title" content="Honeycomb Chat">
9
+ <meta property="og:description" content="Real-time synchronized communication with geometric prefectures">
10
+ <meta property="og:type" content="website">
11
+ <meta property="og:url" content="https://example.com">
12
+ <meta property="og:image" content="https://example.com/honeycomb-chat-preview.png">
13
+ <title>Honeycomb Chat</title>
14
+ <script src="https://cdn.tailwindcss.com"></script>
15
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
16
+ <style>
17
+ @keyframes float {
18
+ 0%, 100% { transform: translateY(0); }
19
+ 50% { transform: translateY(-10px); }
20
+ }
21
+ .floating {
22
+ animation: float 6s ease-in-out infinite;
23
+ }
24
+ .shape-transition {
25
+ transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
26
+ }
27
+ .chat-bubble {
28
+ clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);
29
+ }
30
+ .triangle {
31
+ clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
32
+ }
33
+ .hexagon {
34
+ clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
35
+ }
36
+ .pentagon {
37
+ clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
38
+ }
39
+ .octagon {
40
+ clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
41
+ }
42
+ .diamond {
43
+ clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
44
+ }
45
+ .honeycomb-bg {
46
+ background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L84 25V75L50 100L16 75V25L50 0Z' fill='none' stroke='%23e5e7eb' stroke-width='0.5'/%3E%3C/svg%3E");
47
+ background-size: 60px 60px;
48
+ }
49
+ .honeycomb-cell {
50
+ clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
51
+ }
52
+ .prefecture-diligence {
53
+ background: linear-gradient(135deg, #f59e0b, #d97706);
54
+ }
55
+ .prefecture-industry {
56
+ background: linear-gradient(135deg, #10b981, #059669);
57
+ }
58
+ .prefecture-harmony {
59
+ background: linear-gradient(135deg, #3b82f6, #2563eb);
60
+ }
61
+ .prefecture-aquapod {
62
+ background: linear-gradient(135deg, #06b6d4, #0891b2);
63
+ }
64
+ .prefecture-archive {
65
+ background: linear-gradient(135deg, #8b5cf6, #7c3aed);
66
+ }
67
+ .message-diligence {
68
+ background-color: #f59e0b;
69
+ color: white;
70
+ }
71
+ .message-industry {
72
+ background-color: #10b981;
73
+ color: white;
74
+ }
75
+ .message-harmony {
76
+ background-color: #3b82f6;
77
+ color: white;
78
+ }
79
+ .message-aquapod {
80
+ background-color: #06b6d4;
81
+ color: white;
82
+ }
83
+ .message-archive {
84
+ background-color: #8b5cf6;
85
+ color: white;
86
+ }
87
+ </style>
88
+ </head>
89
+ <body class="bg-gradient-to-br from-gray-50 to-blue-50 min-h-screen">
90
+ <div class="container mx-auto px-4 py-8">
91
+ <!-- Header -->
92
+ <header class="flex flex-col items-center mb-8">
93
+ <div class="flex items-center justify-center mb-4">
94
+ <div class="honeycomb-cell bg-blue-500 w-12 h-12 flex items-center justify-center mr-3">
95
+ <i class="fas fa-comment-alt text-white text-xl"></i>
96
+ </div>
97
+ <h1 class="text-3xl font-bold text-gray-800">Honeycomb Chat</h1>
98
+ </div>
99
+ <p class="text-gray-600 text-center max-w-md">Synchronized communication between prefectures. No records stored.</p>
100
+ </header>
101
+
102
+ <!-- Connection Status -->
103
+ <div class="flex justify-center mb-6">
104
+ <div id="connectionStatus" class="flex items-center bg-white rounded-full px-4 py-2 shadow-md">
105
+ <div class="w-3 h-3 rounded-full bg-gray-400 mr-2"></div>
106
+ <span class="text-sm font-medium text-gray-600">Disconnected</span>
107
+ </div>
108
+ </div>
109
+
110
+ <!-- Chat Container -->
111
+ <div class="max-w-2xl mx-auto bg-white rounded-2xl shadow-xl overflow-hidden">
112
+ <!-- Chat Header -->
113
+ <div class="bg-gradient-to-r from-blue-500 to-indigo-600 p-4 flex items-center honeycomb-bg">
114
+ <div class="octagon bg-white w-8 h-8 flex items-center justify-center mr-3">
115
+ <i class="fas fa-users text-blue-500 text-sm"></i>
116
+ </div>
117
+ <h2 class="text-white font-semibold">Prefecture Channel</h2>
118
+ <div class="ml-auto flex space-x-2">
119
+ <button id="clearBtn" class="p-1 rounded-full hover:bg-blue-400 transition">
120
+ <i class="fas fa-trash-alt text-white"></i>
121
+ </button>
122
+ <button id="syncBtn" class="p-1 rounded-full hover:bg-blue-400 transition">
123
+ <i class="fas fa-sync-alt text-white"></i>
124
+ </button>
125
+ </div>
126
+ </div>
127
+
128
+ <!-- Messages Area -->
129
+ <div id="messages" class="h-96 overflow-y-auto p-4 space-y-4 bg-gray-50 honeycomb-bg">
130
+ <div class="flex justify-center">
131
+ <div class="bg-blue-100 text-blue-800 px-4 py-2 rounded-lg max-w-xs text-center">
132
+ <p>Welcome to Honeycomb Chat! Messages disappear when you close the window.</p>
133
+ </div>
134
+ </div>
135
+ </div>
136
+
137
+ <!-- Input Area -->
138
+ <div class="p-4 border-t border-gray-200 bg-white">
139
+ <div class="flex items-center">
140
+ <div class="flex-1 relative">
141
+ <input id="messageInput" type="text" placeholder="Type a message..."
142
+ class="w-full px-4 py-3 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
143
+ <button id="sendBtn" class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-blue-500 text-white rounded-full p-2 hover:bg-blue-600 transition">
144
+ <i class="fas fa-paper-plane"></i>
145
+ </button>
146
+ </div>
147
+ <div class="ml-3 flex space-x-2">
148
+ <button id="shapeBtn" class="p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition">
149
+ <i class="fas fa-shapes text-gray-700"></i>
150
+ </button>
151
+ <button id="prefectureBtn" class="p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition">
152
+ <i class="fas fa-flag text-gray-700"></i>
153
+ </button>
154
+ </div>
155
+ </div>
156
+ <div id="shapeOptions" class="hidden mt-3 flex justify-center space-x-3">
157
+ <button data-shape="circle" class="w-10 h-10 rounded-full bg-blue-500 hover:bg-blue-600 transition"></button>
158
+ <button data-shape="triangle" class="w-10 h-10 bg-green-500 hover:bg-green-600 transition triangle"></button>
159
+ <button data-shape="square" class="w-10 h-10 bg-purple-500 hover:bg-purple-600 transition"></button>
160
+ <button data-shape="hexagon" class="w-10 h-10 bg-yellow-500 hover:bg-yellow-600 transition hexagon"></button>
161
+ <button data-shape="pentagon" class="w-10 h-10 bg-red-500 hover:bg-red-600 transition pentagon"></button>
162
+ <button data-shape="octagon" class="w-10 h-10 bg-pink-500 hover:bg-pink-600 transition octagon"></button>
163
+ <button data-shape="diamond" class="w-10 h-10 bg-indigo-500 hover:bg-indigo-600 transition diamond"></button>
164
+ </div>
165
+ <div id="prefectureOptions" class="hidden mt-3 grid grid-cols-5 gap-2">
166
+ <button data-prefecture="diligence" class="px-3 py-2 rounded-md prefecture-diligence text-white text-sm font-medium">Diligence</button>
167
+ <button data-prefecture="industry" class="px-3 py-2 rounded-md prefecture-industry text-white text-sm font-medium">Industry</button>
168
+ <button data-prefecture="harmony" class="px-3 py-2 rounded-md prefecture-harmony text-white text-sm font-medium">Harmony</button>
169
+ <button data-prefecture="aquapod" class="px-3 py-2 rounded-md prefecture-aquapod text-white text-sm font-medium">Aquapod</button>
170
+ <button data-prefecture="archive" class="px-3 py-2 rounded-md prefecture-archive text-white text-sm font-medium">Archive</button>
171
+ </div>
172
+ </div>
173
+ </div>
174
+
175
+ <!-- User Identification -->
176
+ <div class="mt-6 flex justify-center">
177
+ <div class="bg-white rounded-lg shadow-md p-4 max-w-md w-full">
178
+ <h3 class="font-medium text-gray-700 mb-3">Prefecture Identification</h3>
179
+ <div class="flex items-center space-x-3">
180
+ <div id="userShape" class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center">
181
+ <i class="fas fa-user text-white"></i>
182
+ </div>
183
+ <input id="usernameInput" type="text" placeholder="Your name"
184
+ class="flex-1 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
185
+ </div>
186
+ <div id="currentPrefecture" class="mt-2 text-sm font-medium text-gray-600">
187
+ Current Prefecture: <span class="text-blue-500">None selected</span>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <!-- Floating Shapes -->
193
+ <div class="fixed top-0 left-0 w-full h-full pointer-events-none overflow-hidden z-0">
194
+ <div class="absolute top-1/4 left-1/6 w-16 h-16 bg-blue-200 opacity-20 rounded-full floating shape-transition"></div>
195
+ <div class="absolute top-1/3 right-1/5 w-12 h-12 bg-indigo-200 opacity-20 triangle floating shape-transition" style="animation-delay: 1s;"></div>
196
+ <div class="absolute bottom-1/4 left-1/4 w-20 h-20 bg-purple-200 opacity-20 hexagon floating shape-transition" style="animation-delay: 2s;"></div>
197
+ <div class="absolute bottom-1/3 right-1/4 w-14 h-14 bg-pink-200 opacity-20 pentagon floating shape-transition" style="animation-delay: 3s;"></div>
198
+ <div class="absolute top-1/5 right-1/6 w-18 h-18 bg-yellow-200 opacity-20 octagon floating shape-transition" style="animation-delay: 1.5s;"></div>
199
+ <div class="absolute bottom-1/5 left-1/5 w-16 h-16 bg-green-200 opacity-20 diamond floating shape-transition" style="animation-delay: 2.5s;"></div>
200
+ </div>
201
+ </div>
202
+
203
+ <script>
204
+ document.addEventListener('DOMContentLoaded', function() {
205
+ // Elements
206
+ const messageInput = document.getElementById('messageInput');
207
+ const sendBtn = document.getElementById('sendBtn');
208
+ const messages = document.getElementById('messages');
209
+ const clearBtn = document.getElementById('clearBtn');
210
+ const syncBtn = document.getElementById('syncBtn');
211
+ const shapeBtn = document.getElementById('shapeBtn');
212
+ const shapeOptions = document.getElementById('shapeOptions');
213
+ const prefectureBtn = document.getElementById('prefectureBtn');
214
+ const prefectureOptions = document.getElementById('prefectureOptions');
215
+ const userShape = document.getElementById('userShape');
216
+ const usernameInput = document.getElementById('usernameInput');
217
+ const connectionStatus = document.getElementById('connectionStatus');
218
+ const currentPrefectureDisplay = document.getElementById('currentPrefecture').querySelector('span');
219
+
220
+ // State
221
+ let currentShape = 'circle';
222
+ let currentPrefecture = null;
223
+ let username = 'User' + Math.floor(Math.random() * 1000);
224
+ let isConnected = false;
225
+ let channel = null;
226
+
227
+ // Initialize
228
+ usernameInput.value = username;
229
+ updateConnectionStatus(false);
230
+
231
+ // Event Listeners
232
+ sendBtn.addEventListener('click', sendMessage);
233
+ messageInput.addEventListener('keypress', function(e) {
234
+ if (e.key === 'Enter') sendMessage();
235
+ });
236
+
237
+ clearBtn.addEventListener('click', clearMessages);
238
+ syncBtn.addEventListener('click', toggleConnection);
239
+ shapeBtn.addEventListener('click', toggleShapeOptions);
240
+ prefectureBtn.addEventListener('click', togglePrefectureOptions);
241
+
242
+ // Shape selection
243
+ document.querySelectorAll('#shapeOptions button').forEach(btn => {
244
+ btn.addEventListener('click', function() {
245
+ currentShape = this.dataset.shape;
246
+ updateUserShape();
247
+ toggleShapeOptions();
248
+ });
249
+ });
250
+
251
+ // Prefecture selection
252
+ document.querySelectorAll('#prefectureOptions button').forEach(btn => {
253
+ btn.addEventListener('click', function() {
254
+ currentPrefecture = this.dataset.prefecture;
255
+ currentPrefectureDisplay.textContent = this.textContent;
256
+ currentPrefectureDisplay.className = `text-${getColorForPrefecture(currentPrefecture)}-500`;
257
+ togglePrefectureOptions();
258
+ });
259
+ });
260
+
261
+ usernameInput.addEventListener('change', function() {
262
+ username = this.value || 'Anonymous';
263
+ });
264
+
265
+ // Functions
266
+ function sendMessage() {
267
+ const message = messageInput.value.trim();
268
+ if (!message) return;
269
+
270
+ // Create and display message
271
+ displayMessage(message, username, currentShape, currentPrefecture, true);
272
+
273
+ // In a real app, this would broadcast to the other user
274
+ // For demo purposes, we'll simulate a response
275
+ setTimeout(() => {
276
+ if (isConnected) {
277
+ const randomPrefecture = getRandomPrefecture();
278
+ displayMessage(
279
+ `${getPrefectureResponse(message, randomPrefecture)}`,
280
+ `Prefecture ${randomPrefecture.charAt(0).toUpperCase() + randomPrefecture.slice(1)}`,
281
+ getRandomShape(),
282
+ randomPrefecture,
283
+ false
284
+ );
285
+ }
286
+ }, 1000 + Math.random() * 2000);
287
+
288
+ // Clear input
289
+ messageInput.value = '';
290
+ }
291
+
292
+ function displayMessage(text, sender, shape, prefecture, isCurrentUser) {
293
+ const messageDiv = document.createElement('div');
294
+ messageDiv.className = `flex ${isCurrentUser ? 'justify-end' : 'justify-start'}`;
295
+
296
+ const shapeDiv = document.createElement('div');
297
+ shapeDiv.className = `w-8 h-8 flex-shrink-0 flex items-center justify-center mr-2 ${isCurrentUser ? 'order-last ml-2' : 'mr-2'}`;
298
+
299
+ // Apply shape
300
+ shapeDiv.classList.add('bg-' + getColorForShape(shape) + '-500');
301
+ if (shape !== 'circle') {
302
+ shapeDiv.classList.add(shape);
303
+ } else {
304
+ shapeDiv.classList.add('rounded-full');
305
+ }
306
+
307
+ const icon = document.createElement('i');
308
+ icon.className = `fas fa-${shape === 'circle' ? 'user' : 'shapes'} text-white text-xs`;
309
+ shapeDiv.appendChild(icon);
310
+
311
+ const contentDiv = document.createElement('div');
312
+ contentDiv.className = `max-w-xs ${isCurrentUser ? 'text-right' : 'text-left'}`;
313
+
314
+ const senderSpan = document.createElement('span');
315
+ senderSpan.className = `text-xs font-medium ${isCurrentUser ? 'text-blue-600' : 'text-gray-600'}`;
316
+ senderSpan.textContent = sender;
317
+
318
+ const textDiv = document.createElement('div');
319
+ textDiv.className = `mt-1 px-4 py-2 rounded-lg ${prefecture ? 'message-' + prefecture : 'bg-blue-500 text-white'}`;
320
+ textDiv.textContent = text;
321
+
322
+ contentDiv.appendChild(senderSpan);
323
+ contentDiv.appendChild(textDiv);
324
+
325
+ messageDiv.appendChild(isCurrentUser ? contentDiv : shapeDiv);
326
+ messageDiv.appendChild(isCurrentUser ? shapeDiv : contentDiv);
327
+
328
+ messages.appendChild(messageDiv);
329
+ messages.scrollTop = messages.scrollHeight;
330
+ }
331
+
332
+ function clearMessages() {
333
+ messages.innerHTML = `
334
+ <div class="flex justify-center">
335
+ <div class="bg-blue-100 text-blue-800 px-4 py-2 rounded-lg max-w-xs text-center">
336
+ <p>Chat cleared. Start a new conversation!</p>
337
+ </div>
338
+ </div>
339
+ `;
340
+ }
341
+
342
+ function toggleConnection() {
343
+ isConnected = !isConnected;
344
+ updateConnectionStatus(isConnected);
345
+
346
+ if (isConnected) {
347
+ // In a real app, this would establish a connection
348
+ displaySystemMessage('Connected to prefecture network. Messages are now synchronized.');
349
+ } else {
350
+ displaySystemMessage('Disconnected from prefecture network. Messages are no longer synchronized.');
351
+ }
352
+ }
353
+
354
+ function updateConnectionStatus(connected) {
355
+ const statusDot = connectionStatus.querySelector('div');
356
+ const statusText = connectionStatus.querySelector('span');
357
+
358
+ if (connected) {
359
+ statusDot.className = 'w-3 h-3 rounded-full bg-green-500 mr-2';
360
+ statusText.textContent = 'Connected';
361
+ syncBtn.innerHTML = '<i class="fas fa-unlink text-white"></i>';
362
+ } else {
363
+ statusDot.className = 'w-3 h-3 rounded-full bg-gray-400 mr-2';
364
+ statusText.textContent = 'Disconnected';
365
+ syncBtn.innerHTML = '<i class="fas fa-link text-white"></i>';
366
+ }
367
+ }
368
+
369
+ function toggleShapeOptions() {
370
+ shapeOptions.classList.toggle('hidden');
371
+ // Hide prefecture options if visible
372
+ if (!prefectureOptions.classList.contains('hidden')) {
373
+ prefectureOptions.classList.add('hidden');
374
+ }
375
+ }
376
+
377
+ function togglePrefectureOptions() {
378
+ prefectureOptions.classList.toggle('hidden');
379
+ // Hide shape options if visible
380
+ if (!shapeOptions.classList.contains('hidden')) {
381
+ shapeOptions.classList.add('hidden');
382
+ }
383
+ }
384
+
385
+ function updateUserShape() {
386
+ // Clear all shape classes
387
+ userShape.className = 'w-10 h-10 flex items-center justify-center';
388
+ userShape.classList.add('bg-' + getColorForShape(currentShape) + '-500');
389
+
390
+ // Apply shape
391
+ if (currentShape !== 'circle') {
392
+ userShape.classList.add(currentShape);
393
+ } else {
394
+ userShape.classList.add('rounded-full');
395
+ }
396
+
397
+ // Update icon
398
+ const icon = userShape.querySelector('i') || document.createElement('i');
399
+ icon.className = `fas fa-${currentShape === 'circle' ? 'user' : 'shapes'} text-white`;
400
+ if (!userShape.querySelector('i')) {
401
+ userShape.appendChild(icon);
402
+ }
403
+ }
404
+
405
+ function displaySystemMessage(text) {
406
+ const div = document.createElement('div');
407
+ div.className = 'flex justify-center';
408
+ div.innerHTML = `
409
+ <div class="bg-gray-100 text-gray-600 px-4 py-2 rounded-lg max-w-xs text-center text-sm">
410
+ <p>${text}</p>
411
+ </div>
412
+ `;
413
+ messages.appendChild(div);
414
+ messages.scrollTop = messages.scrollHeight;
415
+ }
416
+
417
+ function getRandomShape() {
418
+ const shapes = ['circle', 'triangle', 'square', 'hexagon', 'pentagon', 'octagon', 'diamond'];
419
+ return shapes[Math.floor(Math.random() * shapes.length)];
420
+ }
421
+
422
+ function getRandomPrefecture() {
423
+ const prefectures = ['diligence', 'industry', 'harmony', 'aquapod', 'archive'];
424
+ return prefectures[Math.floor(Math.random() * prefectures.length)];
425
+ }
426
+
427
+ function getColorForShape(shape) {
428
+ const colors = {
429
+ 'circle': 'blue',
430
+ 'triangle': 'green',
431
+ 'square': 'purple',
432
+ 'hexagon': 'yellow',
433
+ 'pentagon': 'red',
434
+ 'octagon': 'pink',
435
+ 'diamond': 'indigo'
436
+ };
437
+ return colors[shape] || 'blue';
438
+ }
439
+
440
+ function getColorForPrefecture(prefecture) {
441
+ const colors = {
442
+ 'diligence': 'orange',
443
+ 'industry': 'emerald',
444
+ 'harmony': 'blue',
445
+ 'aquapod': 'cyan',
446
+ 'archive': 'violet'
447
+ };
448
+ return colors[prefecture] || 'blue';
449
+ }
450
+
451
+ function getPrefectureResponse(message, prefecture) {
452
+ const responses = {
453
+ 'diligence': `Regarding "${message}", our workers are already on it with maximum efficiency.`,
454
+ 'industry': `"${message}" noted. Our factories will process this request immediately.`,
455
+ 'harmony': `We appreciate your message about "${message}". Let's work together peacefully.`,
456
+ 'aquapod': `"${message}" received. Our marine systems are analyzing this input.`,
457
+ 'archive': `"${message}" has been recorded in our permanent knowledge banks.`
458
+ };
459
+ return responses[prefecture] || `Prefecture acknowledges: "${message}"`;
460
+ }
461
+
462
+ // Simulate metadata synchronization (in a real app, this would use WebRTC or similar)
463
+ setInterval(() => {
464
+ if (isConnected) {
465
+ // Update metadata tags to simulate synchronization
466
+ document.querySelector('meta[name="theme-color"]').content =
467
+ `#${Math.floor(Math.random()*16777215).toString(16)}`;
468
+ }
469
+ }, 5000);
470
+ });
471
+ </script>
472
+ <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=privateuserh/privhoneycombxhat" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
473
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Use honeycombs and geometric shapes add 5 types of users Prefectures of Diligence Industry Harmony Aquapod Colony and Archive seaport