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

VIDEO: Inside my DIY van-home – full tour

I’ve never given you a proper tour of my van, have I?

Well here it is: A full tour of my DIY van conversion and all the features that let me live and travel comfortably…

And if you’re thinking of converting your own van, check out my new van conversion course:

From Van to Home – Van Conversion Course

Comment below
Subscribe
Notify of
guest
3 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments

Announcement: My Van Conversion Course is Now Live

Read more >

Breaking down in Morocco – I almost lost the van

Read more >

Stranded: How this Moroccan scrapyard became home for 3 Weeks

Read more >