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 552eda0 commit f778a99Copy full SHA for f778a99
js/main.js
@@ -4,4 +4,14 @@ menuItems.forEach(function(menuItem) {
4
menuItem.addEventListener('click', function() {
5
menuItem.classList.toggle('details');
6
});
7
-});
+});
8
+
9
+document.addEventListener("resize", function() {
10
+ var windowWidth = window.innerWidth;
11
+ var windowHeight = window.innerHeight;
12
+ var backgroundSection = document.querySelector('#bg_image');
13
14
+ backgroundSection.style.width = windowWidth + 'px';
15
+ backgroundSection.style.height = windowHeight + 'px';
16
17
0 commit comments