-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
42 lines (39 loc) · 1016 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import Mirador from "mirador/dist/es/src/index";
import keyboardShortcutsPlugin from "../../src";
const config = {
catalog: [
{
manifestId:
"https://api.digitale-sammlungen.de/iiif/presentation/v2/bsb00135902/manifest",
provider: "Bavarian State Library",
},
{
manifestId:
"https://api.digitale-sammlungen.de/iiif/presentation/v2/bsb10532463_00005_u001/manifest",
provider: "Bavarian State Library",
},
{
manifestId:
"https://api.digitale-sammlungen.de/iiif/presentation/v2/bsb00034024/manifest",
provider: "Bavarian State Library",
},
],
id: "demo",
window: {
allowFullscreen: true,
},
windows: [
{
canvasIndex: 8,
manifestId:
"https://api.digitale-sammlungen.de/iiif/presentation/v2/bsb00034024/manifest",
view: "single",
},
],
keyboardShortcuts: {
shortcutMapping: {
"toggle-fullscreen": "f",
},
},
};
Mirador.viewer(config, [...keyboardShortcutsPlugin]);