-
Notifications
You must be signed in to change notification settings - Fork 20
/
multiple.html
75 lines (59 loc) · 1.57 KB
/
multiple.html
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multiple UVs</title>
<link rel="stylesheet" type="text/css" href="uv/uv.css">
<script src="uv/lib/offline.js"></script>
<script src="uv/helpers.js"></script>
<style>
#uv1, #uv2 {
height: 500px;
margin: 1rem;
}
</style>
</head>
<body>
<div id="uv1" class="uv"></div>
<div id="uv2" class="uv"></div>
<script type="text/javascript">
var uv1, uv2;
window.addEventListener('uvLoaded', function (e) {
var urlDataProvider = new UV.URLDataProvider();
var data1 = {
root: './uv',
iiifResourceUri: 'http://wellcomelibrary.org/iiif/b18035723/manifest',
collectionIndex: 0,
manifestIndex: 0,
sequenceIndex: 0,
canvasIndex: 0,
locales: [
{
name: 'en-GB'
}
]
};
var data2 = {
root: './uv',
iiifResourceUri: 'http://wellcomelibrary.org/iiif/b18035978/manifest',
collectionIndex: 0,
manifestIndex: 0,
sequenceIndex: 0,
canvasIndex: 0,
locales: [
{
name: 'en-GB'
}
]
};
uv1 = createUV('#uv1', data1, urlDataProvider);
setTimeout(function() {
uv2 = createUV('#uv2', data2, urlDataProvider);
}, 1000);
}, false);
</script>
<script src="uv/uv.js"></script>
</body>
</html>