Which original prototype are you referring to here? Where did you make your adjustments?
I only want to remove the hour and days feature.
And also change the font.
You can fork the original link and then make changes in the JS function (specifically in the style part, which is CSS).
Maybe I’m just stupid, but when I press run nothing happens, and I can’t seem to see the code. The primary code is not visible, or at least I don’t know where to find it.
Have you tried putting your Replit’s link to the Experimental Code column in Glide?
And is there a reason you don’t want to deploy in Github?
If I put the link into glide this shows. But where is all the code that should control the timer? The hour function and all of that, right now it shows almost nothing in the Javascript section (look at the image of the previous post).
Am I doing something wrong?
That code column you are using performs a substring function. It has nothing to do with a countdown timer.
The code you need is the one that @ThinhDinh gave you earlier…
Maybe I’m not clear enough.
I pressed that link to github.
I forked the replit link, and didn’t change anything. But nothing happens.
Try to go into the github and click on the “this Replit” link.
The code doesn’t work
Yeah, I’m not sure what you did. All I can say is that the code that’s shown in your earlier screen shot isn’t the code that you need.
I don’t know enough about replit to help you troubleshoot that, so my recommendation would be to use GitHub (as per Thinh’s earlier suggestion).
If you’re new to using GitHub with Glide code columns, here’s a short tutorial:
This works, thank you. But it seems to break when I use a custom date from glide. I’m getting the current date and setting the timer to 3 minutes longer. But this seems to break because it says NaNm NaNs. But if I copy the date, and put it in manually, it works. Why is that?
what exactly are you trying to do? i don’t think you need scripts for that
I want to start a timer when a button is clicked. This button sets the current date in a column, I then want to use math to make a date 3 minutes into the future. I then want to make a countdown to this time (3 minutes). But when I implement this math Date into the code, it says “NaNm NaNs”.
you can use just the math column for that… why script?
here is the count down… enter the seconds
I want to have the countdown in a text-format, not a clock like you have done.
even easier!
use the math column…
if you don’t need to display seconds… just do time now - time clicked, and show with the text component.
Glide will sync every 5-10 seconds
Yea 5-10 seconds is not good enough, I need an actual countdown every second
for the 3 minutes countdown, do you need precision up to 1 sec?
Yes I want to achieve the best result for my users
so you need CSS clock like in my sample
No, I would rather use the Github Code that @ThinhDinh created.