aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/assets/js/header.js
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2019-03-16 17:43:05 +0100
committerDimitri Staessens <[email protected]>2019-03-16 17:43:05 +0100
commit79acfcf1599496e67b20c39c00a100b07c383ab1 (patch)
tree0651646a631545b2ff56074f4c8f492d69dbb170 /themes/terrassa/assets/js/header.js
parent4b98568dbdc0dddf8255abbbb08565821b79f839 (diff)
downloadwebsite-79acfcf1599496e67b20c39c00a100b07c383ab1.tar.gz
website-79acfcf1599496e67b20c39c00a100b07c383ab1.zip
theme: Add terrassa theme
Diffstat (limited to 'themes/terrassa/assets/js/header.js')
-rw-r--r--themes/terrassa/assets/js/header.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/terrassa/assets/js/header.js b/themes/terrassa/assets/js/header.js
new file mode 100644
index 0000000..12de881
--- /dev/null
+++ b/themes/terrassa/assets/js/header.js
@@ -0,0 +1,7 @@
+const header = document.querySelector("header");
+
+function paddingHeader() {
+ document.body.style.paddingTop = `${header.offsetHeight}px`;
+}
+
+window.addEventListener("load", paddingHeader); \ No newline at end of file