Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Getting Started: Annotator Plugin

Rainer Simon edited this page Oct 21, 2012 · 3 revisions

Getting Started: Annotator Plugin

TODO: link to latest download package

To use Annotorious as a plugin to the OKFN Annotator Web annotation system, link the annotorious.css stylesheet into the <head> of your HTML page.

<link rel="stylesheet" type="text/css" href="annotorious.css" />

Include the annotorious.okfn.js script at the end of the document <body>. Set up Annotator as usual, and add the Annotorious Plugin by calling .annotator('addPlugin', 'AnnotoriousImagePlugin'). Example:

<script type="text/javascript" src="annotorious.okfn.js"></script>
<script>
  $(document.body).annotator().annotator('addPlugin', 'AnnotoriousImagePlugin');
</script>