1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 10:22:23 +00:00

feat: add statistics code

This commit is contained in:
ruanyf 2020-01-03 15:06:05 +08:00
parent bf59c210ca
commit 33408fd3a3

View File

@ -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');