See more on this post: Dismantling my Entire Van Home
Subscribe to my YouTube channel for coming updates and… the more subscribers I get, the more content I’ll make ๐


Everything you need to confidently turn an old van into your cosy home + more.
Build your vanfunction 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);
});
See more on this post: Dismantling my Entire Van Home
Subscribe to my YouTube channel for coming updates and… the more subscribers I get, the more content I’ll make ๐