Browse Source

博客自动收录

layui
mail_yanpeng@163.com 6 years ago
parent
commit
28a40b24c1
  1. 16
      views/blog.html

16
views/blog.html

@ -134,6 +134,22 @@
} }
}, 'json') }, 'json')
}) })
/*百度收录*/
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
/*360收录*/
var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c4":"https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c4";
document.write('<script src="' + src + '" id="sozz"><\/script>');
}) })
function recomm(pid, flag) { function recomm(pid, flag) {
layer.prompt({title: '请输入评论内容', value: name, formType: 2}, function (val, index) { layer.prompt({title: '请输入评论内容', value: name, formType: 2}, function (val, index) {

Loading…
Cancel
Save