Skip to content

Commit

Permalink
Updated JS to use jQuery.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed May 10, 2014
1 parent acc9eaf commit de1b830
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 de1b830

Please sign in to comment.