pennypacker commited on
Commit
c66b68a
·
verified ·
1 Parent(s): ae69c00

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +539 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Deepsite Mining2
3
- emoji: 🐢
4
- colorFrom: red
5
- colorTo: indigo
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: deepsite-mining2
3
+ emoji: 🐳
4
+ colorFrom: purple
5
+ colorTo: blue
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,539 @@
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>Iron Ore Mining Production Dashboard</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
9
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
10
+ <style>
11
+ .gradient-bg {
12
+ background: linear-gradient(135deg, #1e3a8a 0%, #0c4a6e 100%);
13
+ }
14
+ .sidebar {
15
+ transition: all 0.3s ease;
16
+ }
17
+ .card-hover:hover {
18
+ transform: translateY(-5px);
19
+ box-shadow: 0 10px 20px rgba(0,0,0,0.2);
20
+ }
21
+ .blink {
22
+ animation: blink-animation 1.5s infinite;
23
+ }
24
+ @keyframes blink-animation {
25
+ 0% { opacity: 1; }
26
+ 50% { opacity: 0.5; }
27
+ 100% { opacity: 1; }
28
+ }
29
+ .equipment-status {
30
+ position: relative;
31
+ }
32
+ .equipment-status::after {
33
+ content: '';
34
+ position: absolute;
35
+ top: 5px;
36
+ right: 5px;
37
+ width: 10px;
38
+ height: 10px;
39
+ border-radius: 50%;
40
+ }
41
+ .status-active::after {
42
+ background-color: #10b981;
43
+ }
44
+ .status-warning::after {
45
+ background-color: #f59e0b;
46
+ }
47
+ .status-danger::after {
48
+ background-color: #ef4444;
49
+ }
50
+ </style>
51
+ </head>
52
+ <body class="bg-gray-100 font-sans">
53
+ <div class="flex h-screen overflow-hidden">
54
+ <!-- Sidebar -->
55
+ <div class="sidebar bg-gray-900 text-white w-64 flex-shrink-0">
56
+ <div class="p-4 border-b border-gray-700">
57
+ <div class="flex items-center space-x-3">
58
+ <i class="fas fa-mountain text-blue-400 text-2xl"></i>
59
+ <h1 class="text-xl font-bold">IronCore Mining</h1>
60
+ </div>
61
+ </div>
62
+ <nav class="p-4">
63
+ <div class="mb-8">
64
+ <h2 class="text-gray-400 uppercase text-xs font-semibold mb-3">Main</h2>
65
+ <ul>
66
+ <li class="mb-2">
67
+ <a href="#" class="flex items-center p-2 bg-blue-800 rounded-lg">
68
+ <i class="fas fa-tachometer-alt mr-3 text-blue-300"></i>
69
+ <span>Dashboard</span>
70
+ </a>
71
+ </li>
72
+ <li class="mb-2">
73
+ <a href="#" class="flex items-center p-2 hover:bg-gray-800 rounded-lg">
74
+ <i class="fas fa-chart-line mr-3 text-gray-400"></i>
75
+ <span>Production Analytics</span>
76
+ </a>
77
+ </li>
78
+ <li class="mb-2">
79
+ <a href="#" class="flex items-center p-2 hover:bg-gray-800 rounded-lg">
80
+ <i class="fas fa-hard-hat mr-3 text-gray-400"></i>
81
+ <span>Equipment Status</span>
82
+ </a>
83
+ </li>
84
+ </ul>
85
+ </div>
86
+ <div class="mb-8">
87
+ <h2 class="text-gray-400 uppercase text-xs font-semibold mb-3">Operations</h2>
88
+ <ul>
89
+ <li class="mb-2">
90
+ <a href="#" class="flex items-center p-2 hover:bg-gray-800 rounded-lg">
91
+ <i class="fas fa-excavator mr-3 text-gray-400"></i>
92
+ <span>Excavation</span>
93
+ </a>
94
+ </li>
95
+ <li class="mb-2">
96
+ <a href="#" class="flex items-center p-2 hover:bg-gray-800 rounded-lg">
97
+ <i class="fas fa-truck-pickup mr-3 text-gray-400"></i>
98
+ <span>Haulage</span>
99
+ </a>
100
+ </li>
101
+ <li class="mb-2">
102
+ <a href="#" class="flex items-center p-2 hover:bg-gray-800 rounded-lg">
103
+ <i class="fas fa-industry mr-3 text-gray-400"></i>
104
+ <span>Processing</span>
105
+ </a>
106
+ </li>
107
+ </ul>
108
+ </div>
109
+ <div>
110
+ <h2 class="text-gray-400 uppercase text-xs font-semibold mb-3">Admin</h2>
111
+ <ul>
112
+ <li class="mb-2">
113
+ <a href="#" class="flex items-center p-2 hover:bg-gray-800 rounded-lg">
114
+ <i class="fas fa-users mr-3 text-gray-400"></i>
115
+ <span>Personnel</span>
116
+ </a>
117
+ </li>
118
+ <li class="mb-2">
119
+ <a href="#" class="flex items-center p-2 hover:bg-gray-800 rounded-lg">
120
+ <i class="fas fa-cog mr-3 text-gray-400"></i>
121
+ <span>Settings</span>
122
+ </a>
123
+ </li>
124
+ </ul>
125
+ </div>
126
+ </nav>
127
+ </div>
128
+
129
+ <!-- Main Content -->
130
+ <div class="flex-1 overflow-auto">
131
+ <!-- Header -->
132
+ <header class="bg-white shadow-sm">
133
+ <div class="flex items-center justify-between p-4">
134
+ <div class="flex items-center space-x-4">
135
+ <button class="text-gray-500 focus:outline-none lg:hidden">
136
+ <i class="fas fa-bars"></i>
137
+ </button>
138
+ <h1 class="text-xl font-semibold text-gray-800">Production Dashboard</h1>
139
+ </div>
140
+ <div class="flex items-center space-x-4">
141
+ <div class="relative">
142
+ <button class="text-gray-500 focus:outline-none">
143
+ <i class="fas fa-bell"></i>
144
+ <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
145
+ </button>
146
+ </div>
147
+ <div class="flex items-center space-x-2">
148
+ <div class="h-8 w-8 rounded-full bg-blue-500 flex items-center justify-center text-white font-semibold">JS</div>
149
+ <span class="text-gray-700">John Smith</span>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ </header>
154
+
155
+ <!-- Dashboard Content -->
156
+ <main class="p-6">
157
+ <!-- Summary Cards -->
158
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
159
+ <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all duration-300">
160
+ <div class="p-5">
161
+ <div class="flex items-center justify-between">
162
+ <div>
163
+ <p class="text-gray-500">Today's Production</p>
164
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">24,580 <span class="text-sm text-gray-500">tons</span></h3>
165
+ </div>
166
+ <div class="bg-blue-100 p-3 rounded-full">
167
+ <i class="fas fa-chart-bar text-blue-500 text-xl"></i>
168
+ </div>
169
+ </div>
170
+ <div class="mt-4 flex items-center text-sm">
171
+ <span class="text-green-500 flex items-center">
172
+ <i class="fas fa-arrow-up mr-1"></i> 12.5%
173
+ </span>
174
+ <span class="text-gray-500 ml-2">vs yesterday</span>
175
+ </div>
176
+ </div>
177
+ </div>
178
+
179
+ <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all duration-300">
180
+ <div class="p-5">
181
+ <div class="flex items-center justify-between">
182
+ <div>
183
+ <p class="text-gray-500">Monthly Target</p>
184
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">78%</h3>
185
+ </div>
186
+ <div class="bg-orange-100 p-3 rounded-full">
187
+ <i class="fas fa-bullseye text-orange-500 text-xl"></i>
188
+ </div>
189
+ </div>
190
+ <div class="mt-4">
191
+ <div class="w-full bg-gray-200 rounded-full h-2">
192
+ <div class="bg-orange-500 h-2 rounded-full" style="width: 78%"></div>
193
+ </div>
194
+ <p class="text-gray-500 text-sm mt-1">512,000/650,000 tons</p>
195
+ </div>
196
+ </div>
197
+ </div>
198
+
199
+ <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all duration-300">
200
+ <div class="p-5">
201
+ <div class="flex items-center justify-between">
202
+ <div>
203
+ <p class="text-gray-500">Equipment Utilization</p>
204
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">86%</h3>
205
+ </div>
206
+ <div class="bg-green-100 p-3 rounded-full">
207
+ <i class="fas fa-cogs text-green-500 text-xl"></i>
208
+ </div>
209
+ </div>
210
+ <div class="mt-4">
211
+ <div class="w-full bg-gray-200 rounded-full h-2">
212
+ <div class="bg-green-500 h-2 rounded-full" style="width: 86%"></div>
213
+ </div>
214
+ <p class="text-gray-500 text-sm mt-1">32/37 units active</p>
215
+ </div>
216
+ </div>
217
+ </div>
218
+
219
+ <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all duration-300">
220
+ <div class="p-5">
221
+ <div class="flex items-center justify-between">
222
+ <div>
223
+ <p class="text-gray-500">Safety Days</p>
224
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">127</h3>
225
+ </div>
226
+ <div class="bg-red-100 p-3 rounded-full">
227
+ <i class="fas fa-shield-alt text-red-500 text-xl"></i>
228
+ </div>
229
+ </div>
230
+ <div class="mt-4 flex items-center text-sm">
231
+ <span class="text-green-500 flex items-center">
232
+ <i class="fas fa-trophy mr-1"></i> Record: 183
233
+ </span>
234
+ </div>
235
+ </div>
236
+ </div>
237
+ </div>
238
+
239
+ <!-- Main Charts -->
240
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
241
+ <!-- Production Trend -->
242
+ <div class="bg-white p-5 rounded-xl shadow-md lg:col-span-2">
243
+ <div class="flex items-center justify-between mb-4">
244
+ <h2 class="text-lg font-semibold text-gray-800">Production Trend (Last 30 Days)</h2>
245
+ <div class="flex space-x-2">
246
+ <button class="px-3 py-1 text-xs bg-blue-100 text-blue-600 rounded-full">Tons</button>
247
+ <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">Grade</button>
248
+ </div>
249
+ </div>
250
+ <div class="h-80">
251
+ <canvas id="productionChart"></canvas>
252
+ </div>
253
+ </div>
254
+
255
+ <!-- Iron Grade Distribution -->
256
+ <div class="bg-white p-5 rounded-xl shadow-md">
257
+ <div class="flex items-center justify-between mb-4">
258
+ <h2 class="text-lg font-semibold text-gray-800">Iron Grade Distribution</h2>
259
+ <div class="text-sm text-gray-500">Current Shift</div>
260
+ </div>
261
+ <div class="h-80">
262
+ <canvas id="gradeChart"></canvas>
263
+ </div>
264
+ </div>
265
+ </div>
266
+
267
+ <!-- Equipment Status and Alerts -->
268
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
269
+ <!-- Equipment Status -->
270
+ <div class="bg-white p-5 rounded-xl shadow-md">
271
+ <h2 class="text-lg font-semibold text-gray-800 mb-4">Equipment Status</h2>
272
+ <div class="space-y-4">
273
+ <div class="equipment-status status-active bg-gray-50 p-4 rounded-lg">
274
+ <div class="flex items-center justify-between">
275
+ <div>
276
+ <h3 class="font-medium">Excavator #E-247</h3>
277
+ <p class="text-sm text-gray-500">Pit 3 - North Section</p>
278
+ </div>
279
+ <div class="text-green-500 text-sm">Active</div>
280
+ </div>
281
+ <div class="mt-3 flex justify-between text-xs">
282
+ <span>Utilization: 92%</span>
283
+ <span>Hours: 1,247</span>
284
+ </div>
285
+ </div>
286
+
287
+ <div class="equipment-status status-warning bg-gray-50 p-4 rounded-lg">
288
+ <div class="flex items-center justify-between">
289
+ <div>
290
+ <h3 class="font-medium">Haul Truck #HT-512</h3>
291
+ <p class="text-sm text-gray-500">Pit 2 - Transport</p>
292
+ </div>
293
+ <div class="text-yellow-500 text-sm">Maintenance</div>
294
+ </div>
295
+ <div class="mt-3 flex justify-between text-xs">
296
+ <span>Utilization: 65%</span>
297
+ <span>Hours: 3,512</span>
298
+ </div>
299
+ </div>
300
+
301
+ <div class="equipment-status status-danger bg-gray-50 p-4 rounded-lg">
302
+ <div class="flex items-center justify-between">
303
+ <div>
304
+ <h3 class="font-medium">Drill Rig #DR-108</h3>
305
+ <p class="text-sm text-gray-500">Pit 1 - Blasting Zone</p>
306
+ </div>
307
+ <div class="text-red-500 text-sm">Down</div>
308
+ </div>
309
+ <div class="mt-3 flex justify-between text-xs">
310
+ <span>Utilization: 28%</span>
311
+ <span>Hours: 4,108</span>
312
+ </div>
313
+ </div>
314
+
315
+ <button class="w-full py-2 text-sm text-blue-500 hover:bg-blue-50 rounded-lg">
316
+ View All Equipment (37)
317
+ </button>
318
+ </div>
319
+ </div>
320
+
321
+ <!-- Production Alerts -->
322
+ <div class="bg-white p-5 rounded-xl shadow-md">
323
+ <h2 class="text-lg font-semibold text-gray-800 mb-4">Production Alerts</h2>
324
+ <div class="space-y-4">
325
+ <div class="p-3 bg-red-50 rounded-lg border-l-4 border-red-500">
326
+ <div class="flex items-start">
327
+ <div class="flex-shrink-0 text-red-500 mt-1">
328
+ <i class="fas fa-exclamation-triangle"></i>
329
+ </div>
330
+ <div class="ml-3">
331
+ <h3 class="text-sm font-medium text-red-800">Conveyor Belt Jam</h3>
332
+ <p class="text-sm text-red-700">Processing Plant Line 2</p>
333
+ <p class="text-xs text-red-600 mt-1">Alerted 25 min ago</p>
334
+ </div>
335
+ </div>
336
+ </div>
337
+
338
+ <div class="p-3 bg-yellow-50 rounded-lg border-l-4 border-yellow-500">
339
+ <div class="flex items-start">
340
+ <div class="flex-shrink-0 text-yellow-500 mt-1">
341
+ <i class="fas fa-exclamation-circle"></i>
342
+ </div>
343
+ <div class="ml-3">
344
+ <h3 class="text-sm font-medium text-yellow-800">Low Iron Grade</h3>
345
+ <p class="text-sm text-yellow-700">Section B, Pit 3 (Fe 58%)</p>
346
+ <p class="text-xs text-yellow-600 mt-1">Alerted 1 hour ago</p>
347
+ </div>
348
+ </div>
349
+ </div>
350
+
351
+ <div class="p-3 bg-blue-50 rounded-lg border-l-4 border-blue-500">
352
+ <div class="flex items-start">
353
+ <div class="flex-shrink-0 text-blue-500 mt-1">
354
+ <i class="fas fa-info-circle"></i>
355
+ </div>
356
+ <div class="ml-3">
357
+ <h3 class="text-sm font-medium text-blue-800">Preventive Maintenance</h3>
358
+ <p class="text-sm text-blue-700">Crusher #CR-205 due in 2 days</p>
359
+ <p class="text-xs text-blue-600 mt-1">Scheduled</p>
360
+ </div>
361
+ </div>
362
+ </div>
363
+
364
+ <button class="w-full py-2 text-sm text-blue-500 hover:bg-blue-50 rounded-lg">
365
+ View All Alerts (8)
366
+ </button>
367
+ </div>
368
+ </div>
369
+
370
+ <!-- Shift Performance -->
371
+ <div class="bg-white p-5 rounded-xl shadow-md">
372
+ <h2 class="text-lg font-semibold text-gray-800 mb-4">Shift Performance</h2>
373
+ <div class="flex items-center justify-between mb-4">
374
+ <div>
375
+ <p class="text-gray-500">Current Shift</p>
376
+ <h3 class="text-xl font-bold">Shift B</h3>
377
+ <p class="text-sm text-gray-500">07:00 - 15:00</p>
378
+ </div>
379
+ <div class="bg-green-100 text-green-800 px-3 py-2 rounded-lg">
380
+ <span class="font-medium">On Target</span>
381
+ </div>
382
+ </div>
383
+
384
+ <div class="space-y-3">
385
+ <div>
386
+ <div class="flex justify-between text-sm mb-1">
387
+ <span>Production</span>
388
+ <span>1,850/2,400 tons</span>
389
+ </div>
390
+ <div class="w-full bg-gray-200 rounded-full h-2">
391
+ <div class="bg-blue-500 h-2 rounded-full" style="width: 77%"></div>
392
+ </div>
393
+ </div>
394
+
395
+ <div>
396
+ <div class="flex justify-between text-sm mb-1">
397
+ <span>Equipment Used</span>
398
+ <span>18/22 units</span>
399
+ </div>
400
+ <div class="w-full bg-gray-200 rounded-full h-2">
401
+ <div class="bg-green-500 h-2 rounded-full" style="width: 82%"></div>
402
+ </div>
403
+ </div>
404
+
405
+ <div>
406
+ <div class="flex justify-between text-sm mb-1">
407
+ <span>Safety Incidents</span>
408
+ <span>0</span>
409
+ </div>
410
+ <div class="w-full bg-gray-200 rounded-full h-2">
411
+ <div class="bg-red-500 h-2 rounded-full" style="width: 0%"></div>
412
+ </div>
413
+ </div>
414
+ </div>
415
+
416
+ <div class="mt-6 pt-4 border-t border-gray-200">
417
+ <h3 class="text-sm font-medium text-gray-800 mb-2">Next Shift: Shift C</h3>
418
+ <div class="flex items-center justify-between text-sm">
419
+ <span class="text-gray-500">Starts in</span>
420
+ <span class="font-medium text-gray-800 blink">1 hour 22 minutes</span>
421
+ </div>
422
+ <button class="w-full mt-3 bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-lg text-sm">
423
+ Prepare Shift Handover
424
+ </button>
425
+ </div>
426
+ </div>
427
+ </div>
428
+ </main>
429
+ </div>
430
+ </div>
431
+
432
+ <script>
433
+ // Production Trend Chart
434
+ const productionCtx = document.getElementById('productionChart').getContext('2d');
435
+ const productionChart = new Chart(productionCtx, {
436
+ type: 'line',
437
+ data: {
438
+ labels: Array.from({length: 30}, (_, i) => `Day ${i+1}`),
439
+ datasets: [
440
+ {
441
+ label: 'Ore Production (tons)',
442
+ data: Array.from({length: 30}, () => Math.floor(Math.random() * 3000) + 18000),
443
+ borderColor: '#3b82f6',
444
+ backgroundColor: 'rgba(59, 130, 246, 0.05)',
445
+ borderWidth: 2,
446
+ fill: true,
447
+ tension: 0.4
448
+ },
449
+ {
450
+ label: 'Target',
451
+ data: Array(30).fill(22000),
452
+ borderColor: '#10b981',
453
+ borderWidth: 1,
454
+ borderDash: [5, 5],
455
+ pointRadius: 0
456
+ }
457
+ ]
458
+ },
459
+ options: {
460
+ responsive: true,
461
+ maintainAspectRatio: false,
462
+ plugins: {
463
+ legend: {
464
+ position: 'top',
465
+ },
466
+ tooltip: {
467
+ mode: 'index',
468
+ intersect: false,
469
+ }
470
+ },
471
+ scales: {
472
+ y: {
473
+ beginAtZero: false,
474
+ min: 15000,
475
+ ticks: {
476
+ callback: function(value) {
477
+ return value.toLocaleString() + 't';
478
+ }
479
+ }
480
+ }
481
+ }
482
+ }
483
+ });
484
+
485
+ // Grade Distribution Chart
486
+ const gradeCtx = document.getElementById('gradeChart').getContext('2d');
487
+ const gradeChart = new Chart(gradeCtx, {
488
+ type: 'doughnut',
489
+ data: {
490
+ labels: ['High Grade (Fe >62%)', 'Medium Grade (Fe 58-62%)', 'Low Grade (Fe <58%)'],
491
+ datasets: [{
492
+ data: [45, 35, 20],
493
+ backgroundColor: [
494
+ '#10b981',
495
+ '#f59e0b',
496
+ '#ef4444'
497
+ ],
498
+ borderWidth: 0
499
+ }]
500
+ },
501
+ options: {
502
+ responsive: true,
503
+ maintainAspectRatio: false,
504
+ plugins: {
505
+ legend: {
506
+ position: 'right',
507
+ },
508
+ tooltip: {
509
+ callbacks: {
510
+ label: function(context) {
511
+ return context.label + ': ' + context.raw + '%';
512
+ }
513
+ }
514
+ }
515
+ },
516
+ cutout: '70%'
517
+ }
518
+ });
519
+
520
+ // Simulate real-time data updates
521
+ function updateProductionData() {
522
+ const newData = Array.from({length: 30}, () => Math.floor(Math.random() * 3000) + 18000);
523
+ productionChart.data.datasets[0].data = newData;
524
+ productionChart.update();
525
+
526
+ // Update summary card with random value ±500 from current
527
+ const currentProduction = document.querySelector('h3:contains("Today\'s Production")').nextElementSibling;
528
+ const currentValue = parseInt(currentProduction.textContent.replace(/,/g, ''));
529
+ const newValue = currentValue + Math.floor(Math.random() * 1000) - 500;
530
+ currentProduction.textContent = newValue.toLocaleString() + ' tons';
531
+
532
+ setTimeout(updateProductionData, 5000);
533
+ }
534
+
535
+ // Start updates after initial load
536
+ setTimeout(updateProductionData, 5000);
537
+ </script>
538
+ <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=pennypacker/deepsite-mining2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
539
+ </html>
prompts.txt ADDED
File without changes