How to change jquery.countdown.min Time

  By    Posted on May-13-2018   211

.Net

How to change  jquery.countdown.min Time?

Problem:

I have coming soon template, that will display remaining timing, after that website will be ready for live. i have controls that is showing

remaining Days, Hours and Minuts. how i can modify that time,  e.g. my website will be live after 30 days.?

Solution

As you download that theme there will be folder with name "js" in that folder you have a file with name "Script"

 

and in that script you can this code

var newYear = new Date(); 
newYear = new Date(2015, 12-1, 25);
$('.defaultCountdown').countdown({until: newYear, format: 'DHMS'}); 

this function take paramer meter as year, month and date.

Just chagne it to your required Date, counter will start from that day, 

 

Note! Date sh;d be future date

 

 

How to change  jquery.countdown.min Time?

Problem:

I have coming soon template, that will display remaining timing, after that website will be ready for live. i have controls that is showing

remaining Days, Hours and Minuts. how i can modify that time,  e.g. my website will be live after 30 days.?

Solution

As you download that theme there will be folder with name "js" in that folder you have a file with name "Script"

 

and in that script you can this code

var newYear = new Date(); 
newYear = new Date(2015, 12-1, 25);
$('.defaultCountdown').countdown({until: newYear, format: 'DHMS'}); 

this function take paramer meter as year, month and date.

Just chagne it to your required Date, counter will start from that day, 

 

Note! Date sh;d be future date

 

 

By      13-May-2018 Views  211



You may also read following recent Post

Recent Column What are 3 C
192  By
Recent Column what is .net
418  By