Add documentation to demo
authorMichael Ang <mang@archive.org>
Fri, 17 Sep 2010 18:58:55 +0000 (18:58 +0000)
committerMichael Ang <mang@archive.org>
Fri, 17 Sep 2010 18:58:55 +0000 (18:58 +0000)
BookReaderDemo/BookReaderJSSimple.js

index 4d08470..baa0741 100644 (file)
@@ -18,7 +18,10 @@ br.getPageHeight = function(index) {
 
 // We load the images from archive.org -- you can modify this function to retrieve images
 // using a different URL structure
-br.getPageURI = function(index) {
+br.getPageURI = function(index, reduce, rotate) {
+    // reduce and rotate are ignored in this simple implementation, but we
+    // could e.g. look at reduce and load images from a different directory
+    // or pass the information to an image server
     var leafStr = '000';            
     var imgStr = (index+1).toString();
     var re = new RegExp("0{"+imgStr.length+"}$");