I am using the countdown timer from the page “teaser-simple.html”, but can’t figure out how to use it. I’ve been researching it since 1pm this afternoon. I have a monthly photo contest – the next day for the best picture to be selected is Nov. 15, 2016 and a new winner will be selected on the 15th of every month. I am not a web pro and so hopefully the instructions can be dumbed down a bit.
You need edit this code in the file teaser-simple.html and write your date:
var newYear = (new Date().getFullYear())+1;
var today = new Date();
var finalTime = new Date("Sep,1,"+newYear);
var interval = finalTime - today;
if(interval<0) interval = 0;
var days = parseInt(interval/(1000*60*60*24));
var daysLeft = interval%(1000*60*60*24);
var hours = parseInt(daysLeft/(1000*60*60));
var hoursLeft = daysLeft%(1000*60*60);
var minutes = parseInt(hoursLeft/(1000*60));
var minutesLeft = hoursLeft%(1000*60);
var seconds = parseInt(minutesLeft/(1000));
I know that much – I just don’t know how – I’ve entered a new starting/end date in every place I can think of and I can’t seem to get it to work. Knowing that the next contest ends on Nov. 15, 2016, how and where would you enter that information? Does it require a special format? Do I have to enter the current date? The documentation that came with the template doesn’t discuss this at all.