TashaDobie reacted to paul2009 in How do I edit this code to automatically update my counter data value every day?
I'm guessing it came from here: https://styleddigital.com/blog/2017/5/10/how-to-add-an-animated-counter-in-squarespace
The script could be modified to have changing values instead of fixed ones, but the changes will depend on the facts. For example, how many fewer bottles are polluting the planet every minute/hour/day?
TashaDobie reacted to colin.irwin in How do I edit this code to automatically update my counter data value every day?
You will need some sort of script that can calculate the number of elapsed days since whatever your start date is and then calculate each variable.
It looks to me like that is already structured for an existing script. Where did you get it from?