Can you direct me to the files that need to be edited for countdown timer? I have set "future" date in the code on the page but it is displaying the wrong time.
Also, do I need a Google Map API for this function properly?
Thanks so much!
5 replies · opened Aug 4, 2016
Can you direct me to the files that need to be edited for countdown timer? I have set "future" date in the code on the page but it is displaying the wrong time.
Also, do I need a Google Map API for this function properly?
Thanks so much!
Hello,
You will simply need to modify the Date in the following code:
var newDate = new Date(2016, 9, 31);Also, the date is in Javascript Format: (YYYY, M, DD) and the Javascript formats the Month as following:
0 as January
1 as February
2 as March
3 as April
4 as May
5 as June
6 as July
7 as August
8 as September
9 as October
10 as November
11 as December
So if you want your Countdown Date to be setup on 31st December, 2016 then your Countdown Date in Javascript Format will be Date(2016, 11, 31).
If you are still facing further issues, please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.
Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.
Hello there,
Thanks so much. I had gotten that far on setting the date.
I am trying to countdown to 2:35pm EST in the US on August 21, 2017. This is the time of the total solar eclipse here. Here is a link to the page.
http://tof16.tonyangel.net/franklin-nc-solar-eclipse-2017.html
I am struggling finding a piece of code to make this happen.
Any assistance you could provide would be greatly appreciated. You have a great template and I appreciate your support.
Tony
Hello,
Thank You so much for the Kind Words. :)
This is Definitely Possible. Please consider replacing the existing JS Code with the following:
jQuery(document).ready( function($){
var newDate = new Date(2017, 8-1, 21);
newDate.setHours(newDate.getHours() + 14); // Setting Hours to 2PM
newDate.setMinutes(newDate.getMinutes() + 35); // Setting Minutes to 35 Minutes
$('#countdown-ex1').countdown({ until: $.countdown.UTCDate( -5, newDate ) });
});
This should definitely work fine. Let us know if we can help you with anything else or if you find any further issues.
Thank you so much!!! You are a life saver. Great template with tons of possibilities.
Tony
Hello,
Thank You so much for the Kind Words. :)
Really Glad that your Issues were resolved. Very Happy to Help! :)
Do let us know if we can help you with anything else or if you find any further issues with Canvas.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard