Your post has more than a few typos and misspellings so I worry this is hampering your coding efforts. People might be able to read past these errors but computers will just spew error messages.
I don't see any year functions in your code. As this is your code (you claimed it's yours) why is that missing?
I need help JavaScript functions . So I 've a file JS and It has some functions and I need add year to this function . Please look at the a code.
{code}
/* Start Countdown Settings */
var startDate = new Date("10/07/2016"); //THIS IS JUST FOR REFERENCE- DO NOT CHANGE THIS.
var endDate = new Date("01/01/2017"); //CHANGE THIS TO YOUR LAUNCHING DATE
var dif = endDate.getTime() - startDate.getTime();
var difToSecond = dif / 1000;
var defaultPercent = 0;
$(function() {
$('#counter').countdown({
until: endDate,
layout: '<div></div>',
onTick: updateBar
});
$('a[rel=tooltip]').tooltip();
$('div[rel=tooltip]').tooltip();
});
function updateBar(periods) {
fillSecondBar(periods[6]);
fillMinuteBar(periods[5]);
fillHourBar(periods[4]);
fillDayBar(periods[3]);
fillTotalbar(periods[6] + periods[5] * 60 + periods[4] * 60 * 60 + periods[3] * 60 * 60 * 24);
}
function fillSecondBar(percent) {
$('#second-number').html(percent);
$('#second-bar').css('width', percent * 100 / 60 + '%');
}
function fillMinuteBar(percent) {
$('#minute-number').html(percent);
$('#minute-bar').css('width', percent * 100 / 60 + '%');
}
function fillHourBar(percent) {
$('#hour-number').html(percent);
$('#hour-bar').css('width', percent * 100 / 24 + '%');
}
function fillDayBar(percent) {
$('#day-number').html(percent);
$('#day-bar').css('width', percent * 100 / 365 + '%');
}
function fillTotalbar(percent) {
defaultPercent = 100 - 100 * percent / difToSecond;
if (defaultPercent >= 10) {
currentPercent = defaultPercent.toString().substr(0, 5);
} else {
currentPercent = defaultPercent.toString().substr(0, 4);
}
$('#total-bar').css('width', defaultPercent + '%').html(currentPercent + '%');
}
{/ code}
So that is mine code. If you understand please help me! Hoq I can add a yer For example 0 - year 0- day 0-minute 0-second

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic