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

I met a girl from the comments

I met up with a reader of this blog in Athens a couple of weeks ago. We’ve been hanging out a bit – see post on 10 days living in a flat. You may see more of her on here soon so maybe I should introduce her…

a-bit-differentquit-job-to-travelto-her-flattravel-tattoosjust-quit-her-job

Marti likes: the universe, science, animals, music and photography
Marti doesn’t like: small talk, school
Thanks for sharing!
Comment below
guest
12 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments