Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
marceldobehere committed Aug 18, 2024
1 parent c275d8d commit adfcde5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
<script>
const documentHeight = () => {
const doc = document.documentElement;
doc.style.setProperty('--main-app-height', `${window.innerHeight - 2}px`);
console.log('Document Height', window.innerHeight - 2);
let height = window.visualViewport.height;
doc.style.setProperty('--main-app-height', `${height - 2}px`);
console.log(`New Document Height: ${height} (Other: ${window.innerHeight})`);
}
window.addEventListener('resize', documentHeight)
documentHeight()
setInterval(documentHeight, 1000);
//setInterval(documentHeight, 1000);

document.addEventListener("DOMContentLoaded", (event) => {
domLoaded();
Expand Down

0 comments on commit adfcde5

Please sign in to comment.