Calculate adds sizes
Trim white-spaces for share buttons Increase header with 1 pixel
This commit is contained in:
10
public/js/functions.js
vendored
10
public/js/functions.js
vendored
@@ -1,3 +1,11 @@
|
||||
function calculateSize(targetId) {
|
||||
setTimeout(function(){
|
||||
$('#' + targetId).height($('#' + targetId).children(":first").height());
|
||||
$('#' + targetId).width($('#' + targetId).children(":first").width());
|
||||
}, 500);
|
||||
$('#' + targetId).css({backgroundColor: 'transparent'});
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#changePreferences, .cc_b_cp').click(function(){
|
||||
$('#title_targeting').parent('li').hide();
|
||||
@@ -181,7 +189,7 @@ $(function () {
|
||||
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