mirror of
https://github.com/ivabus/www
synced 2024-11-22 13:15:06 +03:00
Fixed what was broken that the previous fix broke
This commit is contained in:
parent
df74a2cac1
commit
b2a861a767
1 changed files with 3 additions and 3 deletions
|
@ -152,7 +152,7 @@ integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+
|
||||||
|
|
||||||
if (dataRepo && dataRelease) {
|
if (dataRepo && dataRelease) {
|
||||||
// If the data is already stored, use it to update the page
|
// If the data is already stored, use it to update the page
|
||||||
var stargazers = "(" + numeral(dataRepo.stargazers_count).format("0,0") + ")";
|
var stargazers = "(" + numeral(dataRepo.stargazers_count).format("0.0a") + ")";
|
||||||
var release = dataRelease.tag_name;
|
var release = dataRelease.tag_name;
|
||||||
$(".stargazers").html(stargazers).hide().fadeIn(400);
|
$(".stargazers").html(stargazers).hide().fadeIn(400);
|
||||||
$(".release").html(release).hide().fadeIn(400);
|
$(".release").html(release).hide().fadeIn(400);
|
||||||
|
@ -177,8 +177,8 @@ integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+
|
||||||
localStorage.setItem('dataRelease', JSON.stringify(dataRelease[0]));
|
localStorage.setItem('dataRelease', JSON.stringify(dataRelease[0]));
|
||||||
|
|
||||||
// Update the page with the response data
|
// Update the page with the response data
|
||||||
var stargazers = "(" + numeral(dataRepo[0].stargazers_count).format("0,0") + ")";
|
var stargazers = "(" + numeral(JSON.parse(localStorage.getItem('dataRepo')).stargazers_count).format("0.0a") + ")";
|
||||||
var release = dataRelease[0].tag_name;
|
var release = JSON.parse(localStorage.getItem('dataRelease')).tag_name;
|
||||||
$(".stargazers").html(stargazers).hide().fadeIn(400);
|
$(".stargazers").html(stargazers).hide().fadeIn(400);
|
||||||
$(".release").html(release).hide().fadeIn(400);
|
$(".release").html(release).hide().fadeIn(400);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue