Skip to content

Commit

Permalink
Fix Javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Aug 5, 2014
1 parent 6d792a3 commit d32923f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/main.js
Expand Up @@ -6,8 +6,7 @@ function daysToGo () {
}

function setCounter () {
var counter = document.getElementById("counter");
counter.innerHTML = daysToGo() + " Days to go";
$('#counter').html( daysToGo() + " Days to go" );
}

window.onload = setCounter;
$( document ).ready( setCounter );

0 comments on commit d32923f

Please sign in to comment.