Timeline countdown timer issue


(jangeltun) #1

I’m trying make a timeline countdown timer. It’s working as far as getting the timeline time, but I can’t get the countdown part to work.

countdown sample.hype.zip (12.8 KB)


(Mark Hunte) #2

Hmm,

This looks like you have copied and pasted code but do not understand it. Please have a quick search for Javascript resources on this site that will help you learn some basic JS.

I do not really have time to go through what is wrong here so far as to say you are missing the setInterval function etc…

As a very crude example here is a working project.
I have not bothered to workout or add the correct Math code but have used most of what you had in a very
crude way for times sake and also maybe a bit easier to understand.

countdown sample.hype 2.zip (15.7 KB)