website: the Discord member count next to the star count
The nav has advertised the repo's stars since the GitLab move but said nothing about the community, which is by now the larger number of the two. Both links now carry their count: GitLab ★ 185, Discord 1,084. Discord hands an invite's guild counts to anyone who appends ?with_counts=1 — no bot token, no server widget to switch on, and the API reflects the caller's Origin, so the browser may read it. The count is fetched exactly like the repo counts: once per tab, cached in sessionStorage, and failing soft — a blocked or revoked request leaves the link reading "Discord", the way it read before. The numbers panel on the home page gains a sixth cell for it and loses the "repo" in its caption, since the counts are no longer all from the repo. Six cells divide evenly where five left a hole, so the row that used to span the full width at the narrow breakpoint goes away: six, then three, then two.
This commit is contained in:
1 parent
523cfc9df7
commit
75fb168a03
7 files changed
+60
-30
No files matched your search
+4
-4
@@ -19,7 +19,7 @@
|
||||
<link rel="icon" type="image/png" sizes="512x512" href="icon-512.png">
|
||||
<link rel="icon" type="image/png" sizes="180x180" href="icon-180.png">
|
||||
<link rel="apple-touch-icon" href="icon-180.png">
|
||||
<link rel="stylesheet" href="styles.css?v=12">
|
||||
<link rel="stylesheet" href="styles.css?v=13">
|
||||
<script>document.documentElement.className += ' js'</script>
|
||||
<!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). -->
|
||||
<script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script>
|
||||
@@ -39,7 +39,7 @@
|
||||
<a class="ql site" href="/api.html">API</a>
|
||||
<a class="ql site" href="/about.html">About</a>
|
||||
<a class="ql" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab <span data-gh="stars"></span></a>
|
||||
<a class="ql" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
|
||||
<a class="ql" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord <span data-dc="members"></span></a>
|
||||
<a class="cta" href="/#download">Download</a>
|
||||
</div>
|
||||
<button class="nav-toggle" id="navtoggle" aria-expanded="false" aria-controls="sitemenu" aria-label="Menu">
|
||||
@@ -59,7 +59,7 @@
|
||||
<a class="nl" href="/api.html">API</a>
|
||||
<a class="nl" href="/about.html">About</a>
|
||||
<a class="nl" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab <span data-gh="stars"></span></a>
|
||||
<a class="nl" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
|
||||
<a class="nl" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord <span data-dc="members"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -163,6 +163,6 @@
|
||||
</div>
|
||||
</div></footer>
|
||||
|
||||
<script src="site.js?v=12" defer></script>
|
||||
<script src="site.js?v=13" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user