mirror of
https://github.com/ivabus/www
synced 2024-11-22 13:55:05 +03:00
Stargazers fade in
This commit is contained in:
parent
adc31edd18
commit
a2e9065c71
2 changed files with 8 additions and 9 deletions
|
@ -964,7 +964,6 @@
|
|||
});
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -177,15 +177,15 @@ integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+
|
|||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var repository = "teaxyz/cli";
|
||||
var url = "https://api.github.com/repos/" + repository;
|
||||
$(document).ready(function() {
|
||||
var repository = "teaxyz/cli";
|
||||
var url = "https://api.github.com/repos/" + repository;
|
||||
|
||||
$.get(url, function(data) {
|
||||
var stargazers = numeral(data.stargazers_count).format("0.0a");
|
||||
$(".stargazers").html(stargazers);
|
||||
});
|
||||
});
|
||||
$.get(url, function(data) {
|
||||
var stargazers = numeral(data.stargazers_count).format("0.0a");
|
||||
$(".stargazers").html(stargazers).hide().fadeIn(400);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue