1.3.16 • Published 4 years ago
minivaline-counter v1.3.16
minivaline-counter
minivaline's counter plugin
CDN Link
https://cdn.jsdelivr.net/npm/minivaline-counter@1/dist/MCounter.min.js
Usage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>MiniValine - A simple comment system based on Leancloud.</title>
<!--Load js and insert it before </ body>-->
<script src="https://cdn.jsdelivr.net/npm/minivaline-counter@1/dist/MCounter.min.js"></script>
</head>
<body>
<!-- 文章阅读量访问统计 -->
<!-- id as the query condition -->
<span id="<Your/Path/Name>" class="leancloud_visitors" data-flag-title="Your Article Title">
<em class="post-meta-item-text">article reading statistics </em>
<i class="leancloud-visitors-count">1000000</i>
</span>
<!-- 全站访问统计 -->
<span id="/" class="leancloud_pv">
<em class="post-meta-item-text">PV </em>
<i class="leancloud-visitors-count">1000000</i>
</span>
<script>
new MCounter({
appId: 'Your App ID',
appKey: 'Your Key'
});
</script>
</body>
</html>
Options
appId
String
Required. Your App ID
appKey
String
Required. Your App Key
NewCmt
Int
Default:
0
获取前n条最新评论信息。数据保存在
window.MV.MC.NewCmt
.HotEyeArt
Int
Default:
0
获取前n条热门文章信息。数据保存在
window.MV.MC.HotEyeArt
.
访客统计(beta)
MiniValine FAQs
Feedback
- Visit the AWESOME MiniValine list to share plugins and tutorials with other users.
- Report a bug in GitHub Issues.
- Add or improve translation in few seconds.
- Request a new feature on GitHub.
- Join our Gitter chats.
- Vote for popular feature requests.
License
1.3.16
4 years ago
1.3.15
4 years ago
1.3.13
4 years ago
1.3.11
4 years ago
1.3.12
4 years ago
1.3.10
4 years ago
1.3.9
4 years ago
1.3.8
4 years ago
1.3.7
4 years ago
1.3.6
4 years ago
1.3.5
4 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago
0.0.1
4 years ago