Here you find the source code to the book, the book as pdf and the book in HTML format. Note, the HTML version allows you to try all the examples directly in the browser.
On mobile devices the browsers behave quite a bit different. I got almost all examples to work on iPad/Safari and on Android/Firefox. But for instance, Android/Chrome does not have a keyPress event for whatever reason. The sound examples most likely will not work on any mobile devices. In some cases, especially graphics programs, the onScreenKeyboard will not work. Here a bluetooth keyboard should be the solution.