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);
});
Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
Niciunul
►
Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
Niciunul
►
Cookie-urile analitice urmăresc interacțiunile vizitatorilor și oferă informații generale despre valorile metrice, cum ar fi numărul de vizitatori, rata de respingere și sursele de trafic.
Niciunul
►
Cookie-urile publicitare oferă reclame personalizate pe baza vizitelor tale anterioare și analizează eficiența campaniilor publicitare.
Niciunul
►
Cookie-urile neclasificate sunt cookie-uri în curs de clasificare, împreună cu furnizorii cookie-urilor individuale.