Spaces:
Running
Running
Update index.html
Browse files- index.html +4 -2
index.html
CHANGED
@@ -1726,7 +1726,6 @@
|
|
1726 |
|
1727 |
}
|
1728 |
|
1729 |
-
|
1730 |
document.addEventListener('DOMContentLoaded', () => {
|
1731 |
console.log("DOM Ready - Initializing Enhanced Adventure.");
|
1732 |
try {
|
@@ -1739,9 +1738,12 @@
|
|
1739 |
} catch (error) {
|
1740 |
console.error("Initialization failed:", error);
|
1741 |
storyTitleElement.textContent = "Error During Initialization";
|
1742 |
-
storyContentElement.innerHTML = `<p>Could not start the adventure. Please check the developer console (F12) for more details.</p
|
1743 |
choicesElement.innerHTML = '';
|
1744 |
if(sceneContainer) sceneContainer.innerHTML = '<p style="color:red; padding: 20px;">3D Scene Failed to Load</p>';
|
|
|
|
|
|
|
1745 |
}
|
1746 |
});
|
1747 |
</script>
|
|
|
1726 |
|
1727 |
}
|
1728 |
|
|
|
1729 |
document.addEventListener('DOMContentLoaded', () => {
|
1730 |
console.log("DOM Ready - Initializing Enhanced Adventure.");
|
1731 |
try {
|
|
|
1738 |
} catch (error) {
|
1739 |
console.error("Initialization failed:", error);
|
1740 |
storyTitleElement.textContent = "Error During Initialization";
|
1741 |
+
storyContentElement.innerHTML = `<p style="color:red;">Could not start the adventure. An error occurred:</p><pre style="color:red; white-space: pre-wrap;">${error.stack || error}</pre><p style="color:yellow;">Please check the developer console (F12) for more details.</p>`;
|
1742 |
choicesElement.innerHTML = '';
|
1743 |
if(sceneContainer) sceneContainer.innerHTML = '<p style="color:red; padding: 20px;">3D Scene Failed to Load</p>';
|
1744 |
+
if(statsInventoryContainer) statsInventoryContainer.style.display = 'none';
|
1745 |
+
if(choicesContainer) choicesContainer.style.display = 'none';
|
1746 |
+
|
1747 |
}
|
1748 |
});
|
1749 |
</script>
|