Skip to content

Commit b6682db

Browse files
committed
Adding index.md
1 parent 4cbcf82 commit b6682db

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

plugins/osd/index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<script src="{{"/plugins/js/content-state.js" | absolute_url }}"></script>
2+
<script src="https://cdnjs.cloudflare.com/ajax/libs/openseadragon/3.0.0/openseadragon.min.js" integrity="sha512-Dq5iZeGNxm7Ql/Ix10sugr98niMRyuObKlIzKN1SzUysEXBxti479CTsCiTV00gFlDeDO3zhBsyCOO+v6QVwJw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
3+
4+
## OpenSeadragon
5+
6+
This is a demo of the [OpenSeadragon](https://openseadragon.github.io/) viewer. This viewer works with IIIF Image API images and is included in many of the more advanced viewers like Mirador and the UV.
7+
8+
Use your mouse wheel to zoom in or use the + or - minus buttons
9+
10+
11+
<div id="osd" style="width: 100%; height: 586px"></div>
12+
13+
<script type="text/javascript">
14+
var infoJson = getContentState();
15+
OpenSeadragon({
16+
id: "osd",
17+
prefixUrl: "https://cdnjs.cloudflare.com/ajax/libs/openseadragon/3.0.0/images/",
18+
preserveViewport: true,
19+
visibilityRatio: 1,
20+
sequenceMode: true,
21+
tileSources: [infoJson]
22+
});
23+
</script>

0 commit comments

Comments
 (0)