mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 05:26:15 -04:00
wip
This commit is contained in:
parent
46228a2128
commit
9624c5b351
16 changed files with 518 additions and 52 deletions
|
@ -25,7 +25,7 @@ export function setupTooltips() {
|
|||
while (parent && !parent.hasAttribute("data-tooltip")) {
|
||||
parent = parent.parentElement;
|
||||
}
|
||||
if (parent?.hasAttribute("data-tooltip")) {
|
||||
if (parent?.getAttribute("data-tooltip")?.trim()) {
|
||||
hovering = parent as HTMLElement;
|
||||
tooltip.innerHTML = hovering.getAttribute("data-tooltip") || "";
|
||||
tooltip.style.display = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue