added type='button' to both guard portal btns so firefox won't normalize to type='submit'; fixed several FTs for new click-guard functionality on Role card select & room gear menu DEL & BYE btns; several restorations to landscape breakpoint incl. logged-ion display_name, copyright info; provided title to room_scroll.html; a slurry of other minor fixes
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Disco DeDisco
2026-03-23 19:31:57 -04:00
parent eecb6c2be6
commit 5607f70852
15 changed files with 365 additions and 65 deletions

View File

@@ -104,11 +104,26 @@ var RoleSelect = (function () {
card.classList.add("flipped");
});
card.addEventListener("mouseleave", function () {
card.classList.remove("flipped");
if (!card.classList.contains("guard-active")) {
card.classList.remove("flipped");
}
});
card.addEventListener("click", function (e) {
e.stopPropagation();
selectRole(role.code, card);
card.classList.add("flipped");
card.classList.add("guard-active");
window.showGuard(
card,
"Start round 1 as<br>" + role.name + " (" + role.code + ") …?",
function () { // confirm
card.classList.remove("guard-active");
selectRole(role.code, card);
},
function () { // dismiss (NVM / outside click)
card.classList.remove("guard-active");
card.classList.remove("flipped");
}
);
});
modal.appendChild(card);