Hello everyone, please forgive my ignorance in regards to JS, it is certainly not my strong suit.
I am trying to install a JS countdown plugin (http://countdownjs.org/) on a blank Wordpress template, but for some reason, I can not get the it to display. I want to start a countdown clock, only counting by days, until March 31, 2014.
I am calling the countdown.js file from my root directory in the <head>, and I have this code where I want the program to generate the result:
var timespan = countdown(start|callback, end|callback, units, max, digits);
countdown( new Date(2013, 3, 31) ).toString();
ts.toHTML() => "<span>5 years</span>, <span>1 month</span>, <span>19 days</span>, <span>12 hours</span>, and <span>17 minutes</span>"
Can someone please help me learn what I am doing wrong?
As far as I can tell, there is no obvious problems. The meta data is pointing to the right .js file, but I am not able to see anything.
Is there anything else that could be causing problems?
Thank you very much for your time and attention
Do you have a link to the site you are trying this on?
The site is http://TruckerMarketplace.com. The password is "driver88". Thanks for helping me look into it.
If you look at the main page in the console, you see:
Uncaught SyntaxError: Unexpected token > truckermarketplace.com/:174
This seems to be caused by this:
ts.toHTML() => "..."
Try changing it to:
ts.toHTML() = "..."
I've got to turn in now (I'm ill), but if that doesn't work, post back here and I'll check back tomorrow.
Still having the same problems Nothing is showing up at all.
I hope you feel better Pullo.
I was able to make a plugin work for what I needed.
I hope you feel better.
Hey, that's cool.
I was just looking at this now, so thanks for letting me know.
What was the problem?
Yeah, a bit better thanks - it is just a cold, so if I sleep more and spend less time at the PC then it should be fine.
Although, that might be easier said that done ...
This topic is now closed. New replies are no longer allowed.