add live user count
This commit is contained in:
parent
e1c47189c1
commit
f6fd0546ed
2 changed files with 12 additions and 1 deletions
|
|
@ -11,3 +11,4 @@ services please consider donating through one of the following methods:
|
||||||
A huge thank you to our current sponsors:
|
A huge thank you to our current sponsors:
|
||||||
|
|
||||||
- @VeryLoud: CAD$100
|
- @VeryLoud: CAD$100
|
||||||
|
- @Aristarchus of Samos: CAD$100
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ title: Home
|
||||||
template: splash
|
template: splash
|
||||||
hero:
|
hero:
|
||||||
title: Experience free, fast, and private software with Federated Nexus
|
title: Experience free, fast, and private software with Federated Nexus
|
||||||
tagline: Federated Nexus is a community resource hosting multiple FOSS (especially federated) services, including Matrix and Forgejo.
|
tagline: Federated Nexus is a community resource hosting multiple FOSS (especially federated) services, including Matrix and Forgejo. We currently have <span id="user-count">over 400</span> users
|
||||||
image:
|
image:
|
||||||
file: ../../images/icon.svg
|
file: ../../images/icon.svg
|
||||||
actions:
|
actions:
|
||||||
|
|
@ -54,3 +54,13 @@ import { CardGrid, Card } from "@astrojs/starlight/components"
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
</CardGrid>
|
</CardGrid>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
{`
|
||||||
|
(async () => {
|
||||||
|
const response = await fetch("https://matrix.federated.nexus/_continuwuity/local_user_count")
|
||||||
|
const json = await response.json();
|
||||||
|
document.querySelector("#user-count").innerText = json["count"]
|
||||||
|
})()
|
||||||
|
`}
|
||||||
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue