aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/assets/js/header.js
blob: 12de881bbf6fdbb66776b650105fc16f86eab867 (plain)
1
2
3
4
5
6
7
const header = document.querySelector("header");

function paddingHeader() {
    document.body.style.paddingTop = `${header.offsetHeight}px`;
}

window.addEventListener("load", paddingHeader);