Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Javascript

  • Loading branch information...
commit d32923f6e1a0436523fdd7f6a7fdc7ab407c849a 1 parent 6d792a3
@davorg authored
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 );
Please sign in to comment.
Something went wrong with that request. Please try again.