updated comments
This commit is contained in:
parent
9284f8bddd
commit
080d0b4c51
1 changed files with 7 additions and 11 deletions
14
ComicBook.js
14
ComicBook.js
|
@ -5,19 +5,15 @@
|
||||||
|
|
||||||
Fo sho:
|
Fo sho:
|
||||||
- page controls
|
- page controls
|
||||||
- thumbnail browser
|
|
||||||
- chrome frame / ExplorerCanvas
|
- chrome frame / ExplorerCanvas
|
||||||
|
|
||||||
Nice 2 have:
|
Nice 2 have:
|
||||||
- support older browsers by using img tags instead of canvas
|
|
||||||
- remember position (use localStorage)
|
- remember position (use localStorage)
|
||||||
- maybe use local storage for the pages array too? might be easier to implement manga mode with that
|
- thumbnail browser
|
||||||
- offline mode
|
- image enhancements (http://www.pixastic.com/lib/docs/actions/sharpen/)
|
||||||
- page turn animation
|
- page turn animation (http://www.cynergysystems.com/blogs/page/rickbarraza?entry=the_secret_behind_the_page)
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Merge two arrays. Any properties in b will replace the same properties in
|
* Merge two arrays. Any properties in b will replace the same properties in
|
||||||
* a. New properties from b will be added to a.
|
* a. New properties from b will be added to a.
|
||||||
|
@ -49,7 +45,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
var defaults = {
|
var defaults = {
|
||||||
displayMode: "double", // single / double
|
displayMode: "double", // single / double
|
||||||
zoomMode: "fitWidth", // manual / fitWidth
|
zoomMode: "fitWidth", // manual / fitWidth
|
||||||
manga: false
|
manga: false // true / false
|
||||||
};
|
};
|
||||||
|
|
||||||
var options = merge(defaults, opts); // options array for internal use
|
var options = merge(defaults, opts); // options array for internal use
|
||||||
|
@ -283,7 +279,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
|
|
||||||
var side = getCursorPosition(e);
|
var side = getCursorPosition(e);
|
||||||
|
|
||||||
window.scroll(0,0);
|
window.scroll(0,0); // make sure the top of the page is in view
|
||||||
|
|
||||||
// western style (left to right)
|
// western style (left to right)
|
||||||
if (!options.manga) {
|
if (!options.manga) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue