Opens in a new tab
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);
});

leire-rodriguez

Leire Rodriguez

I was born in Ibiza and have always carried a deep connection to the island’s stories, landscapes and people. After earning my degree in Communication and Cultural Industries from the University of Barcelona, I returned home to bring my passion for storytelling to local media. I began working at Diario de Ibiza, where I produced real-time news, features and interviews.

Since then, I’ve grown into a freelance journalist. I now regularly write for Living Ibiza, combining journalistic rigour with a personal touch to highlight the most authentic and engaging sides of the island. Whatever the platform, my goal is always to connect with people through words, stories and shared experiences.