diff --git a/BookReader/BookReader.css b/BookReader/BookReader.css index eae0e936b..cb2c6565d 100644 --- a/BookReader/BookReader.css +++ b/BookReader/BookReader.css @@ -195,12 +195,15 @@ } .BRprogresspopup { - position: absolute; + min-width: inherit; + margin: 80px auto auto; + position: relative; + max-width: 50%; + min-width: 300px; background-color: white; font-size: 1.5em; padding: 20px; border: 2px solid #999; - min-width: 300px; z-index: 3000; } @@ -401,11 +404,6 @@ body.BRfullscreenActive .mm-menu { font-size: inherit; } - .BRprogresspopup { - max-width: 80%; - min-width: inherit; - } - .BookReader .fieldset-embed, .BRmobileMenu .fieldset-embed, .BRfloat .fieldset-embed { display: none; } @@ -1857,11 +1855,6 @@ i.BRicon { .BookReader #BRsearch_tray #search_pending.visible, .BRmobileMenu #BRsearch_tray #search_pending.visible, .BRfloat #BRsearch_tray #search_pending.visible { display: block; } -.BookReader .search_modal, .BRmobileMenu .search_modal, .BRfloat .search_modal { - top: 50%; - left: 50%; - transform: translate(-50%, -50%); -} .BookReader .BRsearch-navigation, .BRmobileMenu .BRsearch-navigation, .BRfloat .BRsearch-navigation { position: relative; z-index: 1; diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index 2bb8fa3a4..809df6235 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -1,2 +1,2 @@ -(function(){var __webpack_modules__={3166:function(e,t,r){"use strict";r(2222),r(2526),r(7327),r(5827),r(1817),r(9826);var o=r(7112);function n(e,t,r,o,n,i){var a,s=(a=e.prototype[t],function(){return a.apply(i(this),arguments)});Object.defineProperty(o.prototype,n,{get:function(){return s},set:function(o){e.prototype[t]=function(){var t=this instanceof e?r(this):this;return o.apply(t,arguments)},s=o}})}r(2165),r(6699),r(4553),r(2772),r(6535),r(9600),r(1038),r(1249),r(6992),r(4916),r(2023),r(7042),r(5306),r(8309),r(9244),r(6977),r(1539),r(9714),r(8783),r(3948),r(9601),r(5666),r(7941),r(4765),r(3123),r(285);var i={fragmentChange:"fragmentChange",PostInit:"PostInit",stop:"stop",resize:"resize",navToggled:"navToggled",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected",mobileNavOpen:"mobileNavOpen"};function a(e,t){for(var r=0;r".concat(t.template(this.br),""):'
  • \n \n
  • "):""}},{key:"_viewModeControls",value:function(){var e=this;return this.br.options.controls.viewmode.visible?this.controlFor("viewmode"):["onePage","twoPage","thumbnail"].map((function(t){return e.controlFor(t)})).join("")}},{key:"_bindViewModeButton",value:function(){var e=this,t=this.br,r=t.options.controls.viewmode,o=[{mode:t.constMode1up,className:"onepg",title:"One-page view"},{mode:t.constMode2up,className:"twopg",title:"Two-page view"},{mode:t.constModeThumb,className:"thumb",title:"Thumbnail view"}].filter((function(e){return!r.excludedModes.includes(e.mode)})),n=o.map((function(e){return e.mode}));r.excludedModes.includes(t.mode)&&t.switchMode(n[0]);for(var a=n.indexOf(t.mode),s=0;s<=a;s++)n.push(n.shift());o.length<2&&this.$nav.find(".".concat(r.className)).remove(),this.br.bind(i.PostInit,(function(){var i=e.$nav.find(".".concat(r.className)).off(".bindNavigationHandlers").on("click",(function(r){var i=n.shift(),a=o.find((function(e){return e.mode===i})),s=o.find((function(e){return e.mode===n[0]}));n.push(i),e._updateViewModeButton($(r.currentTarget),s.className,s.title),t.switchMode(a.mode)})),a=o.find((function(e){return e.mode===n[0]}));e._updateViewModeButton(i,a.className,a.title)}))}},{key:"_updateViewModeButton",value:function(e,t,r){e.attr("title",r).find(".icon").removeClass().addClass("icon icon-".concat(t)).end().find(".tooltip").text(r)}},{key:"init",value:function(){var e=this,t=this.br,r=t.options.navbarTitle,o="rl"===t.pageProgression;t.refs.$BRfooter=this.$root=$('
    '),t.refs.$BRnav=this.$nav=$('
    \n
    \n '.concat(r?'
    '.concat(r,"
    "):"",'\n \n
    ')),this.$root.append(this.$nav),t.refs.$br.append(this.$root);var n=this.$root.find(".BRpager").slider({animate:!0,min:0,max:t.getNumLeafs()-1,value:t.currentIndex(),range:"min"});return n.on("slide",(function(t,r){return e.updateNavPageNum(r.value),!0})),n.on("slidechange",(function(r,o){return e.updateNavPageNum(o.value),n.data("swallowchange")?n.data("swallowchange",!1):t.jumpToIndex(o.value),!0})),t.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(t.currentIndex()),this.$nav}},{key:"initEmbed",value:function(){var e=this.br,t=(window.location+"").replace("?ui=embed","").replace("/stream/","/details/").replace("#","/"),r=e.showLogo?''):"";e.refs.$BRfooter=this.$root=$('
    '),e.refs.$BRnav=this.$nav=$('
    \n '.concat(r,'\n \n ').concat(e.bookTitle,'\n \n \n \n \n \n \n
    ')),this.$root.append(this.$nav),e.refs.$br.append(this.$root)}},{key:"getNavPageNumString",value:function(e){var t=this.br,r=t.getPageNum(e),o=(t.getPageProp(e,"pageType"),t.getNumLeafs());if(!this.maxPageNum){for(var n,i=0,a=0;ai&&(i=n);this.maxPageNum=i}return u(e,o,r,0,this.maxPageNum)}},{key:"updateNavPageNum",value:function(e){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(e))}},{key:"updateNavIndex",value:function(e){e=void 0!==e?e:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0).slider("value",e)}}])&&a(t.prototype,r),e}();function u(e,t,r,o,n){if("n"!=r[0]){var i="Page ".concat(r);return n&&(i+=" of ".concat(n)),i}return"".concat(e+1," / ").concat(t)}var c=r(6100);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r\n \n '):"";e.refs.$BRtoolbar=$('\n
    \n
    \n
    \n '.concat(t,'\n \n
    \n
    \n \n \n \n \n
    \n
    \n
    '));var r=e.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");return e.bookUrl&&e.options.enableBookTitleLink?r.append($("").attr({href:e.bookUrl,title:e.bookUrlTitle}).addClass("BRreturn").html(e.bookUrlText||e.bookTitle)):e.bookTitle&&r.append(e.bookUrlText||e.bookTitle),e.refs.$BRtoolbar}},{key:"initToolbar",value:function(e,t){var r=this.br;r.refs.$br.append(this.buildToolbarElement()),r.$(".BRnavCntl").addClass("BRup"),r.$(".pause").hide(),this.updateToolbarZoom(r.reduce),r.refs.$BRtoolbar.append(),r.canSwitchToMode(r.constMode2up)||r.$(".two_page_mode, .play, .pause").hide(),r.canSwitchToMode(r.constModeThumb)||r.$(".thumbnail_mode").hide(),r.canSwitchToMode(r.constMode2up)||r.canSwitchToMode(r.constModeThumb)||r.$(".one_page_mode").hide(),$('
    ').append(f()).append(d()).appendTo(r.refs.$br),r.$(".BRinfo .BRfloatTitle a").attr({href:r.bookUrl}).text(r.bookTitle).addClass("title"),this.buildInfoDiv(r.$(".BRinfo")),this.buildShareDiv(r.$(".BRshare")),r.$(".share").colorbox({inline:!0,opacity:"0.5",href:r.$(".BRshare"),onLoad:function(){r.trigger(i.stop),r.$(".BRpageviewValue").val(window.location.href)}}),r.$(".info").colorbox({inline:!0,opacity:"0.5",href:r.$(".BRinfo"),onLoad:function(){r.trigger(i.stop)}})}},{key:"updateToolbarZoom",value:function(e){var t,r=this.br,o=r.mode==r.constMode2up?r.twoPage.autofit:r.onePage.autofit;t=o?o.slice(0,1).toUpperCase()+o.slice(1):(100/e).toFixed(2).replace(/0+$/,"").replace(/\.$/,"")+"%",r.$(".BRzoom").text(t)}},{key:"buildShareDiv",value:function(e){var t=this,r=this.br,o=document.location+"",n=(o+"").replace(/#.*/,""),i=r.getEmbedCode?'\n '):"",a=$('\n \n