Skip to content

Commit

Permalink
Add baidu tongji
Browse files Browse the repository at this point in the history
  • Loading branch information
lispking committed Apr 20, 2024
1 parent ce841fa commit 5323dc1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ title = "Effective Rust 中文版"
[output.html]
default-theme = "rust"
additional-css = [ "src/css/ferris.css" ]
additional-js = [ "src/js/tongji.js" ]
7 changes: 7 additions & 0 deletions src/js/tongji.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?2ea8280e6459b30fc19e21785c5c4363";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();

0 comments on commit 5323dc1

Please sign in to comment.