Merge commit 'rajbot/newui' into newui
[bookreader.git] / BookReaderIA / inc / BookReader.inc
index b949dcb..1282e18 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); ?>">
@@ -172,7 +177,6 @@ class BookReader
   var brConfig = {};
 <? if ($uiMode == 'embed') { ?>
   brConfig["mode"] = 1;
-  brConfig["reduce"] = 8;
   brConfig["ui"] = "embed";
 <? } else { ?>
   brConfig["mode"] = 2;