Skip to content

Commit f778a99

Browse files
committed
add bg image v16
1 parent 552eda0 commit f778a99

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

js/main.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@ menuItems.forEach(function(menuItem) {
44
menuItem.addEventListener('click', function() {
55
menuItem.classList.toggle('details');
66
});
7-
});
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

Comments
 (0)