Forum Discussion
Countdown timer in JavaScript
This is absolutely brilliant. I have been trying to build a script with AI for hours, and here is a few lines of code, that just work better thn anything the AI came up with...
I have a question though: The timer shows the numbers counting down, but the font of the digits is different except for the digits I have preset in the text box. If I set "15:00" in, say, Arial 12 pt, only the 1, the 5 and the 0 are in Arial, other numbers show up in a font, which I have never used in my project.
Any idea why this happens? or at least how I can get all numbers in the font I want?
EDIT: Got it. ChatGPT explained it to me 😉 I need a second text field (off-canvas), which contains all digits I need in the correct format so they are formatted correctly as SVG / tspan.
Thank you so much!
Related Content
- 20 days ago
- 4 months ago