Thursday, March 26, 2026
5.9 C
United Kingdom
More

    Latest Posts

    Mexico and MLS star facing self-inflicted seven-month lay-off ahead of 2026 FIFA World Cup

    Mexico and MLS star facing self-inflicted seven-month lay-off ahead of 2026 FIFA World Cup | FourFourTwo

    Skip to main content

    `;
    }
    })
    .catch(error => {
    console.error(“Submission failed”, error);
    submitBtn.disabled = false;
    });
    });
    }
    function updateBannerPosition() {
    if (!banner || !bannerVisible) return;
    const masthead = document.querySelector(‘[data-component-name=”SiteHeader:Masthead”]’);
    const ads_iframe = document.querySelector(‘iframe[name^=”google_ads_iframe_”]’);
    const bigTop = ads_iframe?.contentDocument?.querySelector(‘#future-big-top-collapsed’);
    let targetTop = 0;
    if (masthead) {
    const rect = masthead.getBoundingClientRect();
    targetTop = rect.bottom > 0 ? rect.bottom : 0;
    }
    banner.style.top = `${targetTop}px`;
    banner.style.marginTop = bigTop ? “10px” : “0px”;
    }
    function showBanner() {
    const ads_iframe = document.querySelector(‘iframe[name^=”google_ads_iframe_”]’);
    const bigTopElement = ads_iframe?.contentDocument?.querySelector(‘#future-big-top-collapsed’);
    if(bigTopElement) banner.classList.add(‘flw-translate-150’);
    if(typeof ffte !== ‘undefined’ && ffte?.properties?.articleType === ‘deals’) return false;
    const isAuthKiosq = window.FUTR?.Kiosq?.User?.is_authenticated;
    const isAuthConnect = window.FUTR?.Connect?.Auth?.kiosqUserIsAuthenticated;
    if (!bannerDismissed && !isAuthKiosq && !isAuthConnect) {
    if(window.dispatchOrQueueAction) {
    window.dispatchOrQueueAction(‘freyr.sendEventToFreyr’, {
    name: ‘membershipEvent’,
    eventObject: { membership: { action: “scroll-page”, label: “membership-banner”, type: “banner-sticky” } }
    });
    }
    banner.classList.add(‘show’);
    document.body.classList.add(‘banner-visible’);
    bannerVisible = true;
    }
    }
    function hideBanner() {
    if (isInputFocused) return;
    banner.classList.remove(‘show’);
    bannerVisible = false;
    bannerExpanded = false;
    banner.classList.remove(‘expanded’);
    document.body.classList.remove(‘banner-expanded’);
    }
    function toggleBanner() {
    if (bannerDismissed) return;
    bannerExpanded = !bannerExpanded;
    banner.classList.toggle(‘expanded’, bannerExpanded);
    document.body.classList.toggle(‘banner-expanded’, bannerExpanded);
    if (bannerExpanded && window.dispatchOrQueueAction) {
    window.dispatchOrQueueAction(‘freyr.sendEventToFreyr’, {
    name: ‘membershipEvent’,
    eventObject: { membership: { action: “click-banner”, label: “membership-banner”, type: “banner-sticky” }…
    2026-03-26 19:00:00

    LEAVE A REPLY

    Please enter your comment!
    Please enter your name here

    Latest Posts