diff --git a/index.html b/index.html
index f9b2b84..161343a 100644
--- a/index.html
+++ b/index.html
@@ -657,11 +657,6 @@ function cmdChoose(arg){
}
// ── ENDING ──
-function cmdChooseConfirmed(){
- if(!G.faction){addLine('Choose a path first with CHOOSE.','warn');return;}
- triggerEnding(G.faction);
-}
-
function cmdMake(arg){
if(!G.flags.readyForEnding){addLine('Not yet. Build, listen, decode, and choose first.','warn');return;}
if(!G.faction){addLine('Choose a path first with CHOOSE.','warn');return;}
@@ -857,9 +852,8 @@ function startSpectrum(){
specAnimId=requestAnimationFrame(drawSpec);
}
drawSpec();
- document.querySelectorAll('.panel-close').forEach(b=>{
- b.onclick=()=>{if(specAnimId)cancelAnimationFrame(specAnimId);hidePanels();};
- });
+ const specClose = document.querySelector('#specPanel .panel-close');
+ if(specClose) specClose.onclick = ()=>{ if(specAnimId) cancelAnimationFrame(specAnimId); hidePanels(); };
}
// ── FACILITY MAP ──
diff --git a/www/index.html b/www/index.html
index f9b2b84..161343a 100644
--- a/www/index.html
+++ b/www/index.html
@@ -657,11 +657,6 @@ function cmdChoose(arg){
}
// ── ENDING ──
-function cmdChooseConfirmed(){
- if(!G.faction){addLine('Choose a path first with CHOOSE.','warn');return;}
- triggerEnding(G.faction);
-}
-
function cmdMake(arg){
if(!G.flags.readyForEnding){addLine('Not yet. Build, listen, decode, and choose first.','warn');return;}
if(!G.faction){addLine('Choose a path first with CHOOSE.','warn');return;}
@@ -857,9 +852,8 @@ function startSpectrum(){
specAnimId=requestAnimationFrame(drawSpec);
}
drawSpec();
- document.querySelectorAll('.panel-close').forEach(b=>{
- b.onclick=()=>{if(specAnimId)cancelAnimationFrame(specAnimId);hidePanels();};
- });
+ const specClose = document.querySelector('#specPanel .panel-close');
+ if(specClose) specClose.onclick = ()=>{ if(specAnimId) cancelAnimationFrame(specAnimId); hidePanels(); };
}
// ── FACILITY MAP ──