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
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user