From 21c1c1dc8722f62c0a3a7624025114662c410600 Mon Sep 17 00:00:00 2001 From: rajbot Date: Thu, 14 Oct 2010 21:43:12 +0000 Subject: [PATCH 1/1] pull out soundmanager and read-aloud code for mobile user agents --- BookReader/BookReader.js | 8 +++++++- BookReaderIA/inc/BookReader.inc | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index 9b27bf9..9becdb8 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -3548,6 +3548,12 @@ BookReader.prototype.addChapterFromEntry = function(tocEntryObject) { BookReader.prototype.initToolbar = function(mode, ui) { // $$$mang should be contained within the BookReader div instead of body + var readIcon = '' + if (!navigator.userAgent.match(/mobile/i)) { + readIcon = ""; + } + console.log('readIcon = ' + readIcon); + $("body").append( "
" + "" @@ -3556,7 +3562,7 @@ BookReader.prototype.initToolbar = function(mode, ui) { // XXXmang icons incorrect or handlers wrong + "" + "" - + "" + + readIcon + "" + "" + "" diff --git a/BookReaderIA/inc/BookReader.inc b/BookReaderIA/inc/BookReader.inc index 29c21f9..5a046b9 100644 --- a/BookReaderIA/inc/BookReader.inc +++ b/BookReaderIA/inc/BookReader.inc @@ -141,6 +141,7 @@ class BookReader + + -- 2.20.1