Skip to content

Commit

Permalink
feat: add bracket and tooltip for github stars
Browse files Browse the repository at this point in the history
  • Loading branch information
agrmohit committed Aug 30, 2024
1 parent 8a4a658 commit 429fe89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/script-stars.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function GitHubStars() {
}

if (stars) {
h3.innerHTML = h3.innerHTML.trim().replace("<a", ` ${stars}<a`);
h3.innerHTML = h3.innerHTML.trim().replace("<a", ` <span title="${stars} GitHub stars">(${stars}⭐)</span><a`);
}
}

Expand Down

0 comments on commit 429fe89

Please sign in to comment.