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);
});

Leaving the UK in my van – a 4 minute video montage

Mike Hudson – author of this post

You saw some of the work I did on the van to give it a bit of a service and overhaul – this post. But there were still loads of little bits to finish off before I left the UK again. I was still working on the van the day I set off to get the ferry to Spain.

I just about finished everything, put the wheels back on the van and drove 300 miles to Portsmouth. Here’s a 4 minute video montage of me trying to set off, and actually setting off. The ending is my favourite bit 🙂

Thanks for sharing!
Comment below
guest
4 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments