OpenSeadragon with IIIF Drag and Drop Demo

It isn't clear that there is a use case for drag and drop into a simple single-image viewer, but it is useful to demonstrate the functionality.

Intended behavior

The OpenSeadragon viewer above is wrapped within a <div id="container"> that serves as a dropzone in which IIIF drag and drop works. This demo is designed to provide some support for all three drop patterns described in IIIF Drag-and-drop. Accepts manifest (first image from first canvas displayed, parsing is dumb and perhaps only works with manifests from e-codices..), manifest with canvas specified (first image from specified canvas displayed, parsing dumb), or an image info URI.

Demo