Globalgnx
STATE: IDLE
const stateText = document.getElementById("stateText");
const secureBtn = document.getElementById("secureCall");
const ainBtn = document.getElementById("ain");
const idBtn = document.getElementById("identity");
const rootBtn = document.getElementById("root");
function resetButtons() {
[secureBtn, ainBtn, idBtn, rootBtn].forEach(b => b.classList.remove("active"));
}
secureBtn.onclick = () => {
resetButtons();
secureBtn.classList.add("active");
stateText.innerText =
"STATE: SECURE_CALL → Channel not yet bound";
ainBtn.disabled = false;
};
ainBtn.onclick = () => {
resetButtons();
ainBtn.classList.add("active");
stateText.innerText =
"STATE: AIN_REQUEST → AIN issuance pending";
idBtn.disabled = false;
};
idBtn.onclick = () => {
resetButtons();
idBtn.classList.add("active");
stateText.innerText =
"STATE: IDENTITY_BOUND → identity verified";
rootBtn.disabled = false;
};
rootBtn.onclick = () => {
resetButtons();
rootBtn.classList.add("active");
stateText.innerText =
"STATE: ROOT_GRANTED → system-level access";
};