Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated JS to use jQuery.

  • Loading branch information...
commit de1b830eba6dd6d1952716c8d29c845b49b76600 1 parent acc9eaf
@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 );

0 comments on commit de1b830

Please sign in to comment.
Something went wrong with that request. Please try again.