in-app-messages

(function () { const KEY = ‘inAppMessageAutoOpenCount’; const MAX_RUNS = 3; // The real clickable element (Elementor action link) const ANCHOR_SELECTOR = ‘#inAppMessageButton a[href*=”elementor-action”]’; // Safe storage (handles iOS Safari Private Mode quirks) const storage = (() => { try…Continue reading

ANDRITZ Navigation Panels

document.addEventListener(“DOMContentLoaded”, function () { const triggers = document.querySelectorAll(“.bp-andritz-utility”); const panels = document.querySelectorAll(“.bp-andritz-panel”); const closes = document.querySelectorAll(“.bp-andritz-close”); const backs = document.querySelectorAll(“.bp-andritz-back”); function closeAllPanels(){ panels.forEach(panel => panel.classList.remove(“bp-open”)); document.body.classList.remove(“bp-andritz-active”); } triggers.forEach(trigger=>{ trigger.addEventListener(“click”,function(){ const target = document.getElementById(this.dataset.target); const isOpen = target && target.classList.contains(“bp-open”); closeAllPanels();…Continue reading