Reduce jumping/resizing in info modal when cover is loading
[bookreader.git] / BookReaderIA / inc / BookReader.inc
index b949dcb..0c6cefd 100644 (file)
@@ -114,6 +114,9 @@ class BookReader
     
     $metaURL = BookReader::jsMetadataURL($server, $identifier, $mainDir, $subPrefix);
     $locateURL = BookReader::jsLocateURL($identifier, $subPrefix);
+    $coverThumb = 'http://www.archive.org/download/' . $identifier . '/'. $subPrefix . '/page/cover_w114.jpg';
+    // startup-up-image must be exactly 320x460
+    //$startupImage = 'http://www.archive.org/download/' . $identifier . '/'. $subPrefix . '/page/cover_w512.jpg';
     
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
@@ -121,6 +124,8 @@ class BookReader
 <head>
     <meta name="viewport" content="width=device-width, maximum-scale=1.0" />
     <meta name="apple-mobile-web-app-capable" content="yes" />
+    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
+    <link rel="apple-touch-icon" href="<? echo($coverThumb); ?>" />
     <title><? echo $title; ?></title>
 <!--[if lte IE 6]>
     <meta http-equiv="refresh" content="2; URL=/bookreader/browserunsupported.php?id=<? echo($id); ?>">
@@ -165,14 +170,22 @@ class BookReader
 */
 ?>
 
-<div id="BookReader">Internet Archive BookReader <noscript>requires JavaScript to be enabled.</noscript></div>
+<div id="BookReader">
+    Internet Archive BookReader - <? echo $title; ?>
+    <br/>
+    
+    <noscript>
+    <p>
+        The BookReader requires JavaScript to be enabled. Please check that your browser supports JavaScript and that it is enabled in the browser settings.  You can also try one of the <a href="http://www.archive.org/details/<? echo $identifier; ?>"> other formats of the book</a>.
+    </p>
+    </noscript>
+</div>
 
 <script type="text/javascript">
   // Set some config variables -- $$$ NB: Config object format has not been finalized
   var brConfig = {};
 <? if ($uiMode == 'embed') { ?>
   brConfig["mode"] = 1;
-  brConfig["reduce"] = 8;
   brConfig["ui"] = "embed";
 <? } else { ?>
   brConfig["mode"] = 2;