remove status
Browse files- index.html +0 -38
index.html
CHANGED
|
@@ -337,10 +337,6 @@
|
|
| 337 |
await loadFeatures();
|
| 338 |
setupSearch();
|
| 339 |
setupCategoryFilter();
|
| 340 |
-
updateFeatureStatuses();
|
| 341 |
-
|
| 342 |
-
// Update statuses every 5 seconds
|
| 343 |
-
setInterval(updateFeatureStatuses, 5000);
|
| 344 |
});
|
| 345 |
|
| 346 |
async function loadFeatures() {
|
|
@@ -568,40 +564,6 @@
|
|
| 568 |
|
| 569 |
displayFeatures(filteredFeatures);
|
| 570 |
}
|
| 571 |
-
|
| 572 |
-
async function updateFeatureStatuses() {
|
| 573 |
-
for (const feature of expandedFeatures) {
|
| 574 |
-
if (feature.coming_soon) continue;
|
| 575 |
-
|
| 576 |
-
try {
|
| 577 |
-
const response = await fetch(`/api/status`);
|
| 578 |
-
if (response.ok) {
|
| 579 |
-
const status = await response.json();
|
| 580 |
-
updateFeatureStatus(feature.id, status);
|
| 581 |
-
}
|
| 582 |
-
} catch (error) {
|
| 583 |
-
console.error(`Error checking status for ${feature.id}:`, error);
|
| 584 |
-
}
|
| 585 |
-
}
|
| 586 |
-
}
|
| 587 |
-
|
| 588 |
-
function updateFeatureStatus(featureId, status) {
|
| 589 |
-
const indicator = document.getElementById(`${featureId}-status`);
|
| 590 |
-
const text = document.getElementById(`${featureId}-status-text`);
|
| 591 |
-
|
| 592 |
-
if (!indicator || !text) return;
|
| 593 |
-
|
| 594 |
-
// For demo purposes, randomly show some as busy
|
| 595 |
-
const isBusy = Math.random() < 0.1;
|
| 596 |
-
|
| 597 |
-
if (isBusy) {
|
| 598 |
-
indicator.classList.add('busy');
|
| 599 |
-
text.textContent = 'Processing...';
|
| 600 |
-
} else {
|
| 601 |
-
indicator.classList.remove('busy');
|
| 602 |
-
text.textContent = 'Ready';
|
| 603 |
-
}
|
| 604 |
-
}
|
| 605 |
</script>
|
| 606 |
</body>
|
| 607 |
</html>
|
|
|
|
| 337 |
await loadFeatures();
|
| 338 |
setupSearch();
|
| 339 |
setupCategoryFilter();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 340 |
});
|
| 341 |
|
| 342 |
async function loadFeatures() {
|
|
|
|
| 564 |
|
| 565 |
displayFeatures(filteredFeatures);
|
| 566 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 567 |
</script>
|
| 568 |
</body>
|
| 569 |
</html>
|