gitbook-plugin-statistics
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -18,9 +18,13 @@ require(["gitbook", 'jQuery'], function(gitbook, $) { | ||
if (cnzzId !== 0) { | ||
const res = '<div style=\'color: red\'>' + | ||
'<script type="text/javascript">' + | ||
'var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");' + | ||
'document.write(unescape("%3Cspan id=\'cnzz_stat_icon_'+cnzzId+'\'%3E%3C/span%3E%3Cscript src=\''+cnzzUrl+'%3Fid%3D'+cnzzId+'\' type=\'text/javascript\'%3E%3C/script%3E"));' + | ||
'</script>' + | ||
'</div>'; | ||
$('body').append(res); | ||
const hm2 = document.createElement('script'); | ||
hm2.src = cnzzUrl+'?id=' + cnzzId + '&web_id='+cnzzId; | ||
const s2 = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(hm2, s2); | ||
// const res = '<div style=\'color: red\'>' + | ||
// '<script type="text/javascript">' + | ||
// 'document.write(unescape("%3Cspan id=\'cnzz_stat_icon_'+cnzzId+'\'%3E%3C/span%3E%3Cscript src=\''+cnzzUrl+'%3Fid%3D'+cnzzId+'\' type=\'text/javascript\'%3E%3C/script%3E"));' + | ||
// '</script>' + | ||
// '</div>'; | ||
// $('body').append(res); | ||
} | ||
@@ -27,0 +31,0 @@ } |
{ | ||
"name": "gitbook-plugin-statistics", | ||
"version": "v1.0.15", | ||
"version": "v1.0.16", | ||
"description": "Gitbook 数据统计插件", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
3515
43