mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 02:02:21 +00:00
feat: add statistics code
This commit is contained in:
parent
bf59c210ca
commit
33408fd3a3
10
js/ditto.js
10
js/ditto.js
@ -316,6 +316,14 @@ function show_loading() {
|
||||
return loading;
|
||||
}
|
||||
|
||||
function statistics() {
|
||||
var _hmt = _hmt || [];
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?519d72adb78a0bf66de7bae18e994322";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
}
|
||||
|
||||
function router() {
|
||||
var path = location.hash.replace(/#([^#]*)(#.*)?/, './$1');
|
||||
|
||||
@ -415,6 +423,8 @@ function router() {
|
||||
$('#pagedown').css('display', 'inline-block');
|
||||
}
|
||||
|
||||
statistics();
|
||||
|
||||
(function() {
|
||||
var $w = $(window);
|
||||
var $prog2 = $('.progress-indicator-2');
|
||||
|
Loading…
x
Reference in New Issue
Block a user