more subtle tts popup
authorrajbot <raj@archive.org>
Wed, 29 Sep 2010 22:40:33 +0000 (22:40 +0000)
committerrajbot <raj@archive.org>
Wed, 29 Sep 2010 22:40:33 +0000 (22:40 +0000)
BookReader/BookReader.css
BookReader/BookReader.js
BookReaderIA/inc/BookReader.inc

index ad03b22..6b7c526 100644 (file)
@@ -259,4 +259,13 @@ a.BRblack:visited   { color: #000000 }
     font-size: 14px;
     background-color: rgb(255, 255, 238);
     opacity: 0.85;
-}
\ No newline at end of file
+}
+
+.BRttsPopUp {
+    position: absolute;
+    background-color: #E6E4E1;
+    background-image: url(images/progressbar.gif);
+    background-repeat:no-repeat;
+    font-size: 0.8em; 
+    z-index: 3;    
+}
index 327c4c5..0459684 100644 (file)
@@ -3897,19 +3897,17 @@ BookReader.prototype.ttsShowPopup = function() {
     this.popup = document.createElement("div");
     $(this.popup).css({
         position: 'absolute',
-        top:      '20%',
-        left:     ($('#BRcontainer').attr('clientWidth')-600)/2 + 'px',
-        width:    '600px',
-        padding:  "20px",
-        border:   "3px double #999999",
+        top:      $('#BRtoolbar').height() + 'px',
+        left:     $('.read_aloud').position().left + 'px',
+        width:    $('#BRtoolbar').width()-$('.read_aloud').position().left + 'px',
+        height:   '20px',
         zIndex:   3,
-        backgroundColor: "#f00",
-        color:           "#fff",
-        fontSize:       '1.875em'        
-    }).appendTo('#BookReader');
+        backgroundColor: '#E6E4E1',
+        fontSize:        '0.8em',
+        background: 'images/progressbar.gif'
+    }).attr('className', 'BRttsPopUp').appendTo('#BookReader');
 
-    htmlStr =  '<p style="text-align:center;"><b>Ever wanted to wait while audio loads?</b><br/>';
-    htmlStr += "It's OK. We all do.</p>";
+    htmlStr =  '&nbsp;';
 
     this.popup.innerHTML = htmlStr;
 }
index b6f44fd..8de031d 100644 (file)
@@ -97,7 +97,7 @@ class BookReader
     // manually update with Launchpad version number at each checkin so that browsers
     // do not use old cached version
     // see https://bugs.launchpad.net/gnubook/+bug/330748
-    $version = "imageurls";
+    $version = "readaloud";
     
     if (BookReader::getDevHost($server)) {
         // on dev host - add time to force reload