1.1.3 • Published 5 years ago
weicomment v1.1.3
WeiComment
基于新浪微博的静态博客评论系统
使用
在需要评论的地方(例如 Hexo 模板中)添加 HTML
<div id="weicomment">
<div class="loader"></div>
</div>
<style>
#weicomment .loader,#weicomment .loader:after,#weicomment .loader:before{background:#000;-webkit-animation:load1 1s infinite ease-in-out;animation:load1 1s infinite ease-in-out;width:1em;height:4em}#weicomment .loader{color:#000;text-indent:-9999em;margin:88px auto;position:relative;font-size:11px;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation-delay:-.16s;animation-delay:-.16s}#weicomment .loader:after,#weicomment .loader:before{position:absolute;top:0;content:''}#weicomment .loader:before{left:-1.5em;-webkit-animation-delay:-.32s;animation-delay:-.32s}#weicomment .loader:after{left:1.5em}@-webkit-keyframes load1{0%,100%,80%{box-shadow:0 0;height:3em}40%{box-shadow:0 -2em;height:3em}}@keyframes load1{0%,100%,80%{box-shadow:0 0;height:3em}40%{box-shadow:0 -2em;height:3em}}
</style>
<script>
var t = document.createElement('script');
t.src = '//cdn.jsdelivr.net/npm/weicomment@latest/dist/js/weicomment.js?t=' + Math.floor(Date.now() / 1000 / 60);
t.id = 'weicomment-script';
t.setAttribute('data-uid', '你的微博 uid'); // 不知道 uid 的可以在 https://m.weibo.cn/ 搜索自己的 profile 页面,URL 中的 id 就是 uid
t.setAttribute('data-title', document.title.slice(2).split(' - ')[0]); // 获取当前文章的标题,根据自己的情况修改,WeiComment 根据标题寻找对应的微博,结果中不能包含空格等
document.head.appendChild(t);
</script>
初始化一篇文章的评论
点击页面上的『分享微博初始化评论』,发布到微博后刷新页面即可初始化评论。注意不要修改分享的内容,WeiComment 根据标题匹配对应的微博评论。
评论管理
点进对应的微博进行管理即可
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.18
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago