Showing: news tagged “Daniel Morcombe Foundation”
No news tagged “Daniel Morcombe Foundation”
} function updateLauncherVisibility() { customLauncher.style.display = shouldShowLauncher() ? "block" : "none"; } Genesys("subscribe", "Messenger.ready", () => { // Initially show only if page is allowed (no active chat yet) updateLauncherVisibility(); }); // Fires when the messenger is opened via button click or when arriving on another page if the chat window was already opened Genesys("subscribe", "Messenger.opened", () => { bMessengerOpened = true; hasActiveChat = true; launcherButton.classList.add("messenger-open"); if (tooltip) tooltip.classList.add("tooltip-hidden"); updateLauncherVisibility(); }); // Fires when the messenger is closed via button click or when using the minimise icon located inside the chat window Genesys("subscribe", "Messenger.closed", () => { bMessengerOpened = false; launcherButton.classList.remove("messenger-open"); }); launcherButton.addEventListener("click", () => { Genesys("command", bMessengerOpened ? "Messenger.close" : "Messenger.open"); }); }