We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c6dde9 commit ccdd6c8Copy full SHA for ccdd6c8
js/main.js
@@ -7,8 +7,8 @@ menuItems.forEach(function(menuItem) {
7
});
8
9
document.addEventListener("DOMContentLoaded", function() {
10
- var windowWidth = window.innerWidth;
11
- var windowHeight = window.innerHeight;
+ var windowWidth = window.screen.width;
+ var windowHeight = window.screen.height;
12
13
var backgroundImageUrl = "source/img/bg_forest.jpg";
14
var backgroundSection = document.querySelector('#menu-body');
0 commit comments