I have a Christmas countdown clock that works fine, however, when it displays 1 hour, it says 1 'HOURS' not 1 'HOUR'
I know that is a little bit trivial, but i would like it to be correct and display the correct words.
Could anyone help please?
The Code is
<script language="javascript" type="text/javascript">
today = new Date();
BigDay = new Date("December 25, 2013")
msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (BigDay.getTime() - today.getTime());
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
e_hrsLeft = (e_daysLeft - daysLeft)*24;
hrsLeft = Math.floor(e_hrsLeft);
minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
document.write( "There's only "+daysLeft+" days, "+hrsLeft+" hours and "+minsLeft+" minutes left until Christmas!");
</script>
Many Thanks PBrown