Sha256: adca7b077602476a61c402c281b22a498576c6f86ccb29d30fe6c918c182c506
Contents?: true
Size: 824 Bytes
Versions: 1
Compression:
Stored size: 824 Bytes
Contents
<div id="osd" class="image-viewer"></div> <script defer src="{{ '/assets/openseadragon/openseadragon.min.js' | absolute_url }}"></script> <script> $(document).ready(function () { var manifestUrl = "{{ include.manifest | absolute_url }}"; $.getJSON(manifestUrl, function(data) { var tileSources = []; $.each(data.sequences[0].canvases, function(_k, val) { tileSources.push({ tileSource: val.images[0].resource.service['@id'] + '/info.json', referenceStripThumbnailUrl: val.thumbnail }); }); OpenSeadragon({ id: "osd", preload: true, sequenceMode: true, prefixUrl: "{{ '/assets/openseadragon/images/' | absolute_url }}", tileSources: tileSources, showReferenceStrip: true, }); }); }); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wax_theme-1.1.0 | _includes/osd_iiif_image_viewer.html |