From 48d1bf27a044342232d108350d197d9ee4de84a2 Mon Sep 17 00:00:00 2001 From: SylvainLelievre Date: Tue, 14 Dec 2021 08:02:11 +0100 Subject: [PATCH] header responsive avec feature --- core/core.js.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core.js.php b/core/core.js.php index c4c00919..cb600efb 100644 --- a/core/core.js.php +++ b/core/core.js.php @@ -251,7 +251,7 @@ core.start = function() { /** * Commande de gestion des cookies dans le footer */ - + $("#footerLinkCookie").on("click", function() { $("#cookieConsent").removeClass("displayNone"); }); @@ -375,9 +375,10 @@ core.start = function() { var heightpx = "getdata(['theme','header','height']);?>"; var height = heightpx.substr(0,heightpx.length-2); var ratio = width / height; + var feature = "getdata(['theme','header','feature']);?>"; if ( ($(window).width() / ratio) <= height) { $("header").height( $(window).width() / ratio ); - $("header").css("line-height", $(window).width() / ratio + "px"); + if( feature !== "feature"){ $("header").css("line-height", $(window).width() / ratio + "px")}; } } }).trigger("resize");