Browse files

Fix Javascript

  • Loading branch information...
1 parent 6d792a3 commit d32923f6e1a0436523fdd7f6a7fdc7ab407c849a @davorg committed Aug 5, 2014
Showing with 2 additions and 3 deletions.
  1. +2 −3 js/main.js
View
5 js/main.js
@@ -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.