‘), list = $(”).appendTo(box), sharedurl, encodedurl, i, l; sharedurl = shared.data(‘shared’); title = shared.data(‘title’); encodedurl = encodeURIComponent(resolve(sharedurl)); for (l = 0; l < services.length; ++l) { var li = $('
‘).text(r)); } else { continue; } } else { li.append($(‘
‘).text(services[l].t)); } var s = services[l].s; var ul = $(”).appendTo(li); for (i in 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 === ‘message’) { url += ‘&next=” + urlencoded + “&app_id=206282216389866’; } else if (i === ‘msg_mob’) { url += ‘&app_id=206282216389866’; } } var link = $(” + s[i].n + ”); yes (yes)[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: ‘
p: true
},
tw: {
n: ‘Twitter’,
u: ‘
p: true
},
wa: {
n: ‘Whatsapp’,
u: ‘
p: true
},
msg: {
n: ‘Messenger’,
u: ‘
p: true
},
msg_mob: {
n: ‘Messenger’,
u: ‘fb-messenger://share/?link=%url%’,
p: true
},
tlg: {
n: ‘Telegram’,
u: ‘
p: true
},
li: {
n: ‘LinkedIn’,
u: ‘
p: true
},
/* gp: {
n: ‘Google+’,
u: ‘
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) – height / 2; } var optionsstr, win, options = { resizable: ‘no’, scrollbars: ‘yes’ }, optnames = [‘resizable’, ‘scrollbars’]i, v, arg6 = arguments[6]; if ((typeof arg6 === ‘undefined’ ? ‘undefined’ : babelHelpers.typeof(arg6)) === ‘object’) { if (arg6.resizable) { options.resizable = arg6.resizable; } if (arg6.scrollbars) { options.scrollbars = arg6.scrollbars; } } optionsstr=””; for(i = 0; i[i]; optionsstr += ‘,’ + v + ‘=’ + options[v]; } win = window.open(uri, win_name, ‘personalbar=no,toolbar=no,width=” + width + “,height=” + height + “,left=” + x + “,top=’ + y + optionstr); if(win) { win.focus(); } returnwin; }