Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A portable document viewer built on CoffeeScript and DocumentCloud

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 src
Octocat-spinner-32 Cakefile
Octocat-spinner-32 README.md
Octocat-spinner-32 index.html
Octocat-spinner-32 list.html
Octocat-spinner-32 viewer.html
README.md

A JavaScript (actually CoffeeScript) Document Viewer

This is an attempt to build a portable document library and viewer entirely client-side, using the public API provided by DocumentCloud.

Getting started:

Clone or download from this repository. Include on your page the following dependencies:

(At some point in the future, I'll probably package everything into one download using Jammit. For now, you're stuck with dependencies.)

Embed:

<div id="documents"></div>
<script>
var docs = new DocumentViewer({
    q: "group:homicide-watch",
    per_page: 12,
    page: 1
})
</script>

See DocumentCloud's API documentation for arguments.

Something went wrong with that request. Please try again.