Hei,
Prøver å endre en "countdown timer" til nettsiden min, og skjønner rett og slett ikke hva jeg skal endre for å få den datoen jeg vil!
Hvis jeg f.eks vil sette den til datoen 18. April 2014, hvordan gjør jeg det?
Beklager nybegynnerspørsmål
Prøver å endre en "countdown timer" til nettsiden min, og skjønner rett og slett ikke hva jeg skal endre for å få den datoen jeg vil!
Hvis jeg f.eks vil sette den til datoen 18. April 2014, hvordan gjør jeg det?
$(function(){
var now = new Date();
// comment out the line below and change the date of your countdown here
var in30Days = new Date( now.getTime() + (30 * 24 * 60 * 60 * 1000) );
// year to countdown to
var countdownYear = in30Days.getFullYear();
// month to countdown to 0 = Jan, 1 = Feb, etc
var countdownMonth = in30Days.getMonth();
// day to countdown to
var countdownDay = in30Days.getDate();
var countdownDate = new Date( countdownYear, countdownMonth, countdownDay );
setupCountdownTimer( countdownDate );
Parallax();
hideIphoneBar();
$("[placeholder]").togglePlaceholder();
});
var now = new Date();
// comment out the line below and change the date of your countdown here
var in30Days = new Date( now.getTime() + (30 * 24 * 60 * 60 * 1000) );
// year to countdown to
var countdownYear = in30Days.getFullYear();
// month to countdown to 0 = Jan, 1 = Feb, etc
var countdownMonth = in30Days.getMonth();
// day to countdown to
var countdownDay = in30Days.getDate();
var countdownDate = new Date( countdownYear, countdownMonth, countdownDay );
setupCountdownTimer( countdownDate );
Parallax();
hideIphoneBar();
$("[placeholder]").togglePlaceholder();
});
Vis hele sitatet...