Mise en attente line-height proportionnelle

This commit is contained in:
Fred Tempez 2021-12-14 18:55:19 +01:00 committed by fredtempez
parent 4ae440ccd9
commit 271f231d26
1 changed files with 4 additions and 0 deletions

View File

@ -376,7 +376,11 @@ core.start = function() {
var height = heightpx.substr(0,heightpx.length-2);
var ratio = width / height;
if ( ($(window).width() / ratio) <= height) {
//var feature = "<?php echo $this->getdata(['theme','header','feature']);?>";
$("header").height( $(window).width() / ratio );
//if( feature !== "feature"){
// $("header").css("line-height", $(window).width() / ratio + "px");
//};
}
}
}).trigger("resize");