It's just a static image. At the end of every month, a guy logs into all the donation sites, punches the numbers into a calculator, calculates how many more pixels needs to be added, then fires up MS Paint and paints the progress bar and uploads it to the website. ^(/s)
Asklemmy
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
The only way.
It seems to be manually updated.
https://github.com/LemmyNet/joinlemmy-site/blob/main/src/shared/donation_stats.ts
Oh, so is the progress bar just an image or is it code that can update the progress based on the manually inputted values?
Seems like something that could be automated using SVGs
Seems like something a donation could fund.
The main donate block of items is here: https://github.com/LemmyNet/joinlemmy-site/blob/main/src/shared/components/common.tsx#L129
Follow the chain and you'll see it's just using the progress
html element.
Yes, it automatically updates every hour. Its just an html progress bar based on a coded goal, and the current donation amounts from given platforms.
Thats awesome! it would be great if you could make a post about it so instance admins would be aware of it and know they can implement it on their homepage so users can ensure their instance is sustainably funded