Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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 src="http://openlibrary.org/static/js/jquery/jquery.js"></script>
<script 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>