this.lastDisplayableIndex2up = null;
// We link to index.php to avoid redirect which breaks back button
+ // Should be overriden (before init) by custom implmentations.
this.logoURL = 'http://www.archive.org/index.php';
- // Base URL for images
+ // Base URL for UI images - should be overriden (before init) by
+ // custom implementations.
+ // $$$ This is the same directory as the images referenced by relative
+ // path in the CSS. Would be better to automagically find that path.
this.imagesBaseURL = '/bookreader/images/';
// Mode constants
--- /dev/null
+/*
+ * Custom overrides for BookReader Demo.
+ */
+
+/* Hide print and embed functionality */
+#BRtoolbar .embed, .print {
+ display: none;
+}
br.numLeafs = 15;
// Book title and the URL used for the book title link
-br.bookTitle= 'Open Library Bookreader Presentation';
+br.bookTitle= 'Open Library BookReader Presentation';
br.bookUrl = 'http://openlibrary.org';
+// Override the path used to find UI images
+br.imagesBaseURL = '../BookReader/images/';
+
// Let's go!
br.init();
<html>
<head>
<title>bookreader demo</title>
- <link rel="stylesheet" type="text/css" href="../BookReader/BookReader.css">
+
+ <link rel="stylesheet" type="text/css" href="../BookReader/BookReader.css"></link>
+ <!-- Custom CSS overrides -->
+ <link rel="stylesheet" type="text/css" href="BookReaderDemo.css"></link>
+
<script type="text/javascript" src="http://www.archive.org/download/BookReader/lib/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="http://www.archive.org/download/BookReader/lib/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="../BookReader/BookReader.js"></script>