当前页面已停止!
if(typeof window.xh_social_share!='function'){
window.xh_social_share=function(settings){
if(!settings||typeof settings!='object'){return;}
var url = encodeURIComponent('https://www.salttp.com/product/aspire-flexus-blok.html');
var title = encodeURIComponent(document.title);
var summary = document.querySelector('.entry-content') || document.querySelector('article') || document.querySelector('main') || document.querySelector('body') || '';
var pic = '';
if(summary){
var index = 0;
[].forEach.call(summary.querySelectorAll('img'), function(a){
if(index++>=3){
return false;
}
pic += (pic?'||':'') + encodeURIComponent(a.src);
});
summary = encodeURIComponent(summary.innerText.replace(/\r|\n|\t/g,'').replace(/ +/g,' ').replace(//g,'').substr(0,80));
}
var single_img ='https://www.salttp.com/wp-content/uploads/2022/08/161660548399_.pic_.jpg';
pic = pic.replace(single_img+'||','');
pic = pic.replace(single_img,'');
pic = single_img+(pic?'||':'')+pic;
var link =typeof settings.link!='undefined'?settings.link:'';
if(!link||link.length<=0){return;}
if(!/summary/.test(link) && summary) {
title = title + ': ' + summary + '.. ';
}
link = link.replace("{url}",url).replace("{title}",title).replace("{summary}",summary).replace("{img}",pic);
var iWidth=typeof settings.width!='undefined'?settings.width: 450;
var iHeight=typeof settings.height!='undefined'?settings.height: 450;
var iTop = (window.screen.height-30-iHeight)/2; //获得窗口的垂直位置;
var iLeft = (window.screen.width-10-iWidth)/2; //获得窗口的水平位置;
window.open(link, 'share', 'height='+iHeight+',innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',menubar=0,scrollbars=1,resizable=1,status=1,titlebar=0,toolbar=0,location=1');
}
}
如有疑问,请联系管理员
if(typeof window.xh_social_share!='function'){ window.xh_social_share=function(settings){ if(!settings||typeof settings!='object'){return;} var url = encodeURIComponent('https://www.salttp.com/product/aspire-flexus-blok.html'); var title = encodeURIComponent(document.title); var summary = document.querySelector('.entry-content') || document.querySelector('article') || document.querySelector('main') || document.querySelector('body') || ''; var pic = ''; if(summary){ var index = 0; [].forEach.call(summary.querySelectorAll('img'), function(a){ if(index++>=3){ return false; } pic += (pic?'||':'') + encodeURIComponent(a.src); }); summary = encodeURIComponent(summary.innerText.replace(/\r|\n|\t/g,'').replace(/ +/g,' ').replace(//g,'').substr(0,80)); } var single_img ='https://www.salttp.com/wp-content/uploads/2022/08/161660548399_.pic_.jpg'; pic = pic.replace(single_img+'||',''); pic = pic.replace(single_img,''); pic = single_img+(pic?'||':'')+pic; var link =typeof settings.link!='undefined'?settings.link:''; if(!link||link.length<=0){return;} if(!/summary/.test(link) && summary) { title = title + ': ' + summary + '.. '; } link = link.replace("{url}",url).replace("{title}",title).replace("{summary}",summary).replace("{img}",pic); var iWidth=typeof settings.width!='undefined'?settings.width: 450; var iHeight=typeof settings.height!='undefined'?settings.height: 450; var iTop = (window.screen.height-30-iHeight)/2; //获得窗口的垂直位置; var iLeft = (window.screen.width-10-iWidth)/2; //获得窗口的水平位置; window.open(link, 'share', 'height='+iHeight+',innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',menubar=0,scrollbars=1,resizable=1,status=1,titlebar=0,toolbar=0,location=1'); } }