Skip to content
Snippets Groups Projects
Verified Commit 3f9543b4 authored by David Beniamine's avatar David Beniamine
Browse files

Basic mirador showing up

parent a6db290c
Branches
No related tags found
No related merge requests found
import Mirador from 'mirador/dist/es/src/index';
// const config = {
// id: 'demo',
// windows: [{
// imageToolsEnabled: true,
// imageToolsOpen: true,
// manifestId: 'https://purl.stanford.edu/sn904cj3429/iiif/manifest',
// }],
// theme: {
// palette: {
// primary: {
// main: '#1967d2',
// },
// },
// },
// };
Mirador.viewer(config, [
...miradorImageToolsPlugin,
]);
const config = {
id: 'mirador',
id: 'demo',
theme: { transitions: window.location.port === '4488' ? { create: () => 'none' } : {}, },
annotation: {
adapter: (canvasId) => new LocalStorageAdapter(`localStorage://?canvasId=${canvasId}`),
exportLocalStorageAnnotations: true,
},
catalog: [
{ manifestId: 'http://localhost/dzkimgs_annotated_video.json' },
{ manifestId: 'http://localhost/video_split_annopage.json' },
......@@ -38,3 +15,6 @@ const config = {
{ manifestId: 'https://iiif.harvardartmuseums.org/manifests/object/299843' }
]
}
Mirador.viewer(config, [
]);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment