File: /home/iestorre/www2/modules/service_links/js/google_plus_one.js
if (Drupal.jsEnabled) {
$(document).ready(function(){
$('a.service-links-google-plus-one').each(function(){
var g_text = document.createElement('g:plusone');
g_text.setAttribute('href', $(this).attr('href'));
g_text.setAttribute('width', Drupal.settings.ws_gpo.width);
if (Drupal.settings.ws_gpo.size != '') {
g_text.setAttribute('size', Drupal.settings.ws_gpo.size);
}
if (Drupal.settings.ws_gpo.annotation != '') {
g_text.setAttribute('annotation', Drupal.settings.ws_gpo.annotation);
}
if (Drupal.settings.ws_gpo.callback) {
g_text.setAttribute('callback', Drupal.settings.ws_gpo.callback);
}
$(this).replaceWith(g_text);
var params = { parsetags: "explicit" };
if (Drupal.settings.ws_gpo.lang != '') {
params.lang = Drupal.settings.ws_gpo.lang;
}
window.___gcfg = params
$.ajax({
url: "https://apis.google.com/js/plusone.js",
dataType: "script",
cache: true,
success: function () {
this.scriptadded = true;
gapi.plusone.go();
}
});
});
});
}