Please wait while the policy is loaded. If it does not load, please click here.
const firstSection = document.querySelector('.page-section');
const header = document.querySelector('.header');
const mobileOverlayNav = document.querySelector('.header-menu');
const sectionBackground = firstSection ? firstSection.querySelector('.section-background') : null;
const headerHeight = header ? header.getBoundingClientRect().height : 0;
const firstSectionHasBackground = firstSection ? firstSection.className.indexOf('has-background') >= 0 : false;
const isFirstSectionInset = firstSection ? firstSection.className.indexOf('background-width--inset') >= 0 : false;
const isLayoutEngineSection = firstSection ? firstSection.className.indexOf('layout-engine-section') >= 0 : false;
if (firstSection) {
firstSection.style.paddingTop = headerHeight + 'px';
}
if (sectionBackground && isLayoutEngineSection) {
if (isFirstSectionInset) {
sectionBackground.style.top = headerHeight + 'px';
} else {
sectionBackground.style.top = '';
}
}
//# sourceURL=headerPositioning.js