Browse Source

博客自动收录

layui
mail_yanpeng@163.com 6 years ago
parent
commit
192d788faf
  1. 14
      views/blog.html

14
views/blog.html

@ -134,7 +134,7 @@
} }
}, 'json') }, 'json')
}) })
debugger
/*百度收录*/ /*百度收录*/
var bp = document.createElement('script'); var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0]; var curProtocol = window.location.protocol.split(':')[0];
@ -148,8 +148,16 @@
s.parentNode.insertBefore(bp, s); s.parentNode.insertBefore(bp, s);
/*360收录*/ /*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"; var qihuo = document.createElement('script');
// document.write('<script src="' + src + '" id="sozz"><\/script>'); if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
else {
qihuo.src = 'http://js.passport.qihucdn.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c4';
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
}) })
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