‘), list = $(”).appendTo(box), sharedurl, encodedurl, i, l; sharedurl = shared.data(‘shared’); titre = shared.data(‘titre’); encodedurl = encodeURIComponent(resolve(sharedurl)); pour (l = 0; l ‘).appendTo(list); si ($.isFunction(services[l].t)) { var r = services[l].t (partagé); si (r) { li.append($(‘
‘).text(r)); } autre { continuer ; } } else { li.append($(‘‘).text(services[l].t)); } var s = services[l].s; var ul = $(”).appendTo(li); pour (i dans s) { if (s.hasOwnProperty(i)) { var url = s[i].u.replace(/^%url%/, sharedurl).replace(/%url%/g, encodedurl); if (i === ’em’) { url = url.replace(/^%title%/, title).replace(/%title%/g, encodeURIComponent(title + ‘ – Tgcom24’)); } else { if (i === ‘msg’) { url += ‘&next=” + encodedurl + “&app_id=206282216389866’; } sinon if (i === ‘msg_mob’) { url += ‘&app_id=206282216389866’; } } var lien = $(‘‘ + s[i].n + ‘‘); si (s[i].p) { link.click(function(e) { var w = popup(this.href, i, 1000, 700); if (w) { e.preventDefault(); return false; } ; }); } ul.append ($ (‘t: ‘Condividi su’,
s: {
fb: {
n: ‘Facebook’,
u: ‘https://www.facebook.com/sharer/sharer.php?u=%url%’,
p: true
},
tw: {
n: ‘X’,
u: ‘https://twitter.com/intent/tweet?url=%url%’,
p: true
},
wa: {
n: ‘Whatsapp’,
u: ‘https://api.whatsapp.com/send?text=Da%20TGCOM24:%20%url%’,
p: true
},
msg: {
n: ‘Messenger’,
u: ‘http://facebook.com/dialog/send?link=%url%’,
p: true
},
msg_mob: {
n: ‘Messenger’,
u: ‘fb-messenger://share/?link=%url%’,
p: true
},
tlg: {
n: ‘Telegram’,
u: ‘https://telegram.me/share/url?url=%url%’,
p: true
},
li: {
n: ‘LinkedIn’,
u: ‘https://www.linkedin.com/shareArticle?url=%url%’,
p: true
},
/* gp: {
n: ‘Google+’,
u: ‘https://plus.google.com/share?url=%url%’,
p: true
}, */
em: {
n: ‘via email’,
u: ‘mailto:?subject=%title%&body=Da%20Tgcom24:%20%url%’
}
}
}]; function popup(uri, win_name, width, height, x, y) { if (uri === “”) { return; } if (x == null) { x = parseInt(screen.width / 2, 10) – width / 2; } if (y == null) { y = parseInt(screen.height / 2, 10) – hauteur / 2; } var optionstr, win, options = { redimensionnable : ‘non’, barres de défilement : ‘oui’ }, optnames = [‘resizable’, ‘scrollbars’]je, v, arg6 = arguments[6]; if ((typeof arg6 === ‘indéfini’ ? ‘indéfini’ : babelHelpers.typeof(arg6)) === ‘objet’) { if (arg6.resizing) { options.resizing = arg6.resizing; } if (arg6.scrollbars) { options.scrollbars = arg6.scrollbars; } } optionsstr=””; pour (je = 0; je