jQuery(window).on('load', function() {
new JCaption('img.caption');
});
jQuery(function ($) {
var start = document.getElementById('highlighter-start');
var end = document.getElementById('highlighter-end');
if (!start || !end || !Joomla.Highlighter) {
return true;
}
highlighter = new Joomla.Highlighter({
startElement: start,
endElement: end,
className: 'highlight',
onlyWords: false,
tag: 'span'
}).highlight(["\u0069","\u0027\u0069","\u0069\u0027\u0064","\u0069\u0027\u0069\u006d\u0070\u0065\u0067\u006e\u006f","\u0069\u0027\u006d","\u0069\u0027\u0069\u006e\u0073\u0065\u0072\u0069\u006d\u0065\u006e\u0074\u006f","\u0061\u006d","\u0062\u0061\u0064\u006d\u0069\u006e\u0074\u006f\u006e","\u0062\u0061\u0064\u006d\u0069\u006e\u0074\u006f\u006e\u0027","\u0062\u0061\u0064\u006d\u0069\u006e\u0074\u006f\u006e\u0027\u002c","\u0027\u0062\u0061\u0064\u006d\u0069\u006e\u0074\u006f\u006e","\u0062\u0061\u0064\u006d\u0069\u006e\u0074\u006f\u006e\u0027\u002e","\u0069\u0020\u0061\u006d","\u0069\u0020\u0061\u006d\u0020\u0062\u0061\u0064\u006d\u0069\u006e\u0074\u006f\u006e","\u0061\u006d\u0020\u0062\u0061\u0064\u006d\u0069\u006e\u0074\u006f\u006e"]);
$(start).remove();
$(end).remove();
});
jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} });
jQuery.urlShortener.settings.apiKey='AIzaSyB9Z_0jbJ4-cZAis8KkEgZE2iGWFTQd8nE';
jQuery.urlShortener({
longUrl: "",
success: function (shortUrl) {
//shortUrl -> Shortened URL
jQuery("meta[property='og:url']").attr('content',shortUrl);
href=jQuery("#twitterhref").attr('href');
jQuery("#twitterhref").attr('href',href+'&url='+shortUrl);
},
error: function(err)
{
alert(JSON.stringify(err));
}
});