Showing
1 changed file
with
15 additions
and
0 deletions
@@ -19,3 +19,18 @@ function async_load(){ | @@ -19,3 +19,18 @@ function async_load(){ | ||
19 | } | 19 | } |
20 | window.addEventListener('load', async_load, false); | 20 | window.addEventListener('load', async_load, false); |
21 | </script> | 21 | </script> |
22 | + | ||
23 | +<script> | ||
24 | + (function(){ | ||
25 | + var bp = document.createElement('script'); | ||
26 | + var curProtocol = window.location.protocol.split(':')[0]; | ||
27 | + if (curProtocol === 'https') { | ||
28 | + bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; | ||
29 | + } | ||
30 | + else { | ||
31 | + bp.src = 'http://push.zhanzhang.baidu.com/push.js'; | ||
32 | + } | ||
33 | + var s = document.getElementsByTagName("script")[0]; | ||
34 | + s.parentNode.insertBefore(bp, s); | ||
35 | + })(); | ||
36 | +</script> |
-
Please register or login to post a comment