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

Month: May 2015

  • May 5, 2015
    I found this place It’s a road that goes out over the water to a small fishing village, Koronisia on…
  • May 1, 2015
    Thing is with a van, you can’t get to islands without paying a fair bit for a boat. You need…
  • May 1, 2015
    I read about this nice beach on the island of Lefkada (See Lefkada post). The best beach on the Mediterranean I…