Fixed logo visibility when the header is hidden

This commit is contained in:
Sodbileg Gansukh
2022-12-16 11:57:59 +08:00
parent ebb2538215
commit cc4d828575
7 changed files with 12 additions and 11 deletions

View File

@ -1,7 +1,8 @@
(function () {
const mediaQuery = window.matchMedia('(max-width: 767px)');
const menu = document.querySelector('.gh-head-menu');
const head = document.querySelector('.gh-head');
const menu = head.querySelector('.gh-head-menu');
const nav = menu.querySelector('.nav');
if (!nav) return;
@ -68,7 +69,7 @@
});
}
imagesLoaded(logo, function () {
imagesLoaded(head, function () {
makeDropdown();
});