Permalink
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (44 sloc) 1.58 KB
//
// This file shows the minimum you need to provide to BookReader to display a book
//
// Copyright(c)2008-2009 Internet Archive. Software license AGPL version 3.
// Create the BookReader object
var options = {
data: [
[
{ width: 800, height: 1200,
uri: '//archive.org/download/BookReader/img/page001.jpg' },
],
[
{ width: 800, height: 1200,
uri: '//archive.org/download/BookReader/img/page002.jpg' },
{ width: 800, height: 1200,
uri: '//archive.org/download/BookReader/img/page003.jpg' },
],
[
{ width: 800, height: 1200,
uri: '//archive.org/download/BookReader/img/page004.jpg' },
{ width: 800, height: 1200,
uri: '//archive.org/download/BookReader/img/page005.jpg' },
]
],
// Book title and the URL used for the book title link
bookTitle: 'BookReader Demo',
bookUrl: '/BookReaderDemo/index.html',
bookUrlText: 'Back to Demos',
bookUrlTitle: 'This is the book URL title',
// thumbnail is optional, but it is used in the info dialog
thumbnail: '//archive.org/download/BookReader/img/page014.jpg',
// Metadata is optional, but it is used in the info dialog
metadata: [
{label: 'Title', value: 'Open Library BookReader Presentation'},
{label: 'Author', value: 'Internet Archive'},
{label: 'Demo Info', value: 'This demo shows how one could use BookReader with their own content.'},
],
// Override the path used to find UI images
imagesBaseURL: '../BookReader/images/',
ui: 'full', // embed, full (responsive)
el: '#BookReader',
};
var br = new BookReader(options);
br.init();