From: soufiane Date: Mon, 7 Oct 2024 15:55:15 +0000 (+0200) Subject: wait #7119 @0:40 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=828610ec1905632b575d0200d255b2670a289f3a;p=c6-wordpress.git wait #7119 @0:40 --- diff --git a/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeroBlock.php b/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeroBlock.php index 16209a8..3174ed3 100644 --- a/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeroBlock.php +++ b/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeroBlock.php @@ -244,6 +244,25 @@ class HeroBlock extends Widget_Base { $(document).on("click", ".hero-block-player-button", function() { $('#player-video .elementor-custom-embed-image-overlay').click() }) + + const homeBanner = $("#home-banner"); + if(homeBanner.length > 0) { + const bottomHomeBanner = homeBanner.get(0).getBoundingClientRect().bottom + + $(window).on("scroll", function (e) { + if ($(window).scrollTop() + 150 > bottomHomeBanner) { + $('header.site .inner').css({ + "background": "#fff", + "color": "#1c1c1c" + }) + } else { + $('header.site .inner').css({ + "background": "transparent", + "color": "#fff" + }) + } + }) + } })(jQuery)