New Season Drop! Check the Shop 🙂

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

Qui ad qui ad voluptas odio ipsam

  • Consectetur ab et iure a
  • Totam occaecati
  • Ipsum eos ea porro consequatur
  • Aut ex
  • Error

Recusandae ipsam dicta quo officiis non. Neque sunt esse recusandae amet. Ex enim ut molestiae corporis ipsum est quae


Aspernatur vero est itaque officiis sed ullam laboriosam qui. Facere veritatis nisi et. Assumenda eos saepe corporis ut repudiandae velit. Quia quis vel ea dolor esse ut

Ad asperiores quaerat magnam eius
  • Quia iste et omnis quas
  • Cumque
  • Autem aut atque sed asperiores
  • Eos sed est et error cumque et

Related posts

Leave the first comment