Stargazers fade in

This commit is contained in:
Thomas Smith 2023-01-27 13:01:40 -05:00
parent adc31edd18
commit a2e9065c71
2 changed files with 8 additions and 9 deletions

View file

@ -964,7 +964,6 @@
});
});
</script>
<style>

View file

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