Browse files

Updated JS to use jQuery.

  • Loading branch information...
1 parent acc9eaf commit de1b830eba6dd6d1952716c8d29c845b49b76600 @davorg committed May 10, 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 de1b830

Please sign in to comment.