Friday, April 24, 2026
8.1 C
United Kingdom
More

    Latest Posts

    What is the European Golden Shoe, how does it work and who are the contenders to win it?

    What is the European Golden Shoe, how does it work and who are the contenders to win it? | 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:…
    2026-04-18 06:00:00

    LEAVE A REPLY

    Please enter your comment!
    Please enter your name here

    Latest Posts