Skip to content

Instantly share code, notes, and snippets.

@delucis
delucis / readernaut.js
Created October 3, 2012 10:41 — forked from adampolselli/readernaut.js
Fork of Adam Polselli’s Readernaut widget script to work with new API
function parseResponse(data) {
var bookshelf = document.getElementById("books");
for (var i=0; i<4; i++) {
var cover = data.objects[i].book_edition.cover;
var title = data.objects[i].book_edition.book.title;
var author = data.objects[i].book_edition.book.authors[0].full_name;
var permalink = data.objects[i].book_edition.short_url;
var link = document.createElement("a");