-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathseadragon.html
39 lines (32 loc) · 1.29 KB
/
seadragon.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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"
src="./OpenSeadragon.debug.js">
</script>
<script type="text/javascript">
var viewer = null;
var djbase = "http://jp2k.lib.virginia.edu/resolver?url_ver=Z39.88-2004&rft_id=http://memory.loc.gov/gmd/gmd433/g4330/g4330/np000066.jp2&svc_id=info:lanl-repo/svc/getRegion&svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000&svc.format=image/jpeg&svc.rotate=0"
// Rewrite djbase above to point to the Djatoka installation and image you desire.
function init() {
viewer = new Seadragon.Viewer("container",djbase);
viewer.openDzi("./locmap.xml");
// rewrite the pointer to the xml file to describe your image size
}
Seadragon.Utils.addEvent(window, "load", init);
</script>
<style type="text/css">
#container
{
width: 900px;
height: 500px;
background-color: black;
border: 1px solid black;
color: white; /* for error messages, etc. */
}
</style>
</head>
<body>
<div id="container"></div>
</body>
</html>