Beautify file

This commit is contained in:
Fred Tempez 2021-12-14 10:10:52 +01:00
parent 48d1bf27a0
commit c1168c7ee8
1 changed files with 4 additions and 2 deletions

View File

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