Spaces:
Running
Running
Update play.html
Browse files
play.html
CHANGED
|
@@ -76,27 +76,23 @@
|
|
| 76 |
|
| 77 |
<div id="start-screen" style="position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 30; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); padding: 1rem;">
|
| 78 |
|
| 79 |
-
<h1 id="title-main" style="font-size: 5rem; font-weight: bold; color: white; margin-bottom: 0.5rem; text-align: center; text-shadow: 0 0 20px #00ff41; line-height: 1.1;"></h1>
|
| 80 |
-
|
| 81 |
-
<h2 id="subtitle-main" style="color: #00ff41; font-size: 1.5rem; margin-bottom: 2rem; font-weight: bold; text-align: center; max-width: 800px;"></h2>
|
| 82 |
-
|
| 83 |
<div style="background: #111; border: 1px solid #444; padding: 2rem; border-radius: 0.5rem; max-width: 40rem; width: 100%; margin-bottom: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);">
|
| 84 |
<div style="display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.1rem;">
|
| 85 |
<div style="display: flex; align-items: center;">
|
| 86 |
<span id="icon-legacy" style="font-size: 2.8rem; margin-right: 1rem;"></span>
|
| 87 |
-
<div><span id="title-legacy" style="color: #ffb700; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-legacy" style="color: #999; font-size:
|
| 88 |
</div>
|
| 89 |
<div style="display: flex; align-items: center;">
|
| 90 |
<span id="icon-ai" style="font-size: 2.8rem; margin-right: 1rem;"></span>
|
| 91 |
-
<div><span id="title-ai" style="color: #00ff41; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-ai" style="color: #999; font-size:
|
| 92 |
</div>
|
| 93 |
<div style="display: flex; align-items: center;">
|
| 94 |
<span id="icon-obs" style="font-size: 2.8rem; margin-right: 1rem;"></span>
|
| 95 |
-
<div><span id="title-obs" style="color: #ff0055; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-obs" style="color: #999; font-size:
|
| 96 |
</div>
|
| 97 |
<div style="display: flex; align-items: center;">
|
| 98 |
<span style="font-size: 2.8rem; margin-right: 1rem;">⚡</span>
|
| 99 |
-
<div><span id="title-bar" style="color: white; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-bar" style="color: #999; font-size:
|
| 100 |
</div>
|
| 101 |
</div>
|
| 102 |
</div>
|
|
@@ -107,14 +103,16 @@
|
|
| 107 |
|
| 108 |
<div id="game-over" class="hidden" style="position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; z-index: 40; background: rgba(0,0,0,0.95);">
|
| 109 |
|
| 110 |
-
<h2 id="go-title" style="font-size:
|
| 111 |
|
| 112 |
-
<div style="text-align: center; font-size: 1.
|
| 113 |
-
<p id="go-reason" style="color: #ff0055; font-weight: bold; margin-bottom: 1.5rem; font-size: 1.
|
|
|
|
| 114 |
<div style="display: flex; justify-content: space-between; margin-bottom: 0.8rem;"><span>MVP Score:</span><span id="final-score" style="color: #00ff41; font-weight: bold;">0</span></div>
|
| 115 |
<div style="display: flex; justify-content: space-between; margin-bottom: 1.5rem;"><span>Modernizzazione:</span><span id="final-legacy" style="color: #ffb700; font-weight: bold;">0%</span></div>
|
| 116 |
<hr style="border-color: #444; margin: 1.5rem 0;">
|
| 117 |
-
|
|
|
|
| 118 |
</div>
|
| 119 |
<button id="btn-restart" class="btn" onclick="initGame()"></button>
|
| 120 |
</div>
|
|
@@ -284,8 +282,9 @@ const dom = {
|
|
| 284 |
};
|
| 285 |
|
| 286 |
function setupUI() {
|
| 287 |
-
|
| 288 |
-
document.getElementById('
|
|
|
|
| 289 |
document.getElementById('lbl-phase').innerText = GAME_CONFIG.TEXTS.LBL_PHASE;
|
| 290 |
document.getElementById('lbl-metrics').innerText = GAME_CONFIG.TEXTS.LBL_METRICS;
|
| 291 |
document.getElementById('lbl-score').innerText = GAME_CONFIG.TEXTS.LBL_SCORE;
|
|
|
|
| 76 |
|
| 77 |
<div id="start-screen" style="position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 30; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); padding: 1rem;">
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
<div style="background: #111; border: 1px solid #444; padding: 2rem; border-radius: 0.5rem; max-width: 40rem; width: 100%; margin-bottom: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);">
|
| 80 |
<div style="display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.1rem;">
|
| 81 |
<div style="display: flex; align-items: center;">
|
| 82 |
<span id="icon-legacy" style="font-size: 2.8rem; margin-right: 1rem;"></span>
|
| 83 |
+
<div><span id="title-legacy" style="color: #ffb700; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-legacy" style="color: #999; font-size: 1.2rem; margin: 0;"></p></div>
|
| 84 |
</div>
|
| 85 |
<div style="display: flex; align-items: center;">
|
| 86 |
<span id="icon-ai" style="font-size: 2.8rem; margin-right: 1rem;"></span>
|
| 87 |
+
<div><span id="title-ai" style="color: #00ff41; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-ai" style="color: #999; font-size: 1.2rem; margin: 0;"></p></div>
|
| 88 |
</div>
|
| 89 |
<div style="display: flex; align-items: center;">
|
| 90 |
<span id="icon-obs" style="font-size: 2.8rem; margin-right: 1rem;"></span>
|
| 91 |
+
<div><span id="title-obs" style="color: #ff0055; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-obs" style="color: #999; font-size: 1.2rem; margin: 0;"></p></div>
|
| 92 |
</div>
|
| 93 |
<div style="display: flex; align-items: center;">
|
| 94 |
<span style="font-size: 2.8rem; margin-right: 1rem;">⚡</span>
|
| 95 |
+
<div><span id="title-bar" style="color: white; font-weight: bold; font-size: 1.2rem;"></span><p id="desc-bar" style="color: #999; font-size: 1.2rem; margin: 0;"></p></div>
|
| 96 |
</div>
|
| 97 |
</div>
|
| 98 |
</div>
|
|
|
|
| 103 |
|
| 104 |
<div id="game-over" class="hidden" style="position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; z-index: 40; background: rgba(0,0,0,0.95);">
|
| 105 |
|
| 106 |
+
<h2 id="go-title" style="font-size: 2.25rem; font-weight: bold; color: white; margin-bottom: 1.5rem; text-align: center;"></h2>
|
| 107 |
|
| 108 |
+
<div style="text-align: center; font-size: 1.45rem; color: #ccc; margin-bottom: 2.5rem; background: #1a1a1a; padding: 2.5rem; border: 1px solid #444; border-radius: 0.5rem; max-width: 35rem; width: 100%;">
|
| 109 |
+
<p id="go-reason" style="color: #ff0055; font-weight: bold; margin-bottom: 1.5rem; font-size: 1.7rem;"></p>
|
| 110 |
+
|
| 111 |
<div style="display: flex; justify-content: space-between; margin-bottom: 0.8rem;"><span>MVP Score:</span><span id="final-score" style="color: #00ff41; font-weight: bold;">0</span></div>
|
| 112 |
<div style="display: flex; justify-content: space-between; margin-bottom: 1.5rem;"><span>Modernizzazione:</span><span id="final-legacy" style="color: #ffb700; font-weight: bold;">0%</span></div>
|
| 113 |
<hr style="border-color: #444; margin: 1.5rem 0;">
|
| 114 |
+
|
| 115 |
+
<p id="death-quote" style="font-style: italic; color: #999; font-size: 1.2rem;"></p>
|
| 116 |
</div>
|
| 117 |
<button id="btn-restart" class="btn" onclick="initGame()"></button>
|
| 118 |
</div>
|
|
|
|
| 282 |
};
|
| 283 |
|
| 284 |
function setupUI() {
|
| 285 |
+
// TITOLI RIMOSSI ANCHE DAL JS
|
| 286 |
+
// document.getElementById('title-main').innerText = GAME_CONFIG.TEXTS.TITLE;
|
| 287 |
+
// document.getElementById('subtitle-main').innerText = GAME_CONFIG.TEXTS.SUBTITLE;
|
| 288 |
document.getElementById('lbl-phase').innerText = GAME_CONFIG.TEXTS.LBL_PHASE;
|
| 289 |
document.getElementById('lbl-metrics').innerText = GAME_CONFIG.TEXTS.LBL_METRICS;
|
| 290 |
document.getElementById('lbl-score').innerText = GAME_CONFIG.TEXTS.LBL_SCORE;
|