Opens in a new tab
function updateHeaderHeight() {
        // Get the height of #brx-header
        const headerHeight = document.querySelector('#brx-header').offsetHeight;
          
        // Store the height in the CSS custom property --header-height
        document.documentElement.style.setProperty('--brxw-header-height', headerHeight + 'px');
    }

    // Execute the function as soon as the document is ready
    document.addEventListener('DOMContentLoaded', function() {
        updateHeaderHeight();  // Initial update of header height when the document is ready

        // Update the header height on window resize and orientation change
        window.addEventListener('resize', updateHeaderHeight);
        window.addEventListener('orientationchange', updateHeaderHeight);
});

Tuesday, August 29 2023, 8.25am

Storm ‘Betty’ has yielded scenes of inundated roadways, cancelled flights, sewage overflows, and fallen trees and walls. However, it has also provided lighter moments, such as the image of a young foreigner gleefully sliding down a Sant Antoni street on a mat.

Tags