projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
556f807
)
Add documentation to demo
author
Michael Ang
<mang@archive.org>
Fri, 17 Sep 2010 18:58:55 +0000
(18:58 +0000)
committer
Michael Ang
<mang@archive.org>
Fri, 17 Sep 2010 18:58:55 +0000
(18:58 +0000)
BookReaderDemo/BookReaderJSSimple.js
patch
|
blob
|
history
diff --git
a/BookReaderDemo/BookReaderJSSimple.js
b/BookReaderDemo/BookReaderJSSimple.js
index
4d08470
..
baa0741
100644
(file)
--- 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
// 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+"}$");
var leafStr = '000';
var imgStr = (index+1).toString();
var re = new RegExp("0{"+imgStr.length+"}$");