diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index a55b30fb9..6b02a17d9 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -105,11 +105,6 @@ BookReader.prototype.setup = function(options) { thumbnail: null, bookUrlMoreInfo: null, - // Settings for mobile - enableMobileNav: false, - mobileNavTitle: 'Internet Archive', - onePageMinBreakpoint: 800, - // Experimental Controls (eg b/w) enableExperimentalControls: false, @@ -205,10 +200,6 @@ BookReader.prototype.setup = function(options) { this.thumbnail = options.thumbnail; this.bookUrlMoreInfo = options.bookUrlMoreInfo; - this.enableMobileNav = options.enableMobileNav; - this.mobileNavTitle = options.mobileNavTitle; - this.onePageMinBreakpoint = options.onePageMinBreakpoint; - this.enableExperimentalControls = options.enableExperimentalControls; this.el = options.el; @@ -3223,10 +3214,10 @@ BookReader.prototype.initEmbedNavbar = function() { + '' + "" + "" - + "" + + "" + '' ); - $('#BRembedreturn a').text(this.bookTitle); + this.refs.$br.find('.BRembedreturn a').text(this.bookTitle); }; @@ -3268,20 +3259,10 @@ BookReader.prototype.updateNavIndexThrottled = BookReader.util.throttle(BookRead * @return {jqueryElement} */ BookReader.prototype.buildToolbarElement = function() { - var escapedTitle = BookReader.util.escapeHTML(this.bookTitle); - - var mobileClass = ''; - if (this.enableMobileNav) { - mobileClass = 'responsive'; - } // Add large screen navigation this.refs.$BRtoolbar = $( - "
" - + "" - + "" - + "" + this.bookTitle + "" - + "" + "
" + "" + "" + "