Why won't this script run on my page?

I cannot figure out why a script I am trying to use doesn’t work. I cloned Countdown Timer and it works fine on that installed site (below). I created a new site in my console with nothing but this script to make sure there are no conflicts with other scripts. I’m novice JS, but can sometimes figure it out if I look on the console. Not this time.

What’s up with this script? Please help. Here’s the site that is live that is not working:
https://cio-mastermind-offers.webflow.io/

Here’s the Countdown Timer test site that is working:
https://countdown-timer-94b53c.webflow.io/


Here is the site with the timer that is not working:
https://preview.webflow.com/preview/cio-mastermind-offers?utm_medium=preview_link&utm_source=designer&utm_content=cio-mastermind-offers&preview=cc573f6fa7abff8de3636b0e82cb2b3b&workflow=preview

Here is the site with a working counter script:
https://preview.webflow.com/preview/countdown-timer-94b53c?utm_medium=preview_link&utm_source=dashboard&utm_content=countdown-timer-94b53c&preview=b8ca107df2e116abcc94e55f29c7e494&workflow=preview

Your script appears to be running fine, generating no errors, and it’s targeting your elements correctly, you can see because its changing them to NaN.

image

That indicates a type conversion problem somewhere.

The only difference between your versions is the date line, specifically the inclusion of an hour. I’d try changing that to 00 and see if it works. If it does, you know what you’re looking for…


o

1 Like

That was it, Michael. I’ll need to start using a script comparison tool because I really thought I saw all the differences!

edit: spelling