Home

Awesome

mirador-annotation-tooltip-plugin

A Mirador 3 plugin to display annotation contents as a tooltip.

Screenshot

Live examples (demo)

Installation

  1. git clone this repository
  2. npm install
  3. npm run bundle

This will generate a file bundle/dist/mirador.bundle.js that combines Mirador 3 and this plugin, and it can be used as follows (see bundle/index.html).

<div id="mirador"></div>
<script type="text/javascript" src="dist/mirador.bundle.js"></script>
<script type="text/javascript">
    var miradorInstance = Mirador.viewer({
        id: 'mirador',
        windows: [{
            manifestId: 'https://iiif.harvardartmuseums.org/manifests/object/299843',
        }],
        window: {
            defaultSideBarPanel: 'annotations',
            sideBarOpenByDefault: true,
        }
    }, [miradorAnnotationTooltipPlugins]);
</script>