mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-15 18:54:47 -04:00
wip
This commit is contained in:
parent
08a61d6967
commit
d17eba50e5
24 changed files with 711 additions and 1028 deletions
|
@ -102,6 +102,9 @@ export async function asyncAlert<t>({
|
|||
popup.appendChild(addto);
|
||||
}
|
||||
|
||||
const buttonWrap = document.createElement("div")
|
||||
addto.appendChild(buttonWrap)
|
||||
|
||||
const {
|
||||
text,
|
||||
value,
|
||||
|
@ -134,16 +137,16 @@ ${icon}
|
|||
}
|
||||
|
||||
button.className =
|
||||
className + (lastClickedItemIndex === index ? " needs-focus" : "");
|
||||
className + (lastClickedItemIndex === index ? " needs-focus" : "")+' choice-button';
|
||||
|
||||
addto.appendChild(button);
|
||||
buttonWrap.appendChild(button);
|
||||
|
||||
if (tooltip) {
|
||||
if (isOptionOn("mobile-mode")) {
|
||||
const helpBtn = document.createElement("button");
|
||||
helpBtn.innerText = "?";
|
||||
helpBtn.setAttribute("data-help-content", tooltip);
|
||||
button.appendChild(helpBtn);
|
||||
buttonWrap.appendChild(helpBtn);
|
||||
} else {
|
||||
button.setAttribute("data-tooltip", tooltip);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue