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

Carpark cooking: Off-grid lunch in the hills of Greece

I never used to be into food. It always got in the way.

My days now revolve around food.ย I love to prepare it and I love to eat it.

prepare-potatoes
put-in-fire

get-salad

make-salad

pumpkin

feed-to-dog

if-its-food

…Bonus treat!

dessert

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