Line 97: | Line 97: | ||
<script> | <script> | ||
window.addEventListener('scroll', () => { | window.addEventListener('scroll', () => { | ||
− | var h = document.getElementById('topHeader'); | + | let pageHeight = $(window).height(); |
− | height = h.clientHeight; | + | let headerHeight = $("header").height(); |
+ | |||
+ | // var h = document.getElementById('topHeader'); | ||
+ | // height = h.clientHeight; | ||
+ | var height=0.7*pageHeight-headerHeight+5; | ||
let header = document.querySelector('header'); | let header = document.querySelector('header'); | ||
let logoHolder = document.querySelector('.logoHolder'); | let logoHolder = document.querySelector('.logoHolder'); |
Revision as of 05:14, 6 August 2021