New docs init

This commit is contained in:
Jeremy Thomas
2018-04-09 01:12:55 +01:00
parent 740df6a0fa
commit a6b48378f8
8 changed files with 799 additions and 2236 deletions

View File

@@ -280,8 +280,11 @@ document.addEventListener('DOMContentLoaded', () => {
}
const translateFactor = 1 + translateValue / NAVBAR_HEIGHT;
specialShadow.style.opacity = scrollFactor;
specialShadow.style.transform = 'scaleY(' + translateFactor + ')';
if (specialShadow) {
specialShadow.style.opacity = scrollFactor;
specialShadow.style.transform = 'scaleY(' + translateFactor + ')';
}
}
translateHeader(window.scrollY, false);