From: Michael Ang Date: Fri, 17 Sep 2010 18:58:55 +0000 (+0000) Subject: Add documentation to demo X-Git-Url: http://git.rot13.org/?p=bookreader.git;a=commitdiff_plain;h=b10b75beb6f36d800defa9b842012043ca04a6e3;ds=sidebyside Add documentation to demo --- diff --git a/BookReaderDemo/BookReaderJSSimple.js b/BookReaderDemo/BookReaderJSSimple.js index 4d08470..baa0741 100644 --- a/BookReaderDemo/BookReaderJSSimple.js +++ b/BookReaderDemo/BookReaderJSSimple.js @@ -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+"}$");