From c3f6b84b8898cf66764e4e24a50a159e252b9ec7 Mon Sep 17 00:00:00 2001 From: rajbot Date: Wed, 24 Nov 2010 00:46:57 +0000 Subject: [PATCH] rename BRbookspine -> BRgutter. We no longer show the spine, since we no longer show the cover extending past the book pages in 2up mode. The BRbookspine div was repurposed to hold the gutter image, so rename it. --- BookReader/BookReader.css | 2 +- BookReader/BookReader.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BookReader/BookReader.css b/BookReader/BookReader.css index 9ad767c..2ab7f71 100644 --- a/BookReader/BookReader.css +++ b/BookReader/BookReader.css @@ -154,7 +154,7 @@ a { position: absolute; } -#BRbookspine { +#BRgutter { /* border: 1px solid rgb(68, 25, 17); */ position: absolute; z-index: 6; diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index e6b1c7b..81c9b90 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -1523,7 +1523,7 @@ BookReader.prototype.prepareTwoPageView = function(centerPercentageX, centerPerc }).appendTo('#BRtwopageview'); div = document.createElement('div'); - $(div).attr('id', 'BRbookspine').css({ + $(div).attr('id', 'BRgutter').css({ width: this.twoPage.bookSpineDivWidth+'px', height: this.twoPage.bookSpineDivHeight+'px', left: (this.twoPage.gutter - this.twoPage.bookSpineDivWidth*0.5)+'px', @@ -2192,7 +2192,7 @@ BookReader.prototype.flipLeftToRight = function(newIndexL, newIndexR) { //console.log(' and now leafEdgeTmp to left: gutter+newWidthR ' + (gutter + newWidthR)); $(self.leafEdgeTmp).animate({left: gutter+newWidthR+'px'}, self.flipSpeed, 'easeOutSine'); - $('#BRbookspine').css({left: (gutter - self.twoPage.bookSpineDivWidth*0.5)+'px'}); + $('#BRgutter').css({left: (gutter - self.twoPage.bookSpineDivWidth*0.5)+'px'}); //console.log(' animating newIndexR ' + newIndexR + ' to ' + newWidthR + ' from ' + $(self.prefetchedImgs[newIndexR]).width()); $(self.prefetchedImgs[newIndexR]).animate({width: newWidthR+'px'}, self.flipSpeed, 'easeOutSine', function() { @@ -2341,7 +2341,7 @@ BookReader.prototype.flipRightToLeft = function(newIndexL, newIndexR) { $(this.leafEdgeTmp).animate({left: gutter}, speed, 'easeInSine'); $(this.prefetchedImgs[this.twoPage.currentIndexR]).animate({width: '0px'}, speed, 'easeInSine', function() { - $('#BRbookspine').css({left: (gutter - self.twoPage.bookSpineDivWidth*0.5)+'px'}); + $('#BRgutter').css({left: (gutter - self.twoPage.bookSpineDivWidth*0.5)+'px'}); $(self.leafEdgeTmp).animate({left: gutter-newWidthL-leafEdgeTmpW+'px'}, speed, 'easeOutSine'); $(self.prefetchedImgs[newIndexL]).animate({width: newWidthL+'px'}, speed, 'easeOutSine', function() { $(self.prefetchedImgs[newIndexR]).css('zIndex', 2); -- 2.20.1