javascript - Where do I change the date in this countdown function? -
i downloaded countdown script (javascript) can't figure out how change date timer countdown to. original script:
$(function(){ var = new date(); // comment out line below , change date of countdown here var in30days = new date( now.gettime() + (30 * 24 * 60 * 60 * 1000) ); // year countdown var countdownyear = in30days.getfullyear(); // month countdown 0 = jan, 1 = feb, etc var countdownmonth = in30days.getmonth(); // day countdown var countdownday = in30days.getdate();  var countdowndate = new date( countdownyear, countdownmonth, countdownday );  setupcountdowntimer( countdowndate );  spaceparallax();  hideiphonebar();  $("[placeholder]").toggleplaceholder();  setupsignupform(); }); 
maybe countdowndate... default built + 30 days? may change this.
important part :
setupcountdowntimer( countdowndate );  spaceparallax();  hideiphonebar();  $("[placeholder]").toggleplaceholder();  setupsignupform(); }); 
Comments
Post a Comment