Skip to content

Commit 5054454

Browse files
committed
访问量统计
1 parent 6860980 commit 5054454

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

‎notes/docsify/js/main.js‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,16 @@
155155
handleSwitch(activeHref);
156156
}
157157

158-
159158
// document.querySelector(".markdown-section").click();
160-
159+
var getJs = true;
160+
while(getJs){
161+
setTimeout(function () {
162+
$('#la_19815069').append('<script type="text/javascript" src="//quote.51.la/q?id=19815069&mb=4"></script>');
163+
}, 150)
164+
if($('#la_19815069 a')){
165+
getJs = false;
166+
}
167+
}
161168

162169
});
163170

‎notes/index.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
article#main {
6363
padding: 2rem 35px;
6464
}
65+
/* 访问量显示 */
66+
span#la_19815069 a {
67+
text-decoration: none;
68+
pointer-events: none;
69+
}
6570
</style>
6671
</head>
6772

0 commit comments

Comments
 (0)