dataquantals commited on
Commit
5dceb63
·
verified ·
1 Parent(s): a6f7e5c

undefined - Initial Deployment

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +496 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Quantals Collect
3
- emoji: 👀
4
- colorFrom: purple
5
- colorTo: pink
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: quantals-collect
3
+ emoji: 🐳
4
+ colorFrom: yellow
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,496 @@
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>Dashboard - Quantals Collect</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
+ /* Custom styles */
11
+ .timeline-item::before {
12
+ content: '';
13
+ position: absolute;
14
+ left: 0;
15
+ top: 0;
16
+ bottom: 0;
17
+ width: 2px;
18
+ background: #e5e7eb;
19
+ }
20
+ .timeline-item:last-child::before {
21
+ height: 50%;
22
+ }
23
+ .storage-meter {
24
+ background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 75%, #e5e7eb 75%, #e5e7eb 100%);
25
+ }
26
+ .offline-indicator {
27
+ animation: pulse 2s infinite;
28
+ }
29
+ @keyframes pulse {
30
+ 0% { opacity: 1; }
31
+ 50% { opacity: 0.5; }
32
+ 100% { opacity: 1; }
33
+ }
34
+ .loading-skeleton {
35
+ background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
36
+ background-size: 200% 100%;
37
+ animation: loading 1.5s infinite;
38
+ }
39
+ @keyframes loading {
40
+ 0% { background-position: 200% 0; }
41
+ 100% { background-position: -200% 0; }
42
+ }
43
+
44
+ /* Animated Summary Cards */
45
+ .summary-number {
46
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
47
+ transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.4, 1.1);
48
+ }
49
+ .summary-number.animate {
50
+ animation: numberPulse 0.5s cubic-bezier(0.2, 0.8, 0.4, 1.1);
51
+ }
52
+ @keyframes numberPulse {
53
+ 0% { transform: scale(1); }
54
+ 50% { transform: scale(1.1); }
55
+ 100% { transform: scale(1); }
56
+ }
57
+ .summary-card {
58
+ transition: background-color 0.3s ease;
59
+ }
60
+ .summary-card.highlight {
61
+ background-color: #e6f7ff;
62
+ }
63
+ .error-value {
64
+ color: #ef4444;
65
+ display: flex;
66
+ align-items: center;
67
+ gap: 0.5rem;
68
+ }
69
+ </style>
70
+ </head>
71
+ <body class="bg-gray-50 font-sans">
72
+ <div class="flex h-screen overflow-hidden">
73
+ <!-- Sidebar -->
74
+ <div class="sidebar bg-indigo-800 text-white w-64 flex flex-col">
75
+ <div class="p-4 flex items-center space-x-3 border-b border-indigo-700">
76
+ <div class="bg-white p-2 rounded-lg">
77
+ <i class="fas fa-microscope text-indigo-800 text-xl"></i>
78
+ </div>
79
+ <h1 class="text-xl font-bold">Quantals Collect</h1>
80
+ </div>
81
+
82
+ <nav class="flex-1 p-4 space-y-2">
83
+ <a href="dashboard.html" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white">
84
+ <i class="fas fa-home"></i>
85
+ <span>Dashboard</span>
86
+ </a>
87
+ <a href="projects.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
88
+ <i class="fas fa-project-diagram"></i>
89
+ <span>Projects</span>
90
+ </a>
91
+ <a href="participants.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
92
+ <i class="fas fa-users"></i>
93
+ <span>Participants</span>
94
+ </a>
95
+ <a href="interviews.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
96
+ <i class="fas fa-microphone"></i>
97
+ <span>Interviews</span>
98
+ </a>
99
+ <a href="notes.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
100
+ <i class="fas fa-sticky-note"></i>
101
+ <span>Notes</span>
102
+ </a>
103
+ <a href="analysis.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
104
+ <i class="fas fa-chart-pie"></i>
105
+ <span>Analysis</span>
106
+ </a>
107
+ </nav>
108
+
109
+ <div class="p-4 border-t border-indigo-700">
110
+ <a href="settings.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
111
+ <i class="fas fa-cog"></i>
112
+ <span>Settings</span>
113
+ </a>
114
+ </div>
115
+ </div>
116
+
117
+ <!-- Main Content -->
118
+ <div class="flex-1 flex flex-col overflow-hidden">
119
+ <!-- Header -->
120
+ <header class="bg-white shadow-sm p-4 flex justify-between items-center">
121
+ <div class="flex items-center space-x-4">
122
+ <h2 class="text-xl font-semibold text-gray-800">Dashboard</h2>
123
+ <div class="offline-indicator hidden px-3 py-1 bg-yellow-100 text-yellow-800 rounded-full text-sm">
124
+ <i class="fas fa-wifi-slash mr-1"></i> Offline
125
+ </div>
126
+ </div>
127
+ <div class="flex items-center space-x-4">
128
+ <button class="p-2 rounded-full hover:bg-gray-100 relative">
129
+ <i class="fas fa-bell text-gray-600"></i>
130
+ <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
131
+ </button>
132
+ <div class="flex items-center space-x-2">
133
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
134
+ <span class="text-xs font-medium text-indigo-800">RS</span>
135
+ </div>
136
+ <span class="text-sm">Research Team</span>
137
+ </div>
138
+ </div>
139
+ </header>
140
+
141
+ <!-- Main Content Area -->
142
+ <main class="flex-1 overflow-y-auto p-6">
143
+ <div class="max-w-7xl mx-auto">
144
+ <!-- Quick Actions -->
145
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6">
146
+ <button class="p-4 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition-colors flex items-center justify-center space-x-2">
147
+ <i class="fas fa-microphone"></i>
148
+ <span>Start New Interview</span>
149
+ </button>
150
+ <button class="p-4 bg-white text-gray-700 rounded-lg hover:bg-gray-50 transition-colors flex items-center justify-center space-x-2 border border-gray-200">
151
+ <i class="fas fa-user-plus"></i>
152
+ <span>Add Participant</span>
153
+ </button>
154
+ <button class="p-4 bg-white text-gray-700 rounded-lg hover:bg-gray-50 transition-colors flex items-center justify-center space-x-2 border border-gray-200">
155
+ <i class="fas fa-folder-plus"></i>
156
+ <span>Create Project</span>
157
+ </button>
158
+ <button class="p-4 bg-white text-gray-700 rounded-lg hover:bg-gray-50 transition-colors flex items-center justify-center space-x-2 border border-gray-200">
159
+ <i class="fas fa-sync"></i>
160
+ <span>Sync Now</span>
161
+ </button>
162
+ </div>
163
+
164
+ <!-- Summary Cards -->
165
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-4 mb-6">
166
+ <!-- Total Projects -->
167
+ <div class="summary-card bg-white rounded-lg shadow-sm p-4">
168
+ <div class="flex items-center justify-between">
169
+ <div>
170
+ <p class="text-sm text-gray-600">Total Projects</p>
171
+ <h3 class="summary-number text-2xl font-semibold text-gray-800" data-value="12">0</h3>
172
+ </div>
173
+ <div class="p-3 bg-blue-100 rounded-lg">
174
+ <i class="fas fa-project-diagram text-blue-600"></i>
175
+ </div>
176
+ </div>
177
+ <a href="projects.html" class="text-sm text-blue-600 hover:text-blue-700 mt-2 inline-block">View all projects →</a>
178
+ </div>
179
+
180
+ <!-- Total Participants -->
181
+ <div class="summary-card bg-white rounded-lg shadow-sm p-4">
182
+ <div class="flex items-center justify-between">
183
+ <div>
184
+ <p class="text-sm text-gray-600">Total Participants</p>
185
+ <h3 class="summary-number text-2xl font-semibold text-gray-800" data-value="48">0</h3>
186
+ </div>
187
+ <div class="p-3 bg-green-100 rounded-lg">
188
+ <i class="fas fa-users text-green-600"></i>
189
+ </div>
190
+ </div>
191
+ <a href="participants.html" class="text-sm text-blue-600 hover:text-blue-700 mt-2 inline-block">View all participants →</a>
192
+ </div>
193
+
194
+ <!-- Active Interviews -->
195
+ <div class="summary-card bg-white rounded-lg shadow-sm p-4">
196
+ <div class="flex items-center justify-between">
197
+ <div>
198
+ <p class="text-sm text-gray-600">Active Interviews</p>
199
+ <h3 class="summary-number text-2xl font-semibold text-gray-800" data-value="3">0</h3>
200
+ </div>
201
+ <div class="p-3 bg-purple-100 rounded-lg">
202
+ <i class="fas fa-microphone text-purple-600"></i>
203
+ </div>
204
+ </div>
205
+ <a href="interviews.html" class="text-sm text-blue-600 hover:text-blue-700 mt-2 inline-block">View active interviews →</a>
206
+ </div>
207
+
208
+ <!-- Storage Usage -->
209
+ <div class="summary-card bg-white rounded-lg shadow-sm p-4">
210
+ <div class="flex items-center justify-between">
211
+ <div>
212
+ <p class="text-sm text-gray-600">Storage Usage</p>
213
+ <h3 class="summary-number text-2xl font-semibold text-gray-800" data-value="75">0</h3>
214
+ </div>
215
+ <div class="p-3 bg-yellow-100 rounded-lg">
216
+ <i class="fas fa-database text-yellow-600"></i>
217
+ </div>
218
+ </div>
219
+ <div class="mt-2 h-2 bg-gray-200 rounded-full overflow-hidden">
220
+ <div class="storage-meter h-full rounded-full"></div>
221
+ </div>
222
+ </div>
223
+
224
+ <!-- Sync Status -->
225
+ <div class="summary-card bg-white rounded-lg shadow-sm p-4">
226
+ <div class="flex items-center justify-between">
227
+ <div>
228
+ <p class="text-sm text-gray-600">Last Sync</p>
229
+ <h3 class="summary-number text-2xl font-semibold text-gray-800" data-value="2">0</h3>
230
+ </div>
231
+ <div class="p-3 bg-green-100 rounded-lg">
232
+ <i class="fas fa-sync text-green-600"></i>
233
+ </div>
234
+ </div>
235
+ <p class="text-sm text-green-600 mt-2">All systems synced</p>
236
+ </div>
237
+ </div>
238
+
239
+ <!-- Main Content Grid -->
240
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
241
+ <!-- Recent Activity Timeline -->
242
+ <div class="lg:col-span-2">
243
+ <div class="bg-white rounded-lg shadow-sm p-6">
244
+ <div class="flex justify-between items-center mb-6">
245
+ <h3 class="text-lg font-semibold text-gray-800">Recent Activity</h3>
246
+ <a href="activity.html" class="text-sm text-blue-600 hover:text-blue-700">View all →</a>
247
+ </div>
248
+
249
+ <div class="space-y-6">
250
+ <!-- Timeline Items -->
251
+ <div class="relative pl-8 timeline-item">
252
+ <div class="absolute left-0 w-4 h-4 bg-blue-500 rounded-full -translate-x-1/2"></div>
253
+ <div class="bg-blue-50 p-4 rounded-lg">
254
+ <div class="flex justify-between items-start">
255
+ <div>
256
+ <h4 class="font-medium text-blue-800">New Interview Session</h4>
257
+ <p class="text-sm text-gray-600">With Maria Gonzalez</p>
258
+ </div>
259
+ <span class="text-xs text-gray-500">10:30 AM</span>
260
+ </div>
261
+ </div>
262
+ </div>
263
+
264
+ <div class="relative pl-8 timeline-item">
265
+ <div class="absolute left-0 w-4 h-4 bg-green-500 rounded-full -translate-x-1/2"></div>
266
+ <div class="bg-green-50 p-4 rounded-lg">
267
+ <div class="flex justify-between items-start">
268
+ <div>
269
+ <h4 class="font-medium text-green-800">Note Added</h4>
270
+ <p class="text-sm text-gray-600">Urban Sustainability Study - Participant observation</p>
271
+ </div>
272
+ <span class="text-xs text-gray-500">9:45 AM</span>
273
+ </div>
274
+ </div>
275
+ </div>
276
+
277
+ <div class="relative pl-8 timeline-item">
278
+ <div class="absolute left-0 w-4 h-4 bg-purple-500 rounded-full -translate-x-1/2"></div>
279
+ <div class="bg-purple-50 p-4 rounded-lg">
280
+ <div class="flex justify-between items-start">
281
+ <div>
282
+ <h4 class="font-medium text-purple-800">System Sync</h4>
283
+ <p class="text-sm text-gray-600">All data synchronized successfully</p>
284
+ </div>
285
+ <span class="text-xs text-gray-500">9:30 AM</span>
286
+ </div>
287
+ </div>
288
+ </div>
289
+ </div>
290
+ </div>
291
+ </div>
292
+
293
+ <!-- Upcoming Schedule -->
294
+ <div class="lg:col-span-1">
295
+ <div class="bg-white rounded-lg shadow-sm p-6">
296
+ <div class="flex justify-between items-center mb-6">
297
+ <h3 class="text-lg font-semibold text-gray-800">Today's Schedule</h3>
298
+ <a href="schedule.html" class="text-sm text-blue-600 hover:text-blue-700">View calendar →</a>
299
+ </div>
300
+
301
+ <div class="space-y-4">
302
+ <!-- Schedule Items -->
303
+ <div class="p-4 bg-red-50 rounded-lg border border-red-100">
304
+ <div class="flex justify-between items-start">
305
+ <div>
306
+ <h4 class="font-medium text-red-800">Interview Session</h4>
307
+ <p class="text-sm text-gray-600">With John Smith</p>
308
+ <p class="text-sm text-gray-500">Urban Sustainability Study</p>
309
+ </div>
310
+ <span class="text-sm font-medium text-red-600">2:00 PM</span>
311
+ </div>
312
+ </div>
313
+
314
+ <div class="p-4 bg-yellow-50 rounded-lg border border-yellow-100">
315
+ <div class="flex justify-between items-start">
316
+ <div>
317
+ <h4 class="font-medium text-yellow-800">Project Deadline</h4>
318
+ <p class="text-sm text-gray-600">Phase 1 Report Due</p>
319
+ <p class="text-sm text-gray-500">Urban Sustainability Study</p>
320
+ </div>
321
+ <span class="text-sm font-medium text-yellow-600">4:00 PM</span>
322
+ </div>
323
+ </div>
324
+
325
+ <div class="p-4 bg-green-50 rounded-lg border border-green-100">
326
+ <div class="flex justify-between items-start">
327
+ <div>
328
+ <h4 class="font-medium text-green-800">Team Meeting</h4>
329
+ <p class="text-sm text-gray-600">Weekly Progress Review</p>
330
+ <p class="text-sm text-gray-500">All Projects</p>
331
+ </div>
332
+ <span class="text-sm font-medium text-green-600">5:00 PM</span>
333
+ </div>
334
+ </div>
335
+ </div>
336
+ </div>
337
+ </div>
338
+ </div>
339
+ </div>
340
+ </main>
341
+ </div>
342
+ </div>
343
+
344
+ <script>
345
+ // Check online status
346
+ function updateOnlineStatus() {
347
+ const offlineIndicator = document.querySelector('.offline-indicator');
348
+ if (!navigator.onLine) {
349
+ offlineIndicator.classList.remove('hidden');
350
+ } else {
351
+ offlineIndicator.classList.add('hidden');
352
+ }
353
+ }
354
+
355
+ window.addEventListener('online', updateOnlineStatus);
356
+ window.addEventListener('offline', updateOnlineStatus);
357
+ updateOnlineStatus();
358
+
359
+ // Simulate loading states
360
+ function simulateLoading() {
361
+ const cards = document.querySelectorAll('.bg-white');
362
+ cards.forEach(card => {
363
+ card.classList.add('loading-skeleton');
364
+ setTimeout(() => {
365
+ card.classList.remove('loading-skeleton');
366
+ }, 1000);
367
+ });
368
+ }
369
+
370
+ // Update storage meter
371
+ function updateStorageMeter() {
372
+ const meter = document.querySelector('.storage-meter');
373
+ const usage = 75; // This would come from an API in a real app
374
+ meter.style.background = `linear-gradient(90deg, #3b82f6 0%, #3b82f6 ${usage}%, #e5e7eb ${usage}%, #e5e7eb 100%)`;
375
+ }
376
+
377
+ // Initialize
378
+ document.addEventListener('DOMContentLoaded', () => {
379
+ simulateLoading();
380
+ updateStorageMeter();
381
+ });
382
+
383
+ // Quick action buttons
384
+ document.querySelectorAll('button').forEach(button => {
385
+ button.addEventListener('click', function() {
386
+ // Add ripple effect
387
+ const ripple = document.createElement('div');
388
+ ripple.classList.add('absolute', 'bg-white', 'rounded-full', 'animate-ping');
389
+ this.appendChild(ripple);
390
+ setTimeout(() => ripple.remove(), 1000);
391
+ });
392
+ });
393
+
394
+ // Animated Summary Cards
395
+ class AnimatedCounter {
396
+ constructor(element, targetValue, duration = 500) {
397
+ this.element = element;
398
+ this.targetValue = targetValue;
399
+ this.duration = duration;
400
+ this.currentValue = 0;
401
+ this.startTime = null;
402
+ this.isAnimating = false;
403
+ this.debounceTimeout = null;
404
+ }
405
+
406
+ formatNumber(num) {
407
+ if (num >= 1000) {
408
+ return (num / 1000).toFixed(1) + 'k';
409
+ }
410
+ return Math.round(num).toString();
411
+ }
412
+
413
+ animate() {
414
+ if (this.isAnimating) return;
415
+ if (this.debounceTimeout) clearTimeout(this.debounceTimeout);
416
+
417
+ this.debounceTimeout = setTimeout(() => {
418
+ this.isAnimating = true;
419
+ this.startTime = performance.now();
420
+ this.element.classList.add('animate');
421
+ this.element.closest('.summary-card').classList.add('highlight');
422
+
423
+ const animate = (currentTime) => {
424
+ const elapsed = currentTime - this.startTime;
425
+ const progress = Math.min(elapsed / this.duration, 1);
426
+
427
+ // Cubic bezier easing
428
+ const easeOut = t => 1 - Math.pow(1 - t, 3);
429
+ const easedProgress = easeOut(progress);
430
+
431
+ this.currentValue = this.targetValue * easedProgress;
432
+ this.element.textContent = this.formatNumber(this.currentValue);
433
+
434
+ if (progress < 1) {
435
+ requestAnimationFrame(animate);
436
+ } else {
437
+ this.isAnimating = false;
438
+ this.element.classList.remove('animate');
439
+ this.element.closest('.summary-card').classList.remove('highlight');
440
+ }
441
+ };
442
+
443
+ requestAnimationFrame(animate);
444
+ }, 100);
445
+ }
446
+
447
+ setValue(value, animate = true) {
448
+ this.targetValue = value;
449
+ if (animate) {
450
+ this.animate();
451
+ } else {
452
+ this.element.textContent = this.formatNumber(value);
453
+ }
454
+ }
455
+
456
+ showError() {
457
+ this.element.innerHTML = `
458
+ <span class="error-value">
459
+ <i class="fas fa-exclamation-circle"></i>
460
+ --
461
+ </span>
462
+ `;
463
+ }
464
+ }
465
+
466
+ // Initialize counters
467
+ const counters = new Map();
468
+ document.querySelectorAll('.summary-number').forEach(element => {
469
+ const targetValue = parseInt(element.dataset.value);
470
+ if (!isNaN(targetValue)) {
471
+ counters.set(element, new AnimatedCounter(element, targetValue));
472
+ }
473
+ });
474
+
475
+ // Animate counters on page load
476
+ document.addEventListener('DOMContentLoaded', () => {
477
+ counters.forEach(counter => counter.animate());
478
+ });
479
+
480
+ // Simulate data updates
481
+ function simulateDataUpdate() {
482
+ const randomValue = Math.floor(Math.random() * 100);
483
+ const randomCounter = Array.from(counters.values())[Math.floor(Math.random() * counters.size)];
484
+ randomCounter.setValue(randomValue);
485
+ }
486
+
487
+ // Add click handler to sync button
488
+ document.querySelector('button:has(.fa-sync)').addEventListener('click', () => {
489
+ counters.forEach(counter => counter.animate());
490
+ });
491
+
492
+ // Simulate periodic updates
493
+ setInterval(simulateDataUpdate, 5000);
494
+ </script>
495
+ <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://deepsite.hf.co/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://deepsite.hf.co" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://deepsite.hf.co?remix=dataquantals/quantals-collect" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
496
+ </html>
prompts.txt ADDED
File without changes