From aa69ac669c4cb3931a5c593d27324233a2a3255a Mon Sep 17 00:00:00 2001 From: Camille Villa Date: Mon, 30 Nov 2020 11:52:47 -0800 Subject: [PATCH] Add an elastic mode example --- src/index.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index 941eebd..47e86b2 100644 --- a/src/index.js +++ b/src/index.js @@ -2,14 +2,22 @@ import Mirador from 'mirador/dist/es/src/index'; import examplePlugin from './plugins/example_plugin'; const config = { - id: 'mirador-viewer', - windows: [ - { - manifestId: 'https://purl.stanford.edu/fr426cg9537/iiif/manifest', + id: 'mirador-viewer', + windows: [{ + manifestId: 'https://purl.stanford.edu/fr426cg9537/iiif/manifest', + }, + { + manifestId: 'https://purl.stanford.edu/qg074bz5077/iiif/manifest', + }, + { + manifestId: 'https://purl.stanford.edu/wj335sy2632/iiif/manifest', + } + ], + workspace: { + type: 'elastic', } - ], }; const plugins = []; -Mirador.viewer(config, plugins); +Mirador.viewer(config, plugins); \ No newline at end of file