From: Michael Ang Date: Wed, 6 Oct 2010 00:59:03 +0000 (+0000) Subject: Merge commit 'lance/newui' into mergelanceui X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=ad312b687b2e805137f78513cc54323b9a12632a;hp=--cc;p=bookreader.git Merge commit 'lance/newui' into mergelanceui Conflicts: BookReader/BookReader.js --- ad312b687b2e805137f78513cc54323b9a12632a diff --cc BookReader/BookReader.js index 404bf2d,a735c55..4f9adbc --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@@ -3198,39 -3177,23 +3198,59 @@@ BookReader.prototype.jumpIndexForRightE // could be as simple as not calling this function BookReader.prototype.initNavbar = function() { // Setup nav / chapter / search results bar - $('.chapter').bt({ - contentSelector: '$(this).find(".title")', - trigger: 'hover', + + // $$$ should make this work inside the BookReader div (self-contained), rather than after + $('#BookReader').after( - '
' ++ '
' ++ + '
' ++ + '' ++ + '' ++ + '
' ++ + '
' ++ + '
' ++ + '
' ++ + '
' ++ + '
' ++ + '
' ++ // XXXmang update code to update pagenum ++ + '
n141 / 325
' ++ + '
' ++ + '
' ++ + '
' ++ + '
' ++ + '
' ++ + '
' ++ + '
' ++ + '
' + ); + +/* +
+
+ A related distinction is between the emotion and the results of the emotion, principally behaviors and emotional expressions. People often behave in certain ways as a direct result of their emotional state, such as crying, fighting or fleeing. Page 163 +
IV. The Witch | Page 163
+
+
+*/ + + /* $$$mang search results and chapters should automatically coalesce + $('.searchChap').bt({ + contentSelector: '$(this).find(".query")', + trigger: 'click', closeWhenOthersOpen: true, cssStyles: { - backgroundColor: '#000', - border: '2px solid #e2dcc5', + width: '250px', + padding: '10px 10px 15px', + backgroundColor: '#fff', + border: '3px solid #e2dcc5', borderBottom: 'none', - padding: '5px 10px', - fontFamily: '"Arial", sans-serif', - fontSize: '11px', - fontWeight: '700', - color: '#fff', - whiteSpace: 'nowrap' + fontFamily: '"Lucida Grande","Arial",sans-serif', + fontSize: '12px', + lineHeight: '18px', + color: '#615132' }, - shrinkToFit: true, - width: '200px', + shrinkToFit: false, + width: '230px', padding: 0, spikeGirth: 0, spikeLength: 0, @@@ -3251,28 -3213,7 +3271,26 @@@ centerPointY: 0, shadow: false }); - $('.search').bt({ + $('.searchChap').each(function(){ + $(this).hover(function(){ + $(this).addClass('front'); + },function(){ + $(this).removeClass('front'); + }); + }); + */ - - $("#pager").draggable({axis:'x',containment:'parent'}); +} + +BookReader.prototype.addSearchResult = function(queryString, pageNumber, pageIndex) { + var uiStringSearch = "Search result"; // i18n + var uiStringPage = "Page"; // i18n + + var percentThrough = BookReader.util.cssPercentage(pageIndex, this.numLeafs); + + // $$$mang add click-through to page + $('