bookreader.git
14 years agoPrettier formatting for zoom percentage displayed in toolbar
Michael Ang [Wed, 19 Aug 2009 21:49:32 +0000 (21:49 +0000)]
Prettier formatting for zoom percentage displayed in toolbar

14 years agoBetter calculation of ideal spread size. Offset from gutter was being applied in...
Michael Ang [Wed, 19 Aug 2009 21:31:46 +0000 (21:31 +0000)]
Better calculation of ideal spread size.  Offset from gutter was being applied in wrong direction.

14 years agoAssign total leaf edge width before using that value in calculation!
Michael Ang [Wed, 19 Aug 2009 20:34:21 +0000 (20:34 +0000)]
Assign total leaf edge width before using that value in calculation!

14 years agoChange page flip action in two up to double click. Show "move" icon when over pages...
Michael Ang [Wed, 19 Aug 2009 19:13:24 +0000 (19:13 +0000)]
Change page flip action in two up to double click.  Show "move" icon when over pages in 2up.

14 years agoFix zoom quantization going from 2up to 1up
Michael Ang [Mon, 17 Aug 2009 23:59:14 +0000 (23:59 +0000)]
Fix zoom quantization going from 2up to 1up

14 years agoFix typo
Michael Ang [Mon, 17 Aug 2009 23:30:22 +0000 (23:30 +0000)]
Fix typo

14 years agoCleanup
Michael Ang [Mon, 17 Aug 2009 23:21:19 +0000 (23:21 +0000)]
Cleanup

14 years agoCruft removal.
Michael Ang [Mon, 17 Aug 2009 23:09:13 +0000 (23:09 +0000)]
Cruft removal.

14 years agoBetter sizing for cover in right to left flip. See https://bugs.edge.launchpad.net...
Michael Ang [Mon, 17 Aug 2009 22:37:49 +0000 (22:37 +0000)]
Better sizing for cover in right to left flip.  See https://bugs.edge.launchpad.net/gnubook/+bug/413355

14 years agoHard stop flip animations when stopping autoplay. Don't reprepare page view if new...
Michael Ang [Mon, 17 Aug 2009 22:24:07 +0000 (22:24 +0000)]
Hard stop flip animations when stopping autoplay.  Don't reprepare page view if new zoom is the same.

14 years agoQuantize zoom in 2up going to autofit when its zoom level falls between quantized...
Michael Ang [Mon, 17 Aug 2009 19:39:42 +0000 (19:39 +0000)]
Quantize zoom in 2up going to autofit when its zoom level falls between quantized levels.  See https://bugs.edge.launchpad.net/gnubook/+bug/411591 and https://bugs.edge.launchpad.net/gnubook/+bug/413819

14 years agoChange to autofit mode when starting autoplay. See https://bugs.edge.launchpad.net...
Michael Ang [Mon, 17 Aug 2009 18:43:36 +0000 (18:43 +0000)]
Change to autofit mode when starting autoplay.  See https://bugs.edge.launchpad.net/gnubook/+bug/414936

14 years agoSet offset of twopagediv before adding images to reduce visual glitches during zoom...
Michael Ang [Fri, 14 Aug 2009 23:21:09 +0000 (23:21 +0000)]
Set offset of twopagediv before adding images to reduce visual glitches during zoom.  See https://bugs.edge.launchpad.net/gnubook/+bug/413353

14 years agoAllow reduction factors down to 32. Reduces size of loaded images in 2up when zoomed...
Michael Ang [Fri, 14 Aug 2009 22:18:32 +0000 (22:18 +0000)]
Allow reduction factors down to 32.  Reduces size of loaded images in 2up when zoomed out far.  See https://bugs.edge.launchpad.net/gnubook/+bug/333458

14 years agoQuantize reduction factor in 2up. See https://bugs.edge.launchpad.net/gnubook/+bug...
Michael Ang [Fri, 14 Aug 2009 21:38:24 +0000 (21:38 +0000)]
Quantize reduction factor in 2up. See https://bugs.edge.launchpad.net/gnubook/+bug/411591

14 years agoRecenter if no scrollbars during non-autofit 2up resize
Michael Ang [Fri, 14 Aug 2009 01:01:15 +0000 (01:01 +0000)]
Recenter if no scrollbars during non-autofit 2up resize

14 years agoIf there won't be scrollbars in a direction when zooming (out) center the book in...
Michael Ang [Fri, 14 Aug 2009 00:48:12 +0000 (00:48 +0000)]
If there won't be scrollbars in a direction when zooming (out) center the book in that axis.

14 years agoOnly recalculate and re-center 2up mode after resize if autofit.
Michael Ang [Fri, 14 Aug 2009 00:44:06 +0000 (00:44 +0000)]
Only recalculate and re-center 2up mode after resize if autofit.

14 years agoPreserve 2up view center during zoom. WIP
Michael Ang [Fri, 14 Aug 2009 00:07:42 +0000 (00:07 +0000)]
Preserve 2up view center during zoom.  WIP

14 years agoCenter two page view at resize. WIP
Michael Ang [Thu, 13 Aug 2009 23:32:50 +0000 (23:32 +0000)]
Center two page view at resize.  WIP

14 years agoBetter calculation for cover left position in calculateSpreadSize. WIP
Michael Ang [Thu, 13 Aug 2009 18:43:11 +0000 (18:43 +0000)]
Better calculation for cover left position in calculateSpreadSize. WIP

14 years agoImproved center calculation. Comments. WIP
Michael Ang [Thu, 13 Aug 2009 18:35:04 +0000 (18:35 +0000)]
Improved center calculation.  Comments.  WIP

14 years agoDon't return unused ratio from getIdealSpreadSize
Michael Ang [Thu, 13 Aug 2009 18:10:33 +0000 (18:10 +0000)]
Don't return unused ratio from getIdealSpreadSize

14 years agoWork on left/right flip. WIP
Michael Ang [Thu, 13 Aug 2009 17:52:13 +0000 (17:52 +0000)]
Work on left/right flip.  WIP

14 years agoDoc problem area with link to Launchpad
Michael Ang [Wed, 12 Aug 2009 23:58:38 +0000 (23:58 +0000)]
Doc problem area with link to Launchpad

14 years agoBook cover div position calculated relative to book center
Michael Ang [Wed, 12 Aug 2009 23:56:15 +0000 (23:56 +0000)]
Book cover div position calculated relative to book center

14 years agoMore refactoring of layout code in 2up. WIP
Michael Ang [Wed, 12 Aug 2009 23:46:55 +0000 (23:46 +0000)]
More refactoring of layout code in 2up.  WIP

14 years agoCleanup and comments
Michael Ang [Wed, 12 Aug 2009 22:36:52 +0000 (22:36 +0000)]
Cleanup and comments

14 years agoConsolidate calculation and formatting for zoom percentage in toolbar. Fixes "zoom...
Michael Ang [Wed, 12 Aug 2009 18:38:25 +0000 (18:38 +0000)]
Consolidate calculation and formatting for zoom percentage in toolbar.  Fixes "zoom percentage in toolbar should be pretty formatted" (https://bugs.edge.launchpad.net/gnubook/+bug/411581)

14 years agoMore consistent use of GBtwopageview
Michael Ang [Mon, 10 Aug 2009 21:33:41 +0000 (21:33 +0000)]
More consistent use of GBtwopageview

14 years agoRefactoring zoom code
Michael Ang [Mon, 10 Aug 2009 21:05:25 +0000 (21:05 +0000)]
Refactoring zoom code

14 years agoBetter zooming in/out in 2up. WIP
Michael Ang [Mon, 10 Aug 2009 19:17:32 +0000 (19:17 +0000)]
Better zooming in/out in 2up.  WIP

14 years agoMore cruft removal
Michael Ang [Fri, 7 Aug 2009 22:16:51 +0000 (22:16 +0000)]
More cruft removal

14 years agoCruft removal
Michael Ang [Fri, 7 Aug 2009 22:16:32 +0000 (22:16 +0000)]
Cruft removal

14 years agoTwo page zoom WIP
Michael Ang [Fri, 7 Aug 2009 22:15:33 +0000 (22:15 +0000)]
Two page zoom WIP

14 years agoRefactor calculation of ideal spread size into its own function, getIdealSpreadSize
Michael Ang [Fri, 7 Aug 2009 18:51:41 +0000 (18:51 +0000)]
Refactor calculation of ideal spread size into its own function, getIdealSpreadSize

14 years agoMove two page mode specific variables to this.twoPage object.
Michael Ang [Fri, 7 Aug 2009 18:25:40 +0000 (18:25 +0000)]
Move two page mode specific variables to this.twoPage object.

14 years agoNote to self about cleaning up in-code CSS
Michael Ang [Thu, 6 Aug 2009 22:47:31 +0000 (22:47 +0000)]
Note to self about cleaning up in-code CSS

14 years agoMerge branch '0.9.12' into twopagezoom
Michael Ang [Thu, 6 Aug 2009 22:41:28 +0000 (22:41 +0000)]
Merge branch '0.9.12' into twopagezoom

14 years agoFix typo (min vs max)
Michael Ang [Thu, 6 Aug 2009 22:39:47 +0000 (22:39 +0000)]
Fix typo (min vs max)

14 years agoHook up generic zoom function which dispatches to mode-specific function
Michael Ang [Thu, 6 Aug 2009 22:17:14 +0000 (22:17 +0000)]
Hook up generic zoom function which dispatches to mode-specific function

14 years agoUpdate comments noting possible point for improvement in tooltip positioning
Michael Ang [Wed, 5 Aug 2009 23:36:04 +0000 (23:36 +0000)]
Update comments noting possible point for improvement in tooltip positioning

14 years agoTwo page popup position accounts for offset of GBcontainer div
Michael Ang [Wed, 5 Aug 2009 23:31:31 +0000 (23:31 +0000)]
Two page popup position accounts for offset of GBcontainer div

14 years agoAdd scrollTop to two page popup since it positioned inside GBcontainer which may...
Michael Ang [Wed, 5 Aug 2009 23:20:52 +0000 (23:20 +0000)]
Add scrollTop to two page popup since it positioned inside GBcontainer which may be scrolling

14 years agoJump index still works since it was using document-relative coordinates
Michael Ang [Wed, 5 Aug 2009 23:17:54 +0000 (23:17 +0000)]
Jump index still works since it was using document-relative coordinates

14 years agoDisplay two page jump popup relative to GBcontainer
Michael Ang [Wed, 5 Aug 2009 23:13:21 +0000 (23:13 +0000)]
Display two page jump popup relative to GBcontainer

14 years agoMove two page display into GBtwopageview, similar to GBpageview
Michael Ang [Wed, 5 Aug 2009 22:38:17 +0000 (22:38 +0000)]
Move two page display into GBtwopageview, similar to GBpageview

14 years agoUse clientWidth to account for possible presence of scroll bars
Michael Ang [Wed, 5 Aug 2009 22:12:07 +0000 (22:12 +0000)]
Use clientWidth to account for possible presence of scroll bars

14 years agoRemove note to self
Michael Ang [Mon, 3 Aug 2009 20:37:23 +0000 (20:37 +0000)]
Remove note to self

14 years agoPreserve center of view when zooming in 1up. See https://bugs.edge.launchpad.net...
Michael Ang [Wed, 22 Jul 2009 15:29:30 +0000 (15:29 +0000)]
Preserve center of view when zooming in 1up.  See https://bugs.edge.launchpad.net/gnubook/+bug/402262

14 years agoNotes to self
Michael Ang [Tue, 21 Jul 2009 15:05:03 +0000 (15:05 +0000)]
Notes to self

14 years agoAdjust jpeg image compression (65% quality instead of 90%) to reduce download times...
Michael Ang [Mon, 20 Jul 2009 16:04:43 +0000 (16:04 +0000)]
Adjust jpeg image compression (65% quality instead of 90%) to reduce download times.  Addresses https://bugs.edge.launchpad.net/gnubook/+bug/394013

14 years agoMerge Replace hardcoded zoom percentage from scollett. See https://bugs.edge.launchp...
Michael Ang [Mon, 20 Jul 2009 13:30:58 +0000 (13:30 +0000)]
Merge Replace hardcoded zoom percentage from scollett.  See https://bugs.edge.launchpad.net/gnubook/+bug/394950

Merge commit '162afb7a06c13547bd7fb15f6a5a8fe3da67c251' into 0.9.12

14 years agoHide mode and autoplay buttons if 2up is not available. See https://bugs.edge.launch...
Michael Ang [Thu, 9 Jul 2009 22:07:12 +0000 (22:07 +0000)]
Hide mode and autoplay buttons if 2up is not available.  See https://bugs.edge.launchpad.net/gnubook/+bug/394525

14 years agoMode button not present if not applicable
Michael Ang [Thu, 9 Jul 2009 21:52:52 +0000 (21:52 +0000)]
Mode button not present if not applicable

14 years agoGenerate proper URIs for books inside sub-directories. See https://bugs.edge.launchp...
Michael Ang [Thu, 9 Jul 2009 00:13:59 +0000 (00:13 +0000)]
Generate proper URIs for books inside sub-directories.  See https://bugs.edge.launchpad.net/gnubook/+bug/397219

14 years agoAllow sub-books such as /stream/itemid/subbook1 and /stream/itemid/subbook2. See...
Michael Ang [Wed, 8 Jul 2009 23:33:03 +0000 (23:33 +0000)]
Allow sub-books such as /stream/itemid/subbook1 and /stream/itemid/subbook2.  See https://bugs.edge.launchpad.net/gnubook/+bug/375056

14 years agoMerge branch 'multiitem' of /home/testflip/bookreader into multiitem
Michael Ang [Tue, 7 Jul 2009 22:42:55 +0000 (22:42 +0000)]
Merge branch 'multiitem' of /home/testflip/bookreader into multiitem

14 years agoUse dev code if on dev host
Michael Ang [Tue, 7 Jul 2009 22:41:40 +0000 (22:41 +0000)]
Use dev code if on dev host

14 years agoAllow for file names containing '-'
Michael Ang [Thu, 2 Jul 2009 00:27:02 +0000 (00:27 +0000)]
Allow for file names containing '-'

14 years agoSupport for books that do not have file names the same as the item identifier.
Michael Ang [Thu, 2 Jul 2009 00:22:45 +0000 (00:22 +0000)]
Support for books that do not have file names the same as the item identifier.

14 years agoDeclare variable for cleanliness
Michael Ang [Tue, 30 Jun 2009 23:46:55 +0000 (23:46 +0000)]
Declare variable for cleanliness

14 years agoWherein we demonstrate the utility of QA testing.
Michael Ang [Tue, 30 Jun 2009 23:41:47 +0000 (23:41 +0000)]
Wherein we demonstrate the utility of QA testing.

14 years agoSmushed version. The file was previously a jpg!
Michael Ang [Tue, 30 Jun 2009 23:41:14 +0000 (23:41 +0000)]
Smushed version.  The file was previously a jpg!

14 years agoFix typo
Michael Ang [Tue, 30 Jun 2009 22:24:08 +0000 (22:24 +0000)]
Fix typo

14 years agoNew function getPageName(index) which returns user-visible page name. Map search...
Michael Ang [Tue, 30 Jun 2009 22:05:08 +0000 (22:05 +0000)]
New function getPageName(index) which returns user-visible page name.  Map search results to page name.  Show "Searching..." while search is in progress.

14 years agoRound and clamp jump index values coming from book edge.
Michael Ang [Tue, 30 Jun 2009 21:44:48 +0000 (21:44 +0000)]
Round and clamp jump index values coming from book edge.

14 years agoMerge branches 'ambiguouspage', 'fixembed', 'jquery13' and 'smushit' into merge
Michael Ang [Mon, 29 Jun 2009 23:28:36 +0000 (23:28 +0000)]
Merge branches 'ambiguouspage', 'fixembed', 'jquery13' and 'smushit' into merge

14 years agoBump version number.
Michael Ang [Mon, 29 Jun 2009 23:01:54 +0000 (23:01 +0000)]
Bump version number.

14 years agoOnly attempt to convert title leaf to index if titleLeaf is set.
Michael Ang [Mon, 29 Jun 2009 22:26:02 +0000 (22:26 +0000)]
Only attempt to convert title leaf to index if titleLeaf is set.

14 years agoUse CSS-relative paths for images. Fixes embed case.
Michael Ang [Mon, 29 Jun 2009 22:21:08 +0000 (22:21 +0000)]
Use CSS-relative paths for images.  Fixes embed case.

14 years agoUpgrade to jQuery 1.3. Fix problem where .show() was changing toolbar display attrib...
Michael Ang [Fri, 26 Jun 2009 22:51:45 +0000 (22:51 +0000)]
Upgrade to jQuery 1.3.  Fix problem where .show() was changing toolbar display attribute to block.

14 years agoSmushed images
Michael Ang [Fri, 26 Jun 2009 22:05:42 +0000 (22:05 +0000)]
Smushed images

14 years agoFix wrong function call
Michael Ang [Tue, 23 Jun 2009 22:34:44 +0000 (22:34 +0000)]
Fix wrong function call

14 years agoClean up metadata to remove duplicate page number assertions. Last page to make...
Michael Ang [Tue, 23 Jun 2009 22:27:37 +0000 (22:27 +0000)]
Clean up metadata to remove duplicate page number assertions.  Last page to make the assertion wins.

14 years agoReturn page numbers as "n{index}" if no page number is defined for that index. Show...
Michael Ang [Tue, 23 Jun 2009 18:18:16 +0000 (18:18 +0000)]
Return page numbers as "n{index}" if no page number is defined for that index.  Show "View Page {pagenum}" for leaf edge mouseover tooltip.

14 years agoMake naming of various wrt "leaf" or "index" more consistent
Michael Ang [Tue, 23 Jun 2009 18:06:41 +0000 (18:06 +0000)]
Make naming of various wrt "leaf" or "index" more consistent

14 years agoSynchronize with Archive CVS at release 0.9.9. See changes at https://bugs.launchpad...
Michael Ang [Mon, 22 Jun 2009 23:47:20 +0000 (23:47 +0000)]
Synchronize with Archive CVS at release 0.9.9.  See changes at https://bugs.launchpad.net/gnubook/+milestone/0.9.9

15 years agoReplaced hardcoded Zoom percentage in the toolbar with dynamic percentage based on...
scollett [Fri, 19 Jun 2009 20:37:21 +0000 (13:37 -0700)]
Replaced hardcoded Zoom percentage in the toolbar with dynamic percentage based on gb.reduce.

15 years agoSync with Archive CVS
Michael Ang [Wed, 17 Jun 2009 23:51:59 +0000 (23:51 +0000)]
Sync with Archive CVS

15 years agoChanges from Archive release 0.9.7. See https://bugs.launchpad.net/gnubook/+mileston...
Michael Ang [Fri, 12 Jun 2009 21:50:00 +0000 (21:50 +0000)]
Changes from Archive release 0.9.7.  See https://bugs.launchpad.net/gnubook/+milestone/0.9.7 for full list of changes.

15 years agoMove Archive-specific files into different directories.
Michael Ang [Fri, 12 Jun 2009 21:36:24 +0000 (21:36 +0000)]
Move Archive-specific files into different directories.

15 years agoAdd print page feature. Only testing in FF3 so far. LP #294411.
rajbot [Tue, 12 May 2009 00:47:25 +0000 (17:47 -0700)]
Add print page feature. Only testing in FF3 so far. LP #294411.

15 years agoMore changes to support first page and last page buttons [mang].
rajbot [Fri, 8 May 2009 01:18:57 +0000 (18:18 -0700)]
More changes to support first page and last page buttons [mang].

15 years agoArchive.org release 0.9.3
Michael Ang [Mon, 20 Apr 2009 22:19:51 +0000 (15:19 -0700)]
Archive.org release 0.9.3
https://bugs.edge.launchpad.net/gnubook/+milestone/0.9.3

First/last page navigation buttons
https://bugs.edge.launchpad.net/gnubook/+bug/294409

15 years agoAdd missing getSpreadIndices. Fixes https://bugs.edge.launchpad.net/gnubook/+bug...
Michael Ang [Mon, 20 Apr 2009 21:51:02 +0000 (14:51 -0700)]
Add missing getSpreadIndices.  Fixes https://bugs.edge.launchpad.net/gnubook/+bug/364313

15 years agoMake nav links show in black. Fixes https://bugs.edge.launchpad.net/gnubook/+bug...
Michael Ang [Mon, 20 Apr 2009 21:50:03 +0000 (14:50 -0700)]
Make nav links show in black.  Fixes https://bugs.edge.launchpad.net/gnubook/+bug/364314

15 years agoUpdate version number to 0.9.2
Michael Ang [Wed, 8 Apr 2009 00:21:21 +0000 (17:21 -0700)]
Update version number to 0.9.2

15 years agoFix for icons being cut off in embed version.
Michael Ang [Tue, 7 Apr 2009 23:14:44 +0000 (16:14 -0700)]
Fix for icons being cut off in embed version.
https://bugs.edge.launchpad.net/gnubook/+bug/356650

15 years agoPage images can not be highlighted (making them unreadable) by dragging mouse in
Michael Ang [Fri, 3 Apr 2009 02:57:24 +0000 (02:57 +0000)]
Page images can not be highlighted (making them unreadable) by dragging mouse in
1up page view div.  Fixes bug 354239

15 years agoImplementation of drag to pan that works in IE, FF and Safari. Show move icon when...
Michael Ang [Fri, 3 Apr 2009 01:51:18 +0000 (01:51 +0000)]
Implementation of drag to pan that works in IE, FF and Safari.  Show move icon when over page.
See https://bugs.edge.launchpad.net/gnubook/+bug/294397

15 years agoMerge branch 'drag2pan' of git@github.com:openlibrary/bookreader
Michael Ang [Fri, 3 Apr 2009 00:23:40 +0000 (00:23 +0000)]
Merge branch 'drag2pan' of git@github.com:openlibrary/bookreader

15 years agoIE7 doesn't like it when a dictionary literal ends with ,}
Michael Ang [Thu, 2 Apr 2009 00:51:28 +0000 (00:51 +0000)]
IE7 doesn't like it when a dictionary literal ends with ,}

15 years agoNew icons
Michael Ang [Wed, 1 Apr 2009 22:25:51 +0000 (22:25 +0000)]
New icons

15 years agoUpdate version number
Michael Ang [Wed, 1 Apr 2009 22:11:48 +0000 (22:11 +0000)]
Update version number

15 years agoPull logo url from a member variable
Michael Ang [Wed, 1 Apr 2009 21:59:08 +0000 (21:59 +0000)]
Pull logo url from a member variable

15 years agoFix typo in css.
Michael Ang [Wed, 1 Apr 2009 21:42:05 +0000 (21:42 +0000)]
Fix typo in css.

15 years agoRename left/right edge icons using _ for better consistency.
Michael Ang [Wed, 1 Apr 2009 21:30:53 +0000 (21:30 +0000)]
Rename left/right edge icons using _ for better consistency.

15 years agoMake logo a link, since it is. Add tooltips to icons. Cleanup.
Michael Ang [Wed, 1 Apr 2009 01:08:28 +0000 (01:08 +0000)]
Make logo a link, since it is.  Add tooltips to icons.  Cleanup.

15 years agoChange rollovers to use background position offset technique similar to http://www...
Michael Ang [Wed, 1 Apr 2009 00:02:18 +0000 (00:02 +0000)]
Change rollovers to use background position offset technique similar to webvamp.co.uk/blog/coding/css-image-rollovers/