/star_counter

Count a GitHub user's stars and forks(在线统计账号star数量)

Primary LanguageJavaScriptMIT LicenseMIT

star_counter

Count a GitHub user's total stars and forks

demo

input the github id you want to count, and click the Calculate button

Use on your website

paste this on your website

<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>