Skip to content

Commit ccdd6c8

Browse files
committed
add bg image v12
1 parent 1c6dde9 commit ccdd6c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ menuItems.forEach(function(menuItem) {
77
});
88

99
document.addEventListener("DOMContentLoaded", function() {
10-
var windowWidth = window.innerWidth;
11-
var windowHeight = window.innerHeight;
10+
var windowWidth = window.screen.width;
11+
var windowHeight = window.screen.height;
1212

1313
var backgroundImageUrl = "source/img/bg_forest.jpg";
1414
var backgroundSection = document.querySelector('#menu-body');

0 commit comments

Comments
 (0)