Permalink
Browse files

update standalone demo with newui changes

  • Loading branch information...
1 parent 1e735c4 commit bf35166d1ba14fc9d826b4bc947ff99f818740d2 @rajbot rajbot committed Dec 10, 2010
Showing with 32 additions and 26 deletions.
  1. +9 −0 BookReaderDemo/BookReaderJSSimple.js
  2. +23 −26 BookReaderDemo/index.html
@@ -86,5 +86,14 @@ br.bookUrl = 'http://openlibrary.org';
// Override the path used to find UI images
br.imagesBaseURL = '../BookReader/images/';
+br.getEmbedCode = function(frameWidth, frameHeight, viewParams) {
+ return "Embed code not supported in bookreader demo.";
+}
+
// Let's go!
br.init();
+
+// read-aloud and search need backend compenents and are not supported in the demo
+$('#BRtoolbar').find('.read').hide();
+$('#textSrch').hide();
+$('#btnSrch').hide();
View
@@ -4,36 +4,33 @@
<head>
<title>bookreader demo</title>
- <link rel="stylesheet" type="text/css" href="../BookReader/BookReader.css"></link>
+ <link rel="stylesheet" type="text/css" href="../BookReader/BookReader.css"/>
<!-- 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>
- <script type="text/javascript" src="../BookReader/dragscrollable.js"></script>
-</head>
-<body style="background-color: rgb(249, 248, 208);">
+ <link rel="stylesheet" type="text/css" href="BookReaderDemo.css"/>
-<div id="BookReader" style="left:10px; right:10px; top:10px; bottom:2em;">x</div>
-<script type="text/javascript" src="BookReaderJSSimple.js"></script>
+ <script type="text/javascript" src="http://www.archive.org/includes/jquery-1.4.2.min.js"></script>
+ <script type="text/javascript" src="http://www.archive.org/bookreader/jquery-ui-1.8.5.custom.min.js"></script>
-<div id="BRfooter">
- <div class="BRlogotype">
- <a href="http://openlibrary.org/" class="BRblack">Open Library</a>
- <a href="http://openlibrary.org/beta" class="BRblack" style="font-size: 0.8em; text-decoration: underline;">beta</a>
- </div>
- <div class="BRnavlinks">
- <a class="BRblack" href="http://openlibrary.org/dev/docs/bookreader">About the Bookreader</a> |
- <a class="BRblack" href="https://bugs.launchpad.net/gnubook/+filebug-advanced">Report Errors</a> |
- <a class="BRblack" href="http://openlibrary.org/about">About Us</a> |
- <a class="BRblack" href="http://openlibrary.org/index/index.html">Index</a> |
- <a class="BRblack" href="http://www.archive.org/">IA</a> |
- <a class="BRblack" href="http://www.opencontentalliance.org/">OCA</a> |
- <a class="BRblack" href="http://wikimediafoundation.org/">WMF</a> |
- <a class="BRblack" href="http://openlibrary.org/about/contact">Contact Us</a>
- </div>
+ <script type="text/javascript" src="http://www.archive.org/bookreader/dragscrollable.js"></script>
+ <script type="text/javascript" src="http://www.archive.org/bookreader/jquery.colorbox-min.js"></script>
+ <script type="text/javascript" src="http://www.archive.org/bookreader/jquery.ui.ipad.js"></script>
+ <script type="text/javascript" src="http://www.archive.org/bookreader/jquery.bt.min.js"></script>
+
+ <script type="text/javascript" src="../BookReader/BookReader.js"></script>
+</head>
+<body style="background-color: ##939598;">
+
+<div id="BookReader">
+ Internet Archive BookReader Demo <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/goodytwoshoes00newyiala"> other formats of the book</a>.
+ </p>
+ </noscript>
</div>
+<script type="text/javascript" src="BookReaderJSSimple.js"></script>
+
</body>
</html>

0 comments on commit bf35166

Please sign in to comment.