mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-15 18:54:47 -04:00
wip
This commit is contained in:
parent
4c66cc820c
commit
cee5c6bc60
28 changed files with 948 additions and 344 deletions
|
@ -13,11 +13,10 @@ export function hideAnyTooltip() {
|
|||
tooltip.style.display = "none";
|
||||
}
|
||||
|
||||
|
||||
function setupMobileTooltips(tooltip: HTMLDivElement) {
|
||||
tooltip.className = "mobile";
|
||||
function openTooltip(e: Event) {
|
||||
console.log('openTooltip',e)
|
||||
console.log("openTooltip", e);
|
||||
hideAnyTooltip();
|
||||
const hovering = e.target as HTMLElement;
|
||||
if (!hovering?.hasAttribute("data-help-content")) {
|
||||
|
@ -33,7 +32,6 @@ function setupMobileTooltips(tooltip: HTMLDivElement) {
|
|||
|
||||
document.body.addEventListener("click", openTooltip, true);
|
||||
document.addEventListener("scroll", hideAnyTooltip);
|
||||
|
||||
}
|
||||
|
||||
function setupDesktopTooltips(tooltip: HTMLDivElement) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue