mirror of
https://github.com/ivabus/www
synced 2024-11-13 03:35:18 +03:00
Parenthesis fade in with starcount
This commit is contained in:
parent
eeae257c22
commit
6658ed377b
|
@ -141,15 +141,16 @@ integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var repository = "teaxyz/cli";
|
var repository = "teaxyz/cli";
|
||||||
var url = "https://api.github.com/repos/" + repository;
|
var url = "https://api.github.com/repos/" + repository;
|
||||||
|
|
||||||
$.get(url, function(data) {
|
$.get(url, function(data) {
|
||||||
var stargazers = numeral(data.stargazers_count).format("0.0a");
|
var stargazers = "(" + numeral(data.stargazers_count).format("0.0a") + ")";
|
||||||
$(".stargazers").html(stargazers).hide().fadeIn(400);
|
$(".stargazers").html(stargazers).hide().fadeIn(400);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
</script>
|
||||||
</script>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<li class="nav-item mt-lg-0 mt-md-0 mt-sm-3 mt-3">
|
<li class="nav-item mt-lg-0 mt-md-0 mt-sm-3 mt-3">
|
||||||
<a class="top-nav-link nav-link" aria-current="page" href="https://github.com/teaxyz/cli/stargazers"><i class="icon-github" style="position:relative;top:2px;"></i> (<span class="stargazers"></span>)</a>
|
<a class="top-nav-link nav-link" aria-current="page" href="https://github.com/teaxyz/cli/stargazers"><i class="icon-github" style="position:relative;top:2px;"></i> <span class="stargazers"></span></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<li class="nav-item mt-lg-0 mt-md-0 mt-sm-3 mt-3 top-nav-item">
|
<li class="nav-item mt-lg-0 mt-md-0 mt-sm-3 mt-3 top-nav-item">
|
||||||
<a class="nav-link" aria-current="page" href="https://github.com/teaxyz/cli/stargazers"><i class="icon-github" style="position:relative;top:2px;"></i> (<span class="stargazers"></span>)</a>
|
<a class="nav-link" aria-current="page" href="https://github.com/teaxyz/cli/stargazers"><i class="icon-github" style="position:relative;top:2px;"></i> <span class="stargazers"></span></a>
|
||||||
</li>
|
</li>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue