Calculate adds sizes

Trim white-spaces for share buttons
Increase header with 1 pixel
This commit is contained in:
Jorit Tijsen
2024-04-19 15:25:00 +02:00
parent e7459cf026
commit 4db20ca296
7 changed files with 22 additions and 7 deletions

View File

@@ -0,0 +1,7 @@
function calculateSize(targetId) {
setTimeout(function(){
$('#' + targetId).height($('#' + targetId).children(":first").height());
$('#' + targetId).width($('#' + targetId).children(":first").width());
}, 500);
$('#' + targetId).css({backgroundColor: 'transparent'});
}