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ATASETS by webXOS 2026</title>
|
| 7 |
+
<link rel="manifest" href="manifest.json">
|
| 8 |
+
<script src="https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.min.js"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js"></script>
|
| 10 |
+
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
|
| 11 |
+
<style>
|
| 12 |
+
* {
|
| 13 |
+
margin: 0;
|
| 14 |
+
padding: 0;
|
| 15 |
+
box-sizing: border-box;
|
| 16 |
+
-webkit-user-select: none;
|
| 17 |
+
user-select: none;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
body {
|
| 21 |
+
background: #000;
|
| 22 |
+
color: #0f0;
|
| 23 |
+
font-family: 'VT323', monospace;
|
| 24 |
+
font-size: 16px;
|
| 25 |
+
line-height: 1.2;
|
| 26 |
+
overflow: hidden;
|
| 27 |
+
height: 100vh;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/* CRT Screen Effect */
|
| 31 |
+
.crt::before {
|
| 32 |
+
content: " ";
|
| 33 |
+
display: block;
|
| 34 |
+
position: fixed;
|
| 35 |
+
top: 0;
|
| 36 |
+
left: 0;
|
| 37 |
+
bottom: 0;
|
| 38 |
+
right: 0;
|
| 39 |
+
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
|
| 40 |
+
linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
|
| 41 |
+
background-size: 100% 2px, 3px 100%;
|
| 42 |
+
pointer-events: none;
|
| 43 |
+
z-index: 999;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.crt::after {
|
| 47 |
+
content: " ";
|
| 48 |
+
display: block;
|
| 49 |
+
position: fixed;
|
| 50 |
+
top: 0;
|
| 51 |
+
left: 0;
|
| 52 |
+
bottom: 0;
|
| 53 |
+
right: 0;
|
| 54 |
+
background: rgba(18, 16, 16, 0.1);
|
| 55 |
+
opacity: 0.3;
|
| 56 |
+
pointer-events: none;
|
| 57 |
+
animation: flicker 0.15s infinite;
|
| 58 |
+
z-index: 998;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
@keyframes flicker {
|
| 62 |
+
0% { opacity: 0.27861; }
|
| 63 |
+
5% { opacity: 0.34769; }
|
| 64 |
+
10% { opacity: 0.23604; }
|
| 65 |
+
15% { opacity: 0.90626; }
|
| 66 |
+
20% { opacity: 0.18128; }
|
| 67 |
+
25% { opacity: 0.83891; }
|
| 68 |
+
30% { opacity: 0.65583; }
|
| 69 |
+
35% { opacity: 0.67807; }
|
| 70 |
+
40% { opacity: 0.26559; }
|
| 71 |
+
45% { opacity: 0.84693; }
|
| 72 |
+
50% { opacity: 0.96019; }
|
| 73 |
+
55% { opacity: 0.08594; }
|
| 74 |
+
60% { opacity: 0.20313; }
|
| 75 |
+
65% { opacity: 0.71988; }
|
| 76 |
+
70% { opacity: 0.53455; }
|
| 77 |
+
75% { opacity: 0.37288; }
|
| 78 |
+
80% { opacity: 0.71428; }
|
| 79 |
+
85% { opacity: 0.70419; }
|
| 80 |
+
90% { opacity: 0.7003; }
|
| 81 |
+
95% { opacity: 0.36108; }
|
| 82 |
+
100% { opacity: 0.24387; }
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
/* Main Terminal Grid */
|
| 86 |
+
.terminal-grid {
|
| 87 |
+
display: grid;
|
| 88 |
+
grid-template-columns: 2fr 1fr;
|
| 89 |
+
grid-template-rows: auto 1fr;
|
| 90 |
+
height: 100vh;
|
| 91 |
+
padding: 15px;
|
| 92 |
+
gap: 10px;
|
| 93 |
+
background: #000;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
/* System Header */
|
| 97 |
+
.system-header {
|
| 98 |
+
grid-column: 1 / -1;
|
| 99 |
+
border: 1px solid #0f0;
|
| 100 |
+
padding: 8px 15px;
|
| 101 |
+
background: rgba(0, 10, 0, 0.3);
|
| 102 |
+
position: relative;
|
| 103 |
+
overflow: hidden;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.system-header::before {
|
| 107 |
+
content: "";
|
| 108 |
+
position: absolute;
|
| 109 |
+
top: 0;
|
| 110 |
+
left: 0;
|
| 111 |
+
right: 0;
|
| 112 |
+
height: 1px;
|
| 113 |
+
background: linear-gradient(90deg, transparent, #0f0, transparent);
|
| 114 |
+
animation: scanline 3s linear infinite;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
@keyframes scanline {
|
| 118 |
+
0% { transform: translateX(-100%); }
|
| 119 |
+
100% { transform: translateX(100%); }
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.system-title {
|
| 123 |
+
font-size: 1.8em;
|
| 124 |
+
text-shadow: 0 0 8px #0f0;
|
| 125 |
+
letter-spacing: 2px;
|
| 126 |
+
text-transform: uppercase;
|
| 127 |
+
text-align: center;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
.system-status {
|
| 131 |
+
display: flex;
|
| 132 |
+
justify-content: space-between;
|
| 133 |
+
margin-top: 5px;
|
| 134 |
+
font-size: 0.9em;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
.status-led {
|
| 138 |
+
display: inline-block;
|
| 139 |
+
width: 8px;
|
| 140 |
+
height: 8px;
|
| 141 |
+
border-radius: 50%;
|
| 142 |
+
margin-right: 5px;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
.led-online { background: #0f0; box-shadow: 0 0 5px #0f0; animation: blink 1s infinite; }
|
| 146 |
+
.led-active { background: #0f0; box-shadow: 0 0 5px #0f0; }
|
| 147 |
+
.led-standby { background: #333; }
|
| 148 |
+
|
| 149 |
+
@keyframes blink {
|
| 150 |
+
0%, 100% { opacity: 1; }
|
| 151 |
+
50% { opacity: 0.3; }
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
/* Main Control Panel */
|
| 155 |
+
.control-panel {
|
| 156 |
+
border: 1px solid #0f0;
|
| 157 |
+
background: rgba(0, 5, 0, 0.8);
|
| 158 |
+
padding: 10px;
|
| 159 |
+
overflow-y: auto;
|
| 160 |
+
position: relative;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
.control-panel::before {
|
| 164 |
+
content: "CONTROL";
|
| 165 |
+
position: absolute;
|
| 166 |
+
top: -8px;
|
| 167 |
+
left: 15px;
|
| 168 |
+
background: #000;
|
| 169 |
+
padding: 0 8px;
|
| 170 |
+
font-size: 0.9em;
|
| 171 |
+
color: #0f0;
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
/* Visualization Panel */
|
| 175 |
+
.visualization-panel {
|
| 176 |
+
border: 1px solid #0f0;
|
| 177 |
+
background: #000;
|
| 178 |
+
position: relative;
|
| 179 |
+
overflow: hidden;
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
.visualization-panel::before {
|
| 183 |
+
content: "VISUALIZER";
|
| 184 |
+
position: absolute;
|
| 185 |
+
top: -8px;
|
| 186 |
+
left: 15px;
|
| 187 |
+
background: #000;
|
| 188 |
+
padding: 0 8px;
|
| 189 |
+
font-size: 0.9em;
|
| 190 |
+
color: #0f0;
|
| 191 |
+
z-index: 2;
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
#visual-canvas {
|
| 195 |
+
width: 100%;
|
| 196 |
+
height: 100%;
|
| 197 |
+
background: #000;
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
/* Data Log Panel */
|
| 201 |
+
.log-panel {
|
| 202 |
+
grid-column: 1 / -1;
|
| 203 |
+
border: 1px solid #0f0;
|
| 204 |
+
background: rgba(0, 8, 0, 0.7);
|
| 205 |
+
height: 180px;
|
| 206 |
+
padding: 8px;
|
| 207 |
+
font-family: 'VT323', monospace;
|
| 208 |
+
font-size: 0.8em;
|
| 209 |
+
overflow-y: scroll;
|
| 210 |
+
position: relative;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
.log-panel::before {
|
| 214 |
+
content: "SYSTEM LOG";
|
| 215 |
+
position: absolute;
|
| 216 |
+
top: -8px;
|
| 217 |
+
left: 15px;
|
| 218 |
+
background: #000;
|
| 219 |
+
padding: 0 8px;
|
| 220 |
+
font-size: 0.9em;
|
| 221 |
+
color: #0f0;
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
+
.log-entry {
|
| 225 |
+
margin-bottom: 2px;
|
| 226 |
+
padding-left: 5px;
|
| 227 |
+
border-left: 1px solid #0f0;
|
| 228 |
+
animation: logAppear 0.2s ease-out;
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
@keyframes logAppear {
|
| 232 |
+
from { opacity: 0; transform: translateY(3px); }
|
| 233 |
+
to { opacity: 1; transform: translateY(0); }
|
| 234 |
+
}
|
| 235 |
+
|
| 236 |
+
.log-time {
|
| 237 |
+
color: #080;
|
| 238 |
+
margin-right: 8px;
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
.log-info { color: #0f0; }
|
| 242 |
+
.log-warning { color: #ff0; }
|
| 243 |
+
.log-error { color: #f00; }
|
| 244 |
+
.log-success { color: #0f0; }
|
| 245 |
+
|
| 246 |
+
/* Terminal Input */
|
| 247 |
+
.terminal-input {
|
| 248 |
+
display: flex;
|
| 249 |
+
margin-top: 5px;
|
| 250 |
+
border-top: 1px solid #0f0;
|
| 251 |
+
padding-top: 5px;
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
.prompt {
|
| 255 |
+
color: #0f0;
|
| 256 |
+
margin-right: 5px;
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
#commandInput {
|
| 260 |
+
background: transparent;
|
| 261 |
+
border: none;
|
| 262 |
+
color: #0f0;
|
| 263 |
+
font-family: 'VT323', monospace;
|
| 264 |
+
font-size: 0.9em;
|
| 265 |
+
flex: 1;
|
| 266 |
+
outline: none;
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
+
/* Retro Buttons */
|
| 270 |
+
.btn-retro {
|
| 271 |
+
background: #000;
|
| 272 |
+
border: 1px solid #0f0;
|
| 273 |
+
color: #0f0;
|
| 274 |
+
font-family: 'VT323', monospace;
|
| 275 |
+
font-size: 1em;
|
| 276 |
+
padding: 5px 10px;
|
| 277 |
+
margin: 3px;
|
| 278 |
+
cursor: pointer;
|
| 279 |
+
transition: all 0.2s;
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
.btn-retro:hover {
|
| 283 |
+
background: #001100;
|
| 284 |
+
box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
|
| 285 |
+
}
|
| 286 |
+
|
| 287 |
+
.btn-retro:active {
|
| 288 |
+
background: #002200;
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
/* Progress Bar */
|
| 292 |
+
.progress-bar {
|
| 293 |
+
height: 12px;
|
| 294 |
+
background: rgba(0, 10, 0, 0.5);
|
| 295 |
+
border: 1px solid #0f0;
|
| 296 |
+
margin: 8px 0;
|
| 297 |
+
overflow: hidden;
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
.progress-fill {
|
| 301 |
+
height: 100%;
|
| 302 |
+
background: linear-gradient(90deg, #080, #0f0);
|
| 303 |
+
width: 0%;
|
| 304 |
+
transition: width 0.3s;
|
| 305 |
+
}
|
| 306 |
+
|
| 307 |
+
/* Fullscreen Button */
|
| 308 |
+
.btn-fullscreen {
|
| 309 |
+
position: fixed;
|
| 310 |
+
bottom: 10px;
|
| 311 |
+
right: 10px;
|
| 312 |
+
z-index: 1000;
|
| 313 |
+
background: rgba(0, 0, 0, 0.9);
|
| 314 |
+
border: 1px solid #0f0;
|
| 315 |
+
color: #0f0;
|
| 316 |
+
font-size: 1.2em;
|
| 317 |
+
width: 40px;
|
| 318 |
+
height: 40px;
|
| 319 |
+
cursor: pointer;
|
| 320 |
+
transition: all 0.3s;
|
| 321 |
+
opacity: 0.7;
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
.btn-fullscreen:hover {
|
| 325 |
+
opacity: 1;
|
| 326 |
+
box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
/* Export Modal */
|
| 330 |
+
.export-modal {
|
| 331 |
+
position: fixed;
|
| 332 |
+
top: 50%;
|
| 333 |
+
left: 50%;
|
| 334 |
+
transform: translate(-50%, -50%);
|
| 335 |
+
width: 600px;
|
| 336 |
+
background: rgba(0, 8, 0, 0.95);
|
| 337 |
+
border: 1px solid #0f0;
|
| 338 |
+
padding: 15px;
|
| 339 |
+
z-index: 2000;
|
| 340 |
+
box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
|
| 341 |
+
display: none;
|
| 342 |
+
}
|
| 343 |
+
|
| 344 |
+
.export-header {
|
| 345 |
+
font-size: 1.2em;
|
| 346 |
+
color: #0f0;
|
| 347 |
+
margin-bottom: 15px;
|
| 348 |
+
text-align: center;
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
.file-structure {
|
| 352 |
+
background: rgba(0, 0, 0, 0.5);
|
| 353 |
+
border: 1px solid #0f0;
|
| 354 |
+
padding: 10px;
|
| 355 |
+
margin: 15px 0;
|
| 356 |
+
font-size: 0.8em;
|
| 357 |
+
max-height: 200px;
|
| 358 |
+
overflow-y: auto;
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
.file-item {
|
| 362 |
+
margin: 3px 0;
|
| 363 |
+
padding-left: 15px;
|
| 364 |
+
}
|
| 365 |
+
|
| 366 |
+
.file-item::before {
|
| 367 |
+
content: ">";
|
| 368 |
+
margin-right: 5px;
|
| 369 |
+
color: #080;
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
.btn-export {
|
| 373 |
+
background: #000;
|
| 374 |
+
border: 1px solid #0f0;
|
| 375 |
+
color: #0f0;
|
| 376 |
+
padding: 8px 20px;
|
| 377 |
+
font-size: 1em;
|
| 378 |
+
cursor: pointer;
|
| 379 |
+
width: 100%;
|
| 380 |
+
margin-top: 15px;
|
| 381 |
+
text-transform: uppercase;
|
| 382 |
+
}
|
| 383 |
+
|
| 384 |
+
.btn-export:hover {
|
| 385 |
+
background: #001100;
|
| 386 |
+
box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
|
| 387 |
+
}
|
| 388 |
+
|
| 389 |
+
/* Overlay */
|
| 390 |
+
.overlay {
|
| 391 |
+
position: fixed;
|
| 392 |
+
top: 0;
|
| 393 |
+
left: 0;
|
| 394 |
+
right: 0;
|
| 395 |
+
bottom: 0;
|
| 396 |
+
background: rgba(0, 0, 0, 0.8);
|
| 397 |
+
z-index: 1000;
|
| 398 |
+
display: none;
|
| 399 |
+
}
|
| 400 |
+
|
| 401 |
+
/* Stats */
|
| 402 |
+
.stats {
|
| 403 |
+
display: grid;
|
| 404 |
+
grid-template-columns: repeat(2, 1fr);
|
| 405 |
+
gap: 8px;
|
| 406 |
+
margin: 10px 0;
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
.stat-item {
|
| 410 |
+
background: rgba(0, 10, 0, 0.3);
|
| 411 |
+
border: 1px solid #0f0;
|
| 412 |
+
padding: 6px;
|
| 413 |
+
}
|
| 414 |
+
|
| 415 |
+
.stat-label {
|
| 416 |
+
font-size: 0.8em;
|
| 417 |
+
color: #080;
|
| 418 |
+
}
|
| 419 |
+
|
| 420 |
+
.stat-value {
|
| 421 |
+
font-size: 1.1em;
|
| 422 |
+
color: #0f0;
|
| 423 |
+
}
|
| 424 |
+
|
| 425 |
+
/* Command Groups */
|
| 426 |
+
.command-group {
|
| 427 |
+
margin: 10px 0;
|
| 428 |
+
padding: 8px;
|
| 429 |
+
border: 1px solid rgba(0, 255, 0, 0.2);
|
| 430 |
+
background: rgba(0, 10, 0, 0.2);
|
| 431 |
+
}
|
| 432 |
+
|
| 433 |
+
.command-group-title {
|
| 434 |
+
color: #0f0;
|
| 435 |
+
font-size: 1em;
|
| 436 |
+
margin-bottom: 8px;
|
| 437 |
+
padding-bottom: 3px;
|
| 438 |
+
border-bottom: 1px solid #0f0;
|
| 439 |
+
}
|
| 440 |
+
|
| 441 |
+
/* Scrollbar */
|
| 442 |
+
::-webkit-scrollbar {
|
| 443 |
+
width: 8px;
|
| 444 |
+
}
|
| 445 |
+
|
| 446 |
+
::-webkit-scrollbar-track {
|
| 447 |
+
background: rgba(0, 10, 0, 0.3);
|
| 448 |
+
}
|
| 449 |
+
|
| 450 |
+
::-webkit-scrollbar-thumb {
|
| 451 |
+
background: rgba(0, 255, 0, 0.2);
|
| 452 |
+
border: 1px solid #0f0;
|
| 453 |
+
}
|
| 454 |
+
|
| 455 |
+
::-webkit-scrollbar-thumb:hover {
|
| 456 |
+
background: rgba(0, 255, 0, 0.3);
|
| 457 |
+
}
|
| 458 |
+
|
| 459 |
+
/* Responsive */
|
| 460 |
+
@media (max-width: 1024px) {
|
| 461 |
+
.terminal-grid {
|
| 462 |
+
grid-template-columns: 1fr;
|
| 463 |
+
grid-template-rows: auto 300px 250px 150px;
|
| 464 |
+
}
|
| 465 |
+
|
| 466 |
+
.control-panel {
|
| 467 |
+
max-height: 250px;
|
| 468 |
+
}
|
| 469 |
+
|
| 470 |
+
.export-modal {
|
| 471 |
+
width: 90%;
|
| 472 |
+
}
|
| 473 |
+
}
|
| 474 |
+
</style>
|
| 475 |
+
</head>
|
| 476 |
+
<body class="crt">
|
| 477 |
+
<!-- Minimal Fullscreen Button -->
|
| 478 |
+
<button class="btn-fullscreen" onclick="toggleFullscreen()" title="FULLSCREEN">⛶</button>
|
| 479 |
+
|
| 480 |
+
<!-- Main Terminal -->
|
| 481 |
+
<div class="terminal-grid">
|
| 482 |
+
<!-- System Header -->
|
| 483 |
+
<div class="system-header">
|
| 484 |
+
<div class="system-title">
|
| 485 |
+
MAGNET DATASETS by webXOS 2026
|
| 486 |
+
</div>
|
| 487 |
+
<div class="system-status">
|
| 488 |
+
<div>
|
| 489 |
+
<span class="status-led led-online"></span>SYSTEM: <span id="sysStatus">ONLINE</span>
|
| 490 |
+
<span class="status-led" style="margin-left: 15px;"></span>SAMPLES: <span id="sampleCount">0</span>
|
| 491 |
+
<span class="status-led" style="margin-left: 15px;"></span>BUFFER: <span id="bufferSize">0KB</span>
|
| 492 |
+
</div>
|
| 493 |
+
<div>
|
| 494 |
+
<span class="status-led led-active"></span>TIME: <span id="systemTime">00:00:00</span>
|
| 495 |
+
<span class="status-led" style="margin-left: 15px;"></span>WORKERS: <span id="workerCount">0/8</span>
|
| 496 |
+
</div>
|
| 497 |
+
</div>
|
| 498 |
+
</div>
|
| 499 |
+
|
| 500 |
+
<!-- Control Panel -->
|
| 501 |
+
<div class="control-panel">
|
| 502 |
+
<div class="command-group">
|
| 503 |
+
<div class="command-group-title">DATASET GENERATORS</div>
|
| 504 |
+
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px;">
|
| 505 |
+
<button class="btn-retro" onclick="toggleWorker('dipole')">
|
| 506 |
+
<span class="status-led" id="dipoleLed"></span> DIPOLE
|
| 507 |
+
</button>
|
| 508 |
+
<button class="btn-retro" onclick="toggleWorker('solenoid')">
|
| 509 |
+
<span class="status-led" id="solenoidLed"></span> SOLENOID
|
| 510 |
+
</button>
|
| 511 |
+
<button class="btn-retro" onclick="toggleWorker('permanent')">
|
| 512 |
+
<span class="status-led" id="permanentLed"></span> PERMANENT
|
| 513 |
+
</button>
|
| 514 |
+
<button class="btn-retro" onclick="toggleWorker('electro')">
|
| 515 |
+
<span class="status-led" id="electroLed"></span> ELECTRO
|
| 516 |
+
</button>
|
| 517 |
+
<button class="btn-retro" onclick="toggleWorker('toroid')">
|
| 518 |
+
<span class="status-led" id="toroidLed"></span> TOROIDAL
|
| 519 |
+
</button>
|
| 520 |
+
<button class="btn-retro" onclick="toggleWorker('anisotropic')">
|
| 521 |
+
<span class="status-led" id="anisotropicLed"></span> ANISOTROPIC
|
| 522 |
+
</button>
|
| 523 |
+
<button class="btn-retro" onclick="toggleWorker('halbach')">
|
| 524 |
+
<span class="status-led" id="halbachLed"></span> HALBACH
|
| 525 |
+
</button>
|
| 526 |
+
<button class="btn-retro" onclick="toggleWorker('custom')">
|
| 527 |
+
<span class="status-led" id="customLed"></span> CUSTOM
|
| 528 |
+
</button>
|
| 529 |
+
</div>
|
| 530 |
+
</div>
|
| 531 |
+
|
| 532 |
+
<div class="command-group">
|
| 533 |
+
<div class="command-group-title">CONTROLS</div>
|
| 534 |
+
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px;">
|
| 535 |
+
<button class="btn-retro" onclick="startCollection()">
|
| 536 |
+
▶ START
|
| 537 |
+
</button>
|
| 538 |
+
<button class="btn-retro" onclick="stopCollection()">
|
| 539 |
+
⏸ STOP
|
| 540 |
+
</button>
|
| 541 |
+
<button class="btn-retro" onclick="clearData()">
|
| 542 |
+
CLEAR
|
| 543 |
+
</button>
|
| 544 |
+
<button class="btn-retro" onclick="showExportModal()">
|
| 545 |
+
EXPORT
|
| 546 |
+
</button>
|
| 547 |
+
</div>
|
| 548 |
+
<div class="progress-bar">
|
| 549 |
+
<div class="progress-fill" id="collectionProgress" style="width: 0%"></div>
|
| 550 |
+
</div>
|
| 551 |
+
</div>
|
| 552 |
+
|
| 553 |
+
<div class="stats">
|
| 554 |
+
<div class="stat-item">
|
| 555 |
+
<div class="stat-label">DATA POINTS</div>
|
| 556 |
+
<div class="stat-value" id="dataPoints">0</div>
|
| 557 |
+
</div>
|
| 558 |
+
<div class="stat-item">
|
| 559 |
+
<div class="stat-label">THROUGHPUT</div>
|
| 560 |
+
<div class="stat-value" id="throughput">0/s</div>
|
| 561 |
+
</div>
|
| 562 |
+
<div class="stat-item">
|
| 563 |
+
<div class="stat-label">MEM USAGE</div>
|
| 564 |
+
<div class="stat-value" id="memory">64KB</div>
|
| 565 |
+
</div>
|
| 566 |
+
<div class="stat-item">
|
| 567 |
+
<div class="stat-label">FILE SIZE</div>
|
| 568 |
+
<div class="stat-value" id="fileSize">0MB</div>
|
| 569 |
+
</div>
|
| 570 |
+
</div>
|
| 571 |
+
</div>
|
| 572 |
+
|
| 573 |
+
<!-- Visualization Panel -->
|
| 574 |
+
<div class="visualization-panel">
|
| 575 |
+
<div id="visual-canvas"></div>
|
| 576 |
+
<div style="position: absolute; bottom: 5px; left: 10px; color: #0f0; font-size: 0.7em;">
|
| 577 |
+
WIREFRAME VISUALIZER @ 60FPS
|
| 578 |
+
</div>
|
| 579 |
+
</div>
|
| 580 |
+
|
| 581 |
+
<!-- System Log with Terminal Input -->
|
| 582 |
+
<div class="log-panel" id="logPanel">
|
| 583 |
+
<div class="log-entry">
|
| 584 |
+
<span class="log-time">[00:00:00]</span>
|
| 585 |
+
<span class="log-success">SYSTEM INITIALIZED</span>
|
| 586 |
+
</div>
|
| 587 |
+
<div class="log-entry">
|
| 588 |
+
<span class="log-time">[00:00:01]</span>
|
| 589 |
+
<span class="log-info">MAGNET DATASETS v1.0 READY</span>
|
| 590 |
+
</div>
|
| 591 |
+
<div class="log-entry">
|
| 592 |
+
<span class="log-time">[00:00:02]</span>
|
| 593 |
+
<span class="log-info">TYPE /help FOR COMMANDS</span>
|
| 594 |
+
</div>
|
| 595 |
+
</div>
|
| 596 |
+
</div>
|
| 597 |
+
|
| 598 |
+
<!-- Terminal Input -->
|
| 599 |
+
<div class="terminal-input" style="position: fixed; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.9); padding: 5px 15px; border-top: 1px solid #0f0;">
|
| 600 |
+
<span class="prompt">webXOS></span>
|
| 601 |
+
<input type="text" id="commandInput" placeholder="Type /help for commands..." onkeypress="handleCommand(event)">
|
| 602 |
+
</div>
|
| 603 |
+
|
| 604 |
+
<!-- Export Modal -->
|
| 605 |
+
<div class="overlay" id="exportOverlay" onclick="hideExportModal()"></div>
|
| 606 |
+
<div class="export-modal" id="exportModal">
|
| 607 |
+
<div class="export-header">EXPORT HUGGING FACE DATASET</div>
|
| 608 |
+
|
| 609 |
+
<div style="margin: 10px 0;">
|
| 610 |
+
<div style="color: #0f0; margin-bottom: 5px;">DATASET NAME:</div>
|
| 611 |
+
<input type="text" id="datasetName" value="magnet_dataset"
|
| 612 |
+
style="background: #000; color: #0f0; border: 1px solid #0f0; padding: 5px; width: 100%;">
|
| 613 |
+
</div>
|
| 614 |
+
|
| 615 |
+
<div style="margin: 10px 0;">
|
| 616 |
+
<div style="color: #0f0; margin-bottom: 5px;">FORMAT:</div>
|
| 617 |
+
<select id="exportFormat" style="background: #000; color: #0f0; border: 1px solid #0f0; padding: 5px; width: 100%;">
|
| 618 |
+
<option value="jsonl">JSON Lines (.jsonl) - Recommended</option>
|
| 619 |
+
<option value="parquet">Apache Parquet (.parquet)</option>
|
| 620 |
+
<option value="csv">CSV (.csv)</option>
|
| 621 |
+
</select>
|
| 622 |
+
</div>
|
| 623 |
+
|
| 624 |
+
<div class="file-structure" id="fileStructure">
|
| 625 |
+
<div class="file-item">magnet_dataset.zip</div>
|
| 626 |
+
<div class="file-item">README.md</div>
|
| 627 |
+
<div class="file-item">data/</div>
|
| 628 |
+
<div class="file-item" style="padding-left: 30px;">train-00001-of-00001.jsonl</div>
|
| 629 |
+
<div class="file-item">dataset_infos.json</div>
|
| 630 |
+
</div>
|
| 631 |
+
|
| 632 |
+
<div style="margin: 10px 0; color: #080; font-size: 0.9em;">
|
| 633 |
+
<div>📁 <strong>Hugging Face Compatible Structure:</strong></div>
|
| 634 |
+
<div style="margin-top: 5px;">• Uses correct sharded JSONL format</div>
|
| 635 |
+
<div>• Proper dataset_infos.json with correct splits</div>
|
| 636 |
+
<div>• Follows HF dataset library standards</div>
|
| 637 |
+
</div>
|
| 638 |
+
|
| 639 |
+
<button class="btn-export" onclick="exportDataset()">
|
| 640 |
+
GENERATE .ZIP FOR HUGGING FACE
|
| 641 |
+
</button>
|
| 642 |
+
</div>
|
| 643 |
+
|
| 644 |
+
<script>
|
| 645 |
+
// Global State
|
| 646 |
+
const systemState = {
|
| 647 |
+
workers: {},
|
| 648 |
+
datasets: {},
|
| 649 |
+
isCollecting: false,
|
| 650 |
+
startTime: Date.now(),
|
| 651 |
+
totalSamples: 0,
|
| 652 |
+
activeWorkers: 0
|
| 653 |
+
};
|
| 654 |
+
|
| 655 |
+
// Three.js Visualization
|
| 656 |
+
let scene, camera, renderer;
|
| 657 |
+
let animationId;
|
| 658 |
+
|
| 659 |
+
function initVisualization() {
|
| 660 |
+
scene = new THREE.Scene();
|
| 661 |
+
camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
|
| 662 |
+
renderer = new THREE.WebGLRenderer({ antialias: false });
|
| 663 |
+
renderer.setSize(document.getElementById('visual-canvas').clientWidth,
|
| 664 |
+
document.getElementById('visual-canvas').clientHeight);
|
| 665 |
+
renderer.setClearColor(0x000000);
|
| 666 |
+
document.getElementById('visual-canvas').appendChild(renderer.domElement);
|
| 667 |
+
|
| 668 |
+
camera.position.z = 15;
|
| 669 |
+
|
| 670 |
+
// Simple wireframe grid
|
| 671 |
+
const gridSize = 20;
|
| 672 |
+
const gridDivisions = 20;
|
| 673 |
+
const gridGeometry = new THREE.PlaneGeometry(gridSize, gridSize, gridDivisions, gridDivisions);
|
| 674 |
+
const gridMaterial = new THREE.MeshBasicMaterial({
|
| 675 |
+
color: 0x002200,
|
| 676 |
+
wireframe: true,
|
| 677 |
+
transparent: true,
|
| 678 |
+
opacity: 0.3
|
| 679 |
+
});
|
| 680 |
+
const grid = new THREE.Mesh(gridGeometry, gridMaterial);
|
| 681 |
+
grid.rotation.x = -Math.PI / 2;
|
| 682 |
+
scene.add(grid);
|
| 683 |
+
|
| 684 |
+
// Simple points
|
| 685 |
+
const pointsGeometry = new THREE.BufferGeometry();
|
| 686 |
+
const pointsCount = 200;
|
| 687 |
+
const positions = new Float32Array(pointsCount * 3);
|
| 688 |
+
|
| 689 |
+
for (let i = 0; i < pointsCount * 3; i++) {
|
| 690 |
+
positions[i] = (Math.random() - 0.5) * 15;
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
pointsGeometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));
|
| 694 |
+
|
| 695 |
+
const pointsMaterial = new THREE.PointsMaterial({
|
| 696 |
+
color: 0x00ff00,
|
| 697 |
+
size: 0.05,
|
| 698 |
+
transparent: true,
|
| 699 |
+
opacity: 0.5
|
| 700 |
+
});
|
| 701 |
+
|
| 702 |
+
const points = new THREE.Points(pointsGeometry, pointsMaterial);
|
| 703 |
+
scene.add(points);
|
| 704 |
+
|
| 705 |
+
// Start animation
|
| 706 |
+
animateVisualization();
|
| 707 |
+
}
|
| 708 |
+
|
| 709 |
+
function animateVisualization() {
|
| 710 |
+
animationId = requestAnimationFrame(animateVisualization);
|
| 711 |
+
|
| 712 |
+
scene.children.forEach(child => {
|
| 713 |
+
if (child.isPoints) {
|
| 714 |
+
child.rotation.y += 0.001;
|
| 715 |
+
child.rotation.x += 0.0005;
|
| 716 |
+
}
|
| 717 |
+
});
|
| 718 |
+
|
| 719 |
+
renderer.render(scene, camera);
|
| 720 |
+
}
|
| 721 |
+
|
| 722 |
+
// Initialize Web Workers
|
| 723 |
+
function initWorkers() {
|
| 724 |
+
const workerTypes = [
|
| 725 |
+
'dipole', 'solenoid', 'permanent', 'electro',
|
| 726 |
+
'toroid', 'anisotropic', 'halbach', 'custom'
|
| 727 |
+
];
|
| 728 |
+
|
| 729 |
+
workerTypes.forEach(type => {
|
| 730 |
+
const workerCode = `
|
| 731 |
+
self.onmessage = function(e) {
|
| 732 |
+
const { command, params } = e.data;
|
| 733 |
+
|
| 734 |
+
if (command === 'start') {
|
| 735 |
+
this.interval = setInterval(() => {
|
| 736 |
+
const data = generateData('${type}');
|
| 737 |
+
self.postMessage({ type: 'data', data });
|
| 738 |
+
}, 50);
|
| 739 |
+
}
|
| 740 |
+
|
| 741 |
+
if (command === 'stop') {
|
| 742 |
+
clearInterval(this.interval);
|
| 743 |
+
}
|
| 744 |
+
};
|
| 745 |
+
|
| 746 |
+
function generateData(type) {
|
| 747 |
+
const timestamp = Date.now();
|
| 748 |
+
const x = (Math.random() - 0.5) * 10;
|
| 749 |
+
const y = (Math.random() - 0.5) * 10;
|
| 750 |
+
const z = (Math.random() - 0.5) * 10;
|
| 751 |
+
|
| 752 |
+
let field = [0, 0, 0];
|
| 753 |
+
let strength = 0;
|
| 754 |
+
|
| 755 |
+
switch(type) {
|
| 756 |
+
case 'dipole':
|
| 757 |
+
field = [
|
| 758 |
+
(Math.random() - 0.5) * 2,
|
| 759 |
+
(Math.random() - 0.5) * 2,
|
| 760 |
+
(Math.random() - 0.5) * 2
|
| 761 |
+
];
|
| 762 |
+
strength = Math.sqrt(field[0]**2 + field[1]**2 + field[2]**2);
|
| 763 |
+
break;
|
| 764 |
+
|
| 765 |
+
case 'solenoid':
|
| 766 |
+
field = [
|
| 767 |
+
(Math.random() - 0.5) * 0.5,
|
| 768 |
+
(Math.random() - 0.5) * 1.5,
|
| 769 |
+
(Math.random() - 0.5) * 0.5
|
| 770 |
+
];
|
| 771 |
+
strength = Math.abs(field[1]);
|
| 772 |
+
break;
|
| 773 |
+
|
| 774 |
+
case 'permanent':
|
| 775 |
+
field = [
|
| 776 |
+
(Math.random() - 0.5) * 3,
|
| 777 |
+
(Math.random() - 0.5) * 3,
|
| 778 |
+
(Math.random() - 0.5) * 3
|
| 779 |
+
];
|
| 780 |
+
strength = Math.sqrt(field[0]**2 + field[1]**2 + field[2]**2);
|
| 781 |
+
break;
|
| 782 |
+
|
| 783 |
+
case 'electro':
|
| 784 |
+
const current = 1 + Math.random();
|
| 785 |
+
field = [
|
| 786 |
+
(Math.random() - 0.5) * current,
|
| 787 |
+
(Math.random() - 0.5) * current,
|
| 788 |
+
(Math.random() - 0.5) * current
|
| 789 |
+
];
|
| 790 |
+
strength = current;
|
| 791 |
+
break;
|
| 792 |
+
|
| 793 |
+
case 'toroid':
|
| 794 |
+
field = [
|
| 795 |
+
(Math.random() - 0.5) * 0.3,
|
| 796 |
+
(Math.random() - 0.5) * 0.8,
|
| 797 |
+
(Math.random() - 0.5) * 0.3
|
| 798 |
+
];
|
| 799 |
+
strength = Math.sqrt(field[0]**2 + field[1]**2 + field[2]**2);
|
| 800 |
+
break;
|
| 801 |
+
|
| 802 |
+
case 'anisotropic':
|
| 803 |
+
field = [
|
| 804 |
+
(Math.random() - 0.5) * 2.5,
|
| 805 |
+
(Math.random() - 0.5) * 1.0,
|
| 806 |
+
(Math.random() - 0.5) * 0.5
|
| 807 |
+
];
|
| 808 |
+
strength = Math.abs(field[0]);
|
| 809 |
+
break;
|
| 810 |
+
|
| 811 |
+
case 'halbach':
|
| 812 |
+
field = [
|
| 813 |
+
(Math.random() - 0.5) * 4,
|
| 814 |
+
(Math.random() - 0.5) * 4,
|
| 815 |
+
(Math.random() - 0.5) * 4
|
| 816 |
+
];
|
| 817 |
+
strength = Math.sqrt(field[0]**2 + field[1]**2 + field[2]**2) * 1.5;
|
| 818 |
+
break;
|
| 819 |
+
|
| 820 |
+
case 'custom':
|
| 821 |
+
field = [
|
| 822 |
+
Math.sin(x) * Math.cos(z),
|
| 823 |
+
Math.cos(x) * Math.sin(z),
|
| 824 |
+
Math.sin(y) * Math.cos(x)
|
| 825 |
+
];
|
| 826 |
+
strength = Math.sqrt(field[0]**2 + field[1]**2 + field[2]**2);
|
| 827 |
+
break;
|
| 828 |
+
}
|
| 829 |
+
|
| 830 |
+
return {
|
| 831 |
+
timestamp: timestamp,
|
| 832 |
+
type: type,
|
| 833 |
+
position: [x, y, z],
|
| 834 |
+
field: field,
|
| 835 |
+
strength: strength
|
| 836 |
+
};
|
| 837 |
+
}
|
| 838 |
+
`;
|
| 839 |
+
|
| 840 |
+
const blob = new Blob([workerCode], { type: 'application/javascript' });
|
| 841 |
+
const worker = new Worker(URL.createObjectURL(blob));
|
| 842 |
+
|
| 843 |
+
worker.onmessage = (e) => {
|
| 844 |
+
if (e.data.type === 'data' && systemState.isCollecting) {
|
| 845 |
+
handleWorkerData(type, e.data.data);
|
| 846 |
+
}
|
| 847 |
+
};
|
| 848 |
+
|
| 849 |
+
systemState.workers[type] = {
|
| 850 |
+
worker: worker,
|
| 851 |
+
active: false,
|
| 852 |
+
data: []
|
| 853 |
+
};
|
| 854 |
+
});
|
| 855 |
+
}
|
| 856 |
+
|
| 857 |
+
// Handle data from workers
|
| 858 |
+
function handleWorkerData(type, data) {
|
| 859 |
+
if (!systemState.datasets[type]) {
|
| 860 |
+
systemState.datasets[type] = [];
|
| 861 |
+
}
|
| 862 |
+
|
| 863 |
+
systemState.datasets[type].push(data);
|
| 864 |
+
systemState.totalSamples++;
|
| 865 |
+
|
| 866 |
+
if (systemState.totalSamples % 100 === 0) {
|
| 867 |
+
updateStats();
|
| 868 |
+
logData(`${type}: ${systemState.datasets[type].length} samples`);
|
| 869 |
+
}
|
| 870 |
+
}
|
| 871 |
+
|
| 872 |
+
// Toggle worker on/off
|
| 873 |
+
function toggleWorker(type) {
|
| 874 |
+
const worker = systemState.workers[type];
|
| 875 |
+
const led = document.getElementById(`${type}Led`);
|
| 876 |
+
|
| 877 |
+
if (worker.active) {
|
| 878 |
+
worker.worker.postMessage({ command: 'stop' });
|
| 879 |
+
worker.active = false;
|
| 880 |
+
led.className = 'status-led';
|
| 881 |
+
systemState.activeWorkers--;
|
| 882 |
+
logInfo(`${type} stopped`);
|
| 883 |
+
} else {
|
| 884 |
+
worker.worker.postMessage({ command: 'start' });
|
| 885 |
+
worker.active = true;
|
| 886 |
+
led.className = 'status-led led-active';
|
| 887 |
+
systemState.activeWorkers++;
|
| 888 |
+
logInfo(`${type} started`);
|
| 889 |
+
}
|
| 890 |
+
|
| 891 |
+
document.getElementById('workerCount').textContent = `${systemState.activeWorkers}/8`;
|
| 892 |
+
updateStats();
|
| 893 |
+
}
|
| 894 |
+
|
| 895 |
+
// Start data collection
|
| 896 |
+
function startCollection() {
|
| 897 |
+
systemState.isCollecting = true;
|
| 898 |
+
systemState.startTime = Date.now();
|
| 899 |
+
document.getElementById('sysStatus').textContent = 'COLLECTING';
|
| 900 |
+
logSuccess('Collection started');
|
| 901 |
+
|
| 902 |
+
Object.keys(systemState.workers).forEach(type => {
|
| 903 |
+
if (systemState.workers[type].active) {
|
| 904 |
+
systemState.workers[type].worker.postMessage({ command: 'start' });
|
| 905 |
+
}
|
| 906 |
+
});
|
| 907 |
+
}
|
| 908 |
+
|
| 909 |
+
// Stop data collection
|
| 910 |
+
function stopCollection() {
|
| 911 |
+
systemState.isCollecting = false;
|
| 912 |
+
document.getElementById('sysStatus').textContent = 'ONLINE';
|
| 913 |
+
logWarning('Collection stopped');
|
| 914 |
+
|
| 915 |
+
Object.keys(systemState.workers).forEach(type => {
|
| 916 |
+
systemState.workers[type].worker.postMessage({ command: 'stop' });
|
| 917 |
+
});
|
| 918 |
+
}
|
| 919 |
+
|
| 920 |
+
// Clear all data
|
| 921 |
+
function clearData() {
|
| 922 |
+
Object.keys(systemState.datasets).forEach(type => {
|
| 923 |
+
systemState.datasets[type] = [];
|
| 924 |
+
});
|
| 925 |
+
systemState.totalSamples = 0;
|
| 926 |
+
systemState.startTime = Date.now();
|
| 927 |
+
updateStats();
|
| 928 |
+
logInfo('Data cleared');
|
| 929 |
+
}
|
| 930 |
+
|
| 931 |
+
// Update statistics
|
| 932 |
+
function updateStats() {
|
| 933 |
+
document.getElementById('dataPoints').textContent = systemState.totalSamples.toLocaleString();
|
| 934 |
+
document.getElementById('sampleCount').textContent = systemState.totalSamples.toLocaleString();
|
| 935 |
+
|
| 936 |
+
const elapsed = (Date.now() - systemState.startTime) / 1000;
|
| 937 |
+
const throughput = elapsed > 0 ? Math.round(systemState.totalSamples / elapsed) : 0;
|
| 938 |
+
document.getElementById('throughput').textContent = `${throughput}/s`;
|
| 939 |
+
|
| 940 |
+
const avgSampleSize = 128;
|
| 941 |
+
const totalSize = systemState.totalSamples * avgSampleSize;
|
| 942 |
+
const sizeMB = (totalSize / (1024 * 1024)).toFixed(2);
|
| 943 |
+
document.getElementById('fileSize').textContent = `${sizeMB}MB`;
|
| 944 |
+
document.getElementById('bufferSize').textContent = `${Math.round(totalSize / 1024)}KB`;
|
| 945 |
+
|
| 946 |
+
const progress = Math.min((systemState.totalSamples / 50000) * 100, 100);
|
| 947 |
+
document.getElementById('collectionProgress').style.width = `${progress}%`;
|
| 948 |
+
|
| 949 |
+
const memory = 64 + Math.floor(totalSize / 1024);
|
| 950 |
+
document.getElementById('memory').textContent = `${Math.min(memory, 1024)}KB`;
|
| 951 |
+
}
|
| 952 |
+
|
| 953 |
+
// Logging functions
|
| 954 |
+
function logInfo(message) {
|
| 955 |
+
addLog(message, 'info');
|
| 956 |
+
}
|
| 957 |
+
|
| 958 |
+
function logWarning(message) {
|
| 959 |
+
addLog(message, 'warning');
|
| 960 |
+
}
|
| 961 |
+
|
| 962 |
+
function logError(message) {
|
| 963 |
+
addLog(message, 'error');
|
| 964 |
+
}
|
| 965 |
+
|
| 966 |
+
function logSuccess(message) {
|
| 967 |
+
addLog(message, 'success');
|
| 968 |
+
}
|
| 969 |
+
|
| 970 |
+
function logData(message) {
|
| 971 |
+
if (Math.random() < 0.1) {
|
| 972 |
+
addLog(message, 'info');
|
| 973 |
+
}
|
| 974 |
+
}
|
| 975 |
+
|
| 976 |
+
function addLog(message, type) {
|
| 977 |
+
const logPanel = document.getElementById('logPanel');
|
| 978 |
+
const time = new Date().toLocaleTimeString();
|
| 979 |
+
const entry = document.createElement('div');
|
| 980 |
+
entry.className = 'log-entry';
|
| 981 |
+
entry.innerHTML = `<span class="log-time">[${time}]</span> <span class="log-${type}">${message}</span>`;
|
| 982 |
+
|
| 983 |
+
logPanel.appendChild(entry);
|
| 984 |
+
logPanel.scrollTop = logPanel.scrollHeight;
|
| 985 |
+
|
| 986 |
+
const entries = logPanel.querySelectorAll('.log-entry');
|
| 987 |
+
if (entries.length > 30) {
|
| 988 |
+
entries[0].remove();
|
| 989 |
+
}
|
| 990 |
+
}
|
| 991 |
+
|
| 992 |
+
// Export Modal Functions
|
| 993 |
+
function showExportModal() {
|
| 994 |
+
if (systemState.totalSamples === 0) {
|
| 995 |
+
logError('No data to export');
|
| 996 |
+
return;
|
| 997 |
+
}
|
| 998 |
+
|
| 999 |
+
document.getElementById('exportOverlay').style.display = 'block';
|
| 1000 |
+
document.getElementById('exportModal').style.display = 'block';
|
| 1001 |
+
updateFileStructure();
|
| 1002 |
+
}
|
| 1003 |
+
|
| 1004 |
+
function hideExportModal() {
|
| 1005 |
+
document.getElementById('exportOverlay').style.display = 'none';
|
| 1006 |
+
document.getElementById('exportModal').style.display = 'none';
|
| 1007 |
+
}
|
| 1008 |
+
|
| 1009 |
+
function updateFileStructure() {
|
| 1010 |
+
const structure = document.getElementById('fileStructure');
|
| 1011 |
+
const name = document.getElementById('datasetName').value || 'magnet_dataset';
|
| 1012 |
+
const format = document.getElementById('exportFormat').value;
|
| 1013 |
+
|
| 1014 |
+
let html = `<div class="file-item">${name}.zip</div>`;
|
| 1015 |
+
html += `<div class="file-item">README.md</div>`;
|
| 1016 |
+
html += `<div class="file-item">data/</div>`;
|
| 1017 |
+
|
| 1018 |
+
if (format === 'jsonl') {
|
| 1019 |
+
html += `<div class="file-item" style="padding-left: 30px;">train-00001-of-00001.jsonl</div>`;
|
| 1020 |
+
} else if (format === 'parquet') {
|
| 1021 |
+
html += `<div class="file-item" style="padding-left: 30px;">train-00001-of-00001.parquet</div>`;
|
| 1022 |
+
} else {
|
| 1023 |
+
html += `<div class="file-item" style="padding-left: 30px;">train.csv</div>`;
|
| 1024 |
+
}
|
| 1025 |
+
|
| 1026 |
+
html += `<div class="file-item">dataset_infos.json</div>`;
|
| 1027 |
+
|
| 1028 |
+
structure.innerHTML = html;
|
| 1029 |
+
}
|
| 1030 |
+
|
| 1031 |
+
// Convert to JSON Lines format (one JSON object per line)
|
| 1032 |
+
function convertToJSONL(data) {
|
| 1033 |
+
return data.map(item => JSON.stringify(item)).join('\n');
|
| 1034 |
+
}
|
| 1035 |
+
|
| 1036 |
+
// Convert to CSV format
|
| 1037 |
+
function convertToCSV(data) {
|
| 1038 |
+
if (data.length === 0) return '';
|
| 1039 |
+
|
| 1040 |
+
const headers = ['timestamp', 'type', 'position_x', 'position_y', 'position_z', 'field_x', 'field_y', 'field_z', 'strength'];
|
| 1041 |
+
const rows = data.map(item => {
|
| 1042 |
+
return [
|
| 1043 |
+
item.timestamp,
|
| 1044 |
+
item.type,
|
| 1045 |
+
item.position[0],
|
| 1046 |
+
item.position[1],
|
| 1047 |
+
item.position[2],
|
| 1048 |
+
item.field[0],
|
| 1049 |
+
item.field[1],
|
| 1050 |
+
item.field[2],
|
| 1051 |
+
item.strength
|
| 1052 |
+
].join(',');
|
| 1053 |
+
});
|
| 1054 |
+
|
| 1055 |
+
return [headers.join(','), ...rows].join('\n');
|
| 1056 |
+
}
|
| 1057 |
+
|
| 1058 |
+
// Export dataset as .zip - FIXED Hugging Face Compatibility v4.0
|
| 1059 |
+
async function exportDataset() {
|
| 1060 |
+
logInfo('Generating Hugging Face compatible dataset...');
|
| 1061 |
+
|
| 1062 |
+
const zip = new JSZip();
|
| 1063 |
+
const datasetName = document.getElementById('datasetName').value || 'magnet_dataset';
|
| 1064 |
+
const format = document.getElementById('exportFormat').value;
|
| 1065 |
+
|
| 1066 |
+
// Create data directory
|
| 1067 |
+
const dataFolder = zip.folder("data");
|
| 1068 |
+
|
| 1069 |
+
// Combine all data from all workers
|
| 1070 |
+
const allData = [];
|
| 1071 |
+
Object.keys(systemState.datasets).forEach(type => {
|
| 1072 |
+
if (systemState.datasets[type].length > 0) {
|
| 1073 |
+
allData.push(...systemState.datasets[type]);
|
| 1074 |
+
}
|
| 1075 |
+
});
|
| 1076 |
+
|
| 1077 |
+
// Shuffle data for better distribution
|
| 1078 |
+
const shuffledData = [...allData].sort(() => Math.random() - 0.5);
|
| 1079 |
+
|
| 1080 |
+
// Create train split file based on format
|
| 1081 |
+
if (format === 'jsonl') {
|
| 1082 |
+
// JSON Lines format (recommended for HF)
|
| 1083 |
+
const jsonlContent = convertToJSONL(shuffledData);
|
| 1084 |
+
dataFolder.file("train-00001-of-00001.jsonl", jsonlContent);
|
| 1085 |
+
} else if (format === 'parquet') {
|
| 1086 |
+
// Parquet format would require a library, using JSONL for now
|
| 1087 |
+
const jsonlContent = convertToJSONL(shuffledData);
|
| 1088 |
+
dataFolder.file("train-00001-of-00001.jsonl", jsonlContent);
|
| 1089 |
+
} else {
|
| 1090 |
+
// CSV format
|
| 1091 |
+
const csvContent = convertToCSV(shuffledData);
|
| 1092 |
+
dataFolder.file("train.csv", csvContent);
|
| 1093 |
+
}
|
| 1094 |
+
|
| 1095 |
+
// Create README.md with dataset card format
|
| 1096 |
+
const readme = `---
|
| 1097 |
+
language: en
|
| 1098 |
+
license: apache-2.0
|
| 1099 |
+
task_categories:
|
| 1100 |
+
- physics
|
| 1101 |
+
- machine-learning
|
| 1102 |
+
tags:
|
| 1103 |
+
- physics
|
| 1104 |
+
- magnetic-fields
|
| 1105 |
+
- simulation
|
| 1106 |
+
- science
|
| 1107 |
+
---
|
| 1108 |
+
|
| 1109 |
+
# Dataset Card for ${datasetName.toUpperCase()}
|
| 1110 |
+
|
| 1111 |
+
## Dataset Description
|
| 1112 |
+
|
| 1113 |
+
- **Homepage:** https://github.com/webxos/magnet-datasets
|
| 1114 |
+
- **Repository:** https://huggingface.co/datasets/webxos/${datasetName}
|
| 1115 |
+
- **Paper:** N/A
|
| 1116 |
+
- **Point of Contact:** webXOS Team
|
| 1117 |
+
|
| 1118 |
+
### Dataset Summary
|
| 1119 |
+
|
| 1120 |
+
Magnetic field simulation dataset generated by webXOS MAGNET DATASETS v4.0. This dataset contains simulated magnetic field measurements for various magnet configurations.
|
| 1121 |
+
|
| 1122 |
+
### Supported Tasks and Leaderboards
|
| 1123 |
+
|
| 1124 |
+
- Magnetic field prediction
|
| 1125 |
+
- Physics simulation
|
| 1126 |
+
- Scientific machine learning
|
| 1127 |
+
- Sensor calibration
|
| 1128 |
+
|
| 1129 |
+
### Languages
|
| 1130 |
+
|
| 1131 |
+
English
|
| 1132 |
+
|
| 1133 |
+
## Dataset Structure
|
| 1134 |
+
|
| 1135 |
+
### Data Instances
|
| 1136 |
+
|
| 1137 |
+
Each instance contains:
|
| 1138 |
+
- timestamp: Generation timestamp
|
| 1139 |
+
- type: Magnet type (dipole, solenoid, etc.)
|
| 1140 |
+
- position: [x, y, z] coordinates in meters
|
| 1141 |
+
- field: [Bx, By, Bz] magnetic field vector in Tesla
|
| 1142 |
+
- strength: Magnitude of magnetic field in Tesla
|
| 1143 |
+
|
| 1144 |
+
### Data Splits
|
| 1145 |
+
|
| 1146 |
+
The dataset has only a train split with ${shuffledData.length.toLocaleString()} examples.
|
| 1147 |
+
|
| 1148 |
+
## Dataset Creation
|
| 1149 |
+
|
| 1150 |
+
### Curation Rationale
|
| 1151 |
+
|
| 1152 |
+
This dataset was created to provide high-quality simulated magnetic field data for machine learning research in physics and engineering.
|
| 1153 |
+
|
| 1154 |
+
### Source Data
|
| 1155 |
+
|
| 1156 |
+
Synthetic data generated using physics-based simulations.
|
| 1157 |
+
|
| 1158 |
+
### Annotations
|
| 1159 |
+
|
| 1160 |
+
No annotations, only raw simulation data.
|
| 1161 |
+
|
| 1162 |
+
### Personal and Sensitive Information
|
| 1163 |
+
|
| 1164 |
+
None.
|
| 1165 |
+
|
| 1166 |
+
## Considerations for Using the Data
|
| 1167 |
+
|
| 1168 |
+
### Social Impact of Dataset
|
| 1169 |
+
|
| 1170 |
+
This dataset enables research in electromagnetic field prediction and physics-informed machine learning.
|
| 1171 |
+
|
| 1172 |
+
### Discussion of Biases
|
| 1173 |
+
|
| 1174 |
+
The data is synthetic and evenly distributed across magnet types.
|
| 1175 |
+
|
| 1176 |
+
### Other Known Limitations
|
| 1177 |
+
|
| 1178 |
+
Data is simulated and may not match real-world measurements exactly.
|
| 1179 |
+
|
| 1180 |
+
## Additional Information
|
| 1181 |
+
|
| 1182 |
+
### Dataset Curators
|
| 1183 |
+
|
| 1184 |
+
webXOS Team
|
| 1185 |
+
|
| 1186 |
+
### Licensing Information
|
| 1187 |
+
|
| 1188 |
+
Apache 2.0
|
| 1189 |
+
|
| 1190 |
+
### Citation Information
|
| 1191 |
+
|
| 1192 |
+
\`\`\`bibtex
|
| 1193 |
+
@dataset{webxos_magnet_2026,
|
| 1194 |
+
title = {Magnetic Field Dataset},
|
| 1195 |
+
author = {webXOS},
|
| 1196 |
+
year = {2026},
|
| 1197 |
+
publisher = {Hugging Face},
|
| 1198 |
+
version = {4.0.0}
|
| 1199 |
+
}
|
| 1200 |
+
\`\`\`
|
| 1201 |
+
|
| 1202 |
+
### Contributions
|
| 1203 |
+
|
| 1204 |
+
Thanks to the webXOS team for creating this dataset.`;
|
| 1205 |
+
|
| 1206 |
+
zip.file("README.md", readme);
|
| 1207 |
+
|
| 1208 |
+
// Create CORRECT dataset_infos.json - FIXED FORMAT v4.0
|
| 1209 |
+
const datasetInfos = {
|
| 1210 |
+
[datasetName]: {
|
| 1211 |
+
description: "Magnetic field simulation dataset",
|
| 1212 |
+
citation: "@dataset{webxos_magnet_2026,\n title = {Magnetic Field Dataset},\n author = {webXOS},\n year = {2026}\n}",
|
| 1213 |
+
homepage: "https://huggingface.co/datasets/webxos/" + datasetName,
|
| 1214 |
+
license: "apache-2.0",
|
| 1215 |
+
features: {
|
| 1216 |
+
timestamp: {
|
| 1217 |
+
dtype: "int64",
|
| 1218 |
+
id: null,
|
| 1219 |
+
_type: "Value"
|
| 1220 |
+
},
|
| 1221 |
+
type: {
|
| 1222 |
+
dtype: "string",
|
| 1223 |
+
id: null,
|
| 1224 |
+
_type: "Value"
|
| 1225 |
+
},
|
| 1226 |
+
position: {
|
| 1227 |
+
feature: {
|
| 1228 |
+
dtype: "float64",
|
| 1229 |
+
id: null,
|
| 1230 |
+
_type: "Value"
|
| 1231 |
+
},
|
| 1232 |
+
id: null,
|
| 1233 |
+
_type: "Sequence"
|
| 1234 |
+
},
|
| 1235 |
+
field: {
|
| 1236 |
+
feature: {
|
| 1237 |
+
dtype: "float64",
|
| 1238 |
+
id: null,
|
| 1239 |
+
_type: "Value"
|
| 1240 |
+
},
|
| 1241 |
+
id: null,
|
| 1242 |
+
_type: "Sequence"
|
| 1243 |
+
},
|
| 1244 |
+
strength: {
|
| 1245 |
+
dtype: "float64",
|
| 1246 |
+
id: null,
|
| 1247 |
+
_type: "Value"
|
| 1248 |
+
}
|
| 1249 |
+
},
|
| 1250 |
+
post_processed: null,
|
| 1251 |
+
supervised_keys: null,
|
| 1252 |
+
task_templates: [],
|
| 1253 |
+
builder_name: "webxos_magnet",
|
| 1254 |
+
config_name: datasetName,
|
| 1255 |
+
version: {
|
| 1256 |
+
version_str: "4.0.0",
|
| 1257 |
+
major: 4,
|
| 1258 |
+
minor: 0,
|
| 1259 |
+
patch: 0
|
| 1260 |
+
},
|
| 1261 |
+
splits: {
|
| 1262 |
+
train: {
|
| 1263 |
+
name: "train",
|
| 1264 |
+
num_bytes: shuffledData.length * 128,
|
| 1265 |
+
num_examples: shuffledData.length,
|
| 1266 |
+
dataset_name: datasetName
|
| 1267 |
+
}
|
| 1268 |
+
},
|
| 1269 |
+
download_size: shuffledData.length * 128,
|
| 1270 |
+
dataset_size: shuffledData.length * 128
|
| 1271 |
+
}
|
| 1272 |
+
};
|
| 1273 |
+
|
| 1274 |
+
zip.file("dataset_infos.json", JSON.stringify(datasetInfos, null, 2));
|
| 1275 |
+
|
| 1276 |
+
// Create a simple metadata file
|
| 1277 |
+
const metadata = {
|
| 1278 |
+
dataset_name: datasetName,
|
| 1279 |
+
version: "4.0.0",
|
| 1280 |
+
created_at: new Date().toISOString(),
|
| 1281 |
+
total_samples: shuffledData.length,
|
| 1282 |
+
magnet_types: Object.keys(systemState.datasets).filter(type => systemState.datasets[type].length > 0),
|
| 1283 |
+
data_format: format === 'jsonl' ? 'jsonl' : format,
|
| 1284 |
+
huggingface_compatible: true,
|
| 1285 |
+
fix_applied: "v4.0 - Fixed dataset_infos.json structure for HF compatibility"
|
| 1286 |
+
};
|
| 1287 |
+
|
| 1288 |
+
zip.file("metadata.json", JSON.stringify(metadata, null, 2));
|
| 1289 |
+
|
| 1290 |
+
// Generate and download zip
|
| 1291 |
+
const content = await zip.generateAsync({ type: "blob" });
|
| 1292 |
+
const blobUrl = URL.createObjectURL(content);
|
| 1293 |
+
const a = document.createElement('a');
|
| 1294 |
+
a.href = blobUrl;
|
| 1295 |
+
a.download = `${datasetName}_hf_v4_${Date.now()}.zip`;
|
| 1296 |
+
document.body.appendChild(a);
|
| 1297 |
+
a.click();
|
| 1298 |
+
document.body.removeChild(a);
|
| 1299 |
+
URL.revokeObjectURL(blobUrl);
|
| 1300 |
+
|
| 1301 |
+
const sizeMB = (content.size / (1024*1024)).toFixed(2);
|
| 1302 |
+
logSuccess(`✅ Hugging Face dataset exported: ${datasetName}.zip (${sizeMB} MB)`);
|
| 1303 |
+
logInfo(`📁 Files: README.md, dataset_infos.json, data/train-*.jsonl`);
|
| 1304 |
+
logInfo(`✅ Fixed HF compatibility issues - v4.0`);
|
| 1305 |
+
logInfo(`✅ post_processed set to null`);
|
| 1306 |
+
logInfo(`✅ supervised_keys set to null`);
|
| 1307 |
+
logInfo(`✅ Removed length from Sequence features`);
|
| 1308 |
+
hideExportModal();
|
| 1309 |
+
}
|
| 1310 |
+
|
| 1311 |
+
// Terminal Commands
|
| 1312 |
+
function handleCommand(event) {
|
| 1313 |
+
if (event.key === 'Enter') {
|
| 1314 |
+
const input = document.getElementById('commandInput');
|
| 1315 |
+
const command = input.value.trim().toLowerCase();
|
| 1316 |
+
input.value = '';
|
| 1317 |
+
|
| 1318 |
+
if (!command) return;
|
| 1319 |
+
|
| 1320 |
+
logInfo(`> ${command}`);
|
| 1321 |
+
|
| 1322 |
+
const parts = command.split(' ');
|
| 1323 |
+
const cmd = parts[0];
|
| 1324 |
+
|
| 1325 |
+
switch(cmd) {
|
| 1326 |
+
case '/help':
|
| 1327 |
+
showHelp();
|
| 1328 |
+
break;
|
| 1329 |
+
case '/start':
|
| 1330 |
+
startCollection();
|
| 1331 |
+
break;
|
| 1332 |
+
case '/stop':
|
| 1333 |
+
stopCollection();
|
| 1334 |
+
break;
|
| 1335 |
+
case '/clear':
|
| 1336 |
+
clearData();
|
| 1337 |
+
break;
|
| 1338 |
+
case '/export':
|
| 1339 |
+
showExportModal();
|
| 1340 |
+
break;
|
| 1341 |
+
case '/hfexport':
|
| 1342 |
+
showExportModal();
|
| 1343 |
+
break;
|
| 1344 |
+
case '/workers':
|
| 1345 |
+
if (parts[1] === 'list') {
|
| 1346 |
+
listWorkers();
|
| 1347 |
+
} else if (parts[1] === 'start') {
|
| 1348 |
+
if (parts[2]) toggleWorker(parts[2]);
|
| 1349 |
+
} else if (parts[1] === 'stop') {
|
| 1350 |
+
if (parts[2]) {
|
| 1351 |
+
const worker = systemState.workers[parts[2]];
|
| 1352 |
+
if (worker && worker.active) {
|
| 1353 |
+
toggleWorker(parts[2]);
|
| 1354 |
+
}
|
| 1355 |
+
}
|
| 1356 |
+
} else {
|
| 1357 |
+
logInfo('Usage: /workers [list|start|stop] [type]');
|
| 1358 |
+
}
|
| 1359 |
+
break;
|
| 1360 |
+
case '/status':
|
| 1361 |
+
showStatus();
|
| 1362 |
+
break;
|
| 1363 |
+
case '/samples':
|
| 1364 |
+
logInfo(`Total samples: ${systemState.totalSamples}`);
|
| 1365 |
+
break;
|
| 1366 |
+
case '/fixhf':
|
| 1367 |
+
logInfo('Hugging Face export FIXED in v4.0');
|
| 1368 |
+
logInfo('Fixed post_processed: null');
|
| 1369 |
+
logInfo('Fixed supervised_keys: null');
|
| 1370 |
+
logInfo('Fixed Sequence features (removed length)');
|
| 1371 |
+
break;
|
| 1372 |
+
default:
|
| 1373 |
+
logError(`Unknown command: ${cmd}. Type /help for commands.`);
|
| 1374 |
+
}
|
| 1375 |
+
}
|
| 1376 |
+
}
|
| 1377 |
+
|
| 1378 |
+
function showHelp() {
|
| 1379 |
+
logInfo('=== AVAILABLE COMMANDS ===');
|
| 1380 |
+
logInfo('/help - Show this help');
|
| 1381 |
+
logInfo('/start - Start data collection');
|
| 1382 |
+
logInfo('/stop - Stop data collection');
|
| 1383 |
+
logInfo('/clear - Clear all data');
|
| 1384 |
+
logInfo('/export - Export Hugging Face dataset (FIXED v4.0)');
|
| 1385 |
+
logInfo('/hfexport - Same as /export');
|
| 1386 |
+
logInfo('/workers list - List available workers');
|
| 1387 |
+
logInfo('/workers start [type] - Start worker type');
|
| 1388 |
+
logInfo('/workers stop [type] - Stop worker type');
|
| 1389 |
+
logInfo('/status - Show system status');
|
| 1390 |
+
logInfo('/samples - Show sample count');
|
| 1391 |
+
logInfo('/fixhf - Info about HF fixes');
|
| 1392 |
+
}
|
| 1393 |
+
|
| 1394 |
+
function listWorkers() {
|
| 1395 |
+
logInfo('=== WORKER TYPES ===');
|
| 1396 |
+
const types = ['dipole', 'solenoid', 'permanent', 'electro', 'toroid', 'anisotropic', 'halbach', 'custom'];
|
| 1397 |
+
types.forEach(type => {
|
| 1398 |
+
const worker = systemState.workers[type];
|
| 1399 |
+
const status = worker && worker.active ? 'ACTIVE' : 'STANDBY';
|
| 1400 |
+
logInfo(`${type}: ${status}`);
|
| 1401 |
+
});
|
| 1402 |
+
}
|
| 1403 |
+
|
| 1404 |
+
function showStatus() {
|
| 1405 |
+
logInfo('=== SYSTEM STATUS ===');
|
| 1406 |
+
logInfo(`Active workers: ${systemState.activeWorkers}/8`);
|
| 1407 |
+
logInfo(`Total samples: ${systemState.totalSamples}`);
|
| 1408 |
+
logInfo(`Collection: ${systemState.isCollecting ? 'RUNNING' : 'STOPPED'}`);
|
| 1409 |
+
|
| 1410 |
+
const elapsed = (Date.now() - systemState.startTime) / 1000;
|
| 1411 |
+
const throughput = elapsed > 0 ? Math.round(systemState.totalSamples / elapsed) : 0;
|
| 1412 |
+
logInfo(`Throughput: ${throughput}/s`);
|
| 1413 |
+
|
| 1414 |
+
const totalSize = systemState.totalSamples * 128;
|
| 1415 |
+
const sizeMB = (totalSize / (1024 * 1024)).toFixed(2);
|
| 1416 |
+
logInfo(`Estimated size: ${sizeMB} MB`);
|
| 1417 |
+
logInfo(`HF Export: FIXED v4.0 (dataset_infos.json corrected)`);
|
| 1418 |
+
}
|
| 1419 |
+
|
| 1420 |
+
// Fullscreen toggle
|
| 1421 |
+
function toggleFullscreen() {
|
| 1422 |
+
if (!document.fullscreenElement) {
|
| 1423 |
+
document.documentElement.requestFullscreen().catch(err => {
|
| 1424 |
+
logError(`Fullscreen error: ${err.message}`);
|
| 1425 |
+
});
|
| 1426 |
+
} else {
|
| 1427 |
+
document.exitFullscreen();
|
| 1428 |
+
}
|
| 1429 |
+
}
|
| 1430 |
+
|
| 1431 |
+
// System clock
|
| 1432 |
+
function updateClock() {
|
| 1433 |
+
const now = new Date();
|
| 1434 |
+
const timeStr = now.toLocaleTimeString();
|
| 1435 |
+
document.getElementById('systemTime').textContent = timeStr;
|
| 1436 |
+
}
|
| 1437 |
+
|
| 1438 |
+
// Initialize system
|
| 1439 |
+
function initSystem() {
|
| 1440 |
+
// Initialize visualization
|
| 1441 |
+
initVisualization();
|
| 1442 |
+
|
| 1443 |
+
// Initialize workers
|
| 1444 |
+
initWorkers();
|
| 1445 |
+
|
| 1446 |
+
// Start system clock
|
| 1447 |
+
setInterval(updateClock, 1000);
|
| 1448 |
+
updateClock();
|
| 1449 |
+
|
| 1450 |
+
// Update stats every 2 seconds
|
| 1451 |
+
setInterval(updateStats, 2000);
|
| 1452 |
+
|
| 1453 |
+
// Start with dipole worker
|
| 1454 |
+
setTimeout(() => {
|
| 1455 |
+
toggleWorker('dipole');
|
| 1456 |
+
toggleWorker('solenoid');
|
| 1457 |
+
}, 1000);
|
| 1458 |
+
|
| 1459 |
+
logInfo("System initialized v4.0");
|
| 1460 |
+
logInfo("Type /help for commands");
|
| 1461 |
+
logInfo("✅ Hugging Face export FIXED v4.0");
|
| 1462 |
+
logInfo("Fixed dataset_infos.json structure");
|
| 1463 |
+
logInfo("post_processed: null, supervised_keys: null");
|
| 1464 |
+
}
|
| 1465 |
+
|
| 1466 |
+
// Window resize handler
|
| 1467 |
+
window.addEventListener('resize', () => {
|
| 1468 |
+
if (camera && renderer) {
|
| 1469 |
+
camera.aspect = document.getElementById('visual-canvas').clientWidth /
|
| 1470 |
+
document.getElementById('visual-canvas').clientHeight;
|
| 1471 |
+
camera.updateProjectionMatrix();
|
| 1472 |
+
renderer.setSize(document.getElementById('visual-canvas').clientWidth,
|
| 1473 |
+
document.getElementById('visual-canvas').clientHeight);
|
| 1474 |
+
}
|
| 1475 |
+
});
|
| 1476 |
+
|
| 1477 |
+
// Start system when page loads
|
| 1478 |
+
window.addEventListener('load', initSystem);
|
| 1479 |
+
|
| 1480 |
+
// Export modal event delegation
|
| 1481 |
+
document.getElementById('exportModal').addEventListener('click', (e) => {
|
| 1482 |
+
e.stopPropagation();
|
| 1483 |
+
});
|
| 1484 |
+
|
| 1485 |
+
// Focus command input on click
|
| 1486 |
+
document.getElementById('commandInput').focus();
|
| 1487 |
+
|
| 1488 |
+
// Make functions globally available
|
| 1489 |
+
window.toggleWorker = toggleWorker;
|
| 1490 |
+
window.startCollection = startCollection;
|
| 1491 |
+
window.stopCollection = stopCollection;
|
| 1492 |
+
window.clearData = clearData;
|
| 1493 |
+
window.showExportModal = showExportModal;
|
| 1494 |
+
window.hideExportModal = hideExportModal;
|
| 1495 |
+
window.exportDataset = exportDataset;
|
| 1496 |
+
window.toggleFullscreen = toggleFullscreen;
|
| 1497 |
+
window.handleCommand = handleCommand;
|
| 1498 |
+
</script>
|
| 1499 |
+
</body>
|
| 1500 |
+
</html>
|