MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / initQuickSelect

Method initQuickSelect

web/observatory/js/hud-controller.js:506–516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

504
505 // ============================================================
506 // Quick-select (top bar scenario dropdown)
507 // ============================================================
508
509 initQuickSelect() {
510 const sel = document.getElementById('scenario-quick-select');
511 if (!sel) return;
512 sel.addEventListener('change', (e) => {
513 this._obs._demoData.setScenario(e.target.value);
514 const settingsSel = document.getElementById('opt-scenario');
515 if (settingsSel) settingsSel.value = e.target.value;
516 this._obs.settings.scenario = e.target.value;
517 this.saveSettings();
518 });
519 }

Callers 1

constructorMethod · 0.80

Calls 2

saveSettingsMethod · 0.95
setScenarioMethod · 0.80

Tested by

no test coverage detected