public
Description: Open Library API client
Homepage: http://openlibrary.org/dev/docs/api
Clone URL: git://github.com/openlibrary/olapi.git
olapi / openbook
name age message
..
file Readme.md Mon Oct 26 18:56:48 -0700 2009 use jquery from ajax.googleapis.com instead of ... [anandology]
file openbook.css Fri Feb 27 23:15:21 -0800 2009 move styles to css [anandology]
file openbook.js Fri Feb 27 23:36:45 -0800 2009 remove references to staging server. [anandology]
openbook/Readme.md

openbook.js

openbook.js is a pure javascript implementation of John Miedema's OpenBook wordpress plugin.

It uses Open Library Books API to get all the required data with a single AJAX request.

How to use

Include jquery.js and openbook.js javascripts and openbook.css stylesheet in head of the html.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://openlibrary.org/static/openbook/openbook.js"></script>
<link rel="stylesheet" type="text/css" href="http://openlibrary.org/static/openbook/openbook.css"/>

And add a div with class openbook with booknumber attribute set to isbn of the required book.

<div class="openbook" booknumber="9780864924933"></div>