X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=BookReader%2FBookReader.js;fp=BookReader%2FBookReader.js;h=4f9adbcaad235f1e7e4bb9a6fe9e79c0e913788d;hb=ad312b687b2e805137f78513cc54323b9a12632a;hp=404bf2d975258cc42cef62697631b2037ac5f348;hpb=4f61bd0f39ac50f526405dbf4f253cff5c04a93f;p=bookreader.git diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index 404bf2d..4f9adbc 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -3201,7 +3201,27 @@ BookReader.prototype.initNavbar = function() { // $$$ should make this work inside the BookReader div (self-contained), rather than after $('#BookReader').after( - '
' + '
' + + '
' + + '' + + '' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + // XXXmang update code to update pagenum + + '
n141 / 325
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' ); /* @@ -3259,8 +3279,6 @@ BookReader.prototype.initNavbar = function() { }); }); */ - - $("#pager").draggable({axis:'x',containment:'parent'}); } BookReader.prototype.addSearchResult = function(queryString, pageNumber, pageIndex) { @@ -3410,34 +3428,67 @@ BookReader.prototype.addChapterFromEntry = function(tocEntryObject) { if (pageIndex) { this.addChapter(tocEntryObject['title'], tocEntryObject['pagenum'], pageIndex); } + $('.chapter').each(function(){ + $(this).hover(function(){ + $(this).addClass('front'); + },function(){ + $(this).removeClass('front'); + }); + }); + $('.search').each(function(){ + $(this).hover(function(){ + $(this).addClass('front'); + },function(){ + $(this).removeClass('front'); + }); + }); + $('.searchChap').each(function(){ + $(this).hover(function(){ + $(this).addClass('front'); + },function(){ + $(this).removeClass('front'); + }); + }); + $("#BRslider").draggable({axis:'x',containment:'parent'}); + $("#BRzoombtn").draggable({axis:'y',containment:'parent'}); + $("#BRslider").hover( + function(){ + $("#pagenum").show(); + },function(){ + $("#pagenum").hide(); + }); } BookReader.prototype.initToolbar = function(mode, ui) { // $$$mang should be contained within the BookReader div instead of body $("body").append("
" - + "" - + "" - + "" - + "" + + "" + /* XXXmang integrate search */ + + "
" + // XXXmang icons incorrect or handlers wrong + + "" + + "" + "" + "" -// + "" -// + "" -// + "" -// + "" + "
" + "" + "" - + "" - /* XXXmang integrate search */ - + "
" - + "" - + "" - + "" + // XXXmang update + + "
Back toBook Title
" + "
" + + "
" + + "
" + + "
" + + "" + + "
" + + "
" + + "
" + + "
" + + "" + + "
" + "
"); this.updateToolbarZoom(this.reduce); // Pretty format @@ -3697,6 +3748,7 @@ BookReader.prototype.hideNavigation = function() { // $$$ don't hardcode height $('#BRtoolbar').animate({top:-60}); $('#BRnav').animate({bottom:-60}); + $('#BRzoomer').animate({right:-26}); } } @@ -3708,6 +3760,7 @@ BookReader.prototype.showNavigation = function() { if (!this.navigationIsVisible()) { $('#BRtoolbar').animate({top:0}); $('#BRnav').animate({bottom:0}); + $('#BRzoomer').animate({right:0}); } }