Calculate adds sizes
Trim white-spaces for share buttons Increase header with 1 pixel
This commit is contained in:
7
resources/assets/js/functions/advertisement.js
vendored
Normal file
7
resources/assets/js/functions/advertisement.js
vendored
Normal 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'});
|
||||
}
|
||||
2
resources/assets/js/functions/share.js
vendored
2
resources/assets/js/functions/share.js
vendored
@@ -26,7 +26,7 @@
|
||||
if (type !== undefined) {
|
||||
var extra = '';
|
||||
if (type.textOption) {
|
||||
var text = $('.' + options.excerptClass).text();
|
||||
var text = $('.' + options.excerptClass).text().trim();
|
||||
if (text.length + location.href.length > 278) {
|
||||
text = text.substring(0, 278 - (location.href.length + 3)) + '...';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user