Skip to content

A portable document viewer built on CoffeeScript and DocumentCloud

Notifications You must be signed in to change notification settings

homicidewatch/js-docviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A portable document viewer built on CoffeeScript and DocumentCloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published