6

【小工具】github star数量统计

 3 years ago
source link: https://www.guofei.site/2019/08/31/github_star_counter.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【小工具】github star数量统计

2019年08月31日

Author: Guofei

文章归类: 开源,文章编号:


版权声明:本文作者是郭飞。转载随意,但需要标明原文链接,并通知本人
原文链接:https://www.guofei.site/2019/08/31/github_star_counter.html

Edit

一个统计某个账号下 github 的 star 数量的在线小应用。

试试吧:

输入账号,然后点击Calculate 按钮
如果点击按钮没反应,刷新一次就好了(网站框架的锅,以后有时间再修复)

Input github id:

如何部署到你的网站

把这个copy到你的网页里

<script src="http://www.guofei.site/star_counter/star_counter.js"></script> <!--引用js代码-->
<script>
    function func_1() {
        document.getElementById("star_counter").innerHTML = 'If not print for seconds, please refresh';
        github_id = document.getElementById("user").value;
        document.getElementById("star_counter").innerHTML = cal_github_star(github_id);
    }
</script>


Input github id: <input name="user" value="guofei9987" type="text" id="user">
<input name="Button" type="button" value="Calculate" onClick="func_1()">

<p id="star_counter"></p>

源代码地址,star一下,我就很开心啦


您的支持将鼓励我继续创作!

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK