update app and index.html

This commit is contained in:
2026-06-01 13:15:12 -07:00
parent 254f488eca
commit e0d0f15731
9 changed files with 754 additions and 38 deletions
+8
View File
@@ -83,12 +83,20 @@
}
function setActiveSection(nextSection) {
const previousSection = activeSection;
const requestedSection = VALID_SECTIONS.has(nextSection) ? nextSection : "home";
const normalized = config.isSectionAccessible?.(requestedSection) === false
? "home"
: requestedSection;
activeSection = normalized;
document.dispatchEvent(new CustomEvent("section:changed", {
detail: {
previousSection,
activeSection
}
}));
const elements = config.elements || {};
const ensure = config.ensure || {};
const referenceData = getReferenceData();