fix: spostamento js allineamento header
This commit is contained in:
parent
ba1da60c2c
commit
0cf90de65d
|
@ -97,6 +97,9 @@ $(document).ready(function () {
|
|||
$('input').trigger('blur');
|
||||
});
|
||||
}, 1000);
|
||||
|
||||
alignMaxHeight(".module-header .card");
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
|
@ -124,3 +127,13 @@ function sendWhatsAppMessage(phoneNumber, message) {
|
|||
var url = "https://api.whatsapp.com/send?phone=" + phoneNumber + text;
|
||||
window.open(url);
|
||||
}
|
||||
|
||||
function alignMaxHeight(element){
|
||||
max_height = 0;
|
||||
$(element).each( function(){
|
||||
if($(this).height() > max_height){
|
||||
max_height = $(this).height();
|
||||
}
|
||||
});
|
||||
$(element).height(max_height);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue