@@ -1,3 +1,9 @@
-$(document).ready(function() {
+$(document).bind("bookReady", function() {
- alert("Hello World");
+ gitbook.bind("page.change", function() {
+ // do something
+ });
+
+ gitbook.bind("exercise.submit", function() {
});