Skip to content

Commit

Permalink
Change the function to correct the hero size
Browse files Browse the repository at this point in the history
  • Loading branch information
conradolandia committed Mar 19, 2024
1 parent c2e5f7c commit 4be5cc7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions assets/static/js/main-singlelayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ https://github.com/spyder-ide/lektor-icon/blob/master/NOTICE.txt

const setHeroHeight = function () {
heroHeight();
$(window).bind("resize", heroHeight);
$(window).on("load", heroHeight);
$(window).on("resize", heroHeight);
};

// Loading animation
Expand Down Expand Up @@ -171,16 +172,12 @@ https://github.com/spyder-ide/lektor-icon/blob/master/NOTICE.txt
loaderPage();
fh5coTabs();
parallax();
setHeroHeight();
scrolledWindow();
clickMenu();
navigationSection();
if (mailchimpButtonEnabled) {
setMailchimpEvent();
}
});

// Document when all assets are fully loaded
$(window).bind("load", function () {
setHeroHeight();
});
})();

0 comments on commit 4be5cc7

Please sign in to comment.