Skip to content
Browse files

Fixed Djatoka url and added license

  • Loading branch information...
1 parent d4ee9e1 commit 276dae0bcfa74990b5a2bb654ed1a986ca93f3ae Doug Reside committed
Showing with 22 additions and 24 deletions.
  1. +16 −16 OpenSeadragon.debug.js
  2. +6 −8 seadragon.html
View
32 OpenSeadragon.debug.js
@@ -3072,28 +3072,28 @@ Seadragon.Config = function () {
this.navImages = {
zoomIn: {
- REST: '/Scripts/images/zoomin_rest.png',
- GROUP: '/Scripts/images/zoomin_grouphover.png',
- HOVER: '/Scripts/images/zoomin_hover.png',
- DOWN: '/Scripts/images/zoomin_pressed.png'
+ REST: './images/zoomin_rest.png',
+ GROUP: './images/zoomin_grouphover.png',
+ HOVER: './images/zoomin_hover.png',
+ DOWN: './images/zoomin_pressed.png'
},
zoomOut: {
- REST: '/Scripts/images/zoomout_rest.png',
- GROUP: '/Scripts/images/zoomout_grouphover.png',
- HOVER: '/Scripts/images/zoomout_hover.png',
- DOWN: '/Scripts/images/zoomout_pressed.png'
+ REST: './images/zoomout_rest.png',
+ GROUP: './images/zoomout_grouphover.png',
+ HOVER: './images/zoomout_hover.png',
+ DOWN: './images/zoomout_pressed.png'
},
home: {
- REST: '/Scripts/images/home_rest.png',
- GROUP: '/Scripts/images/home_grouphover.png',
- HOVER: '/Scripts/images/home_hover.png',
- DOWN: '/Scripts/images/home_pressed.png'
+ REST: './images/home_rest.png',
+ GROUP: './images/home_grouphover.png',
+ HOVER: './images/home_hover.png',
+ DOWN: './images/home_pressed.png'
},
fullpage: {
- REST: '/Scripts/images/fullpage_rest.png',
- GROUP: '/Scripts/images/fullpage_grouphover.png',
- HOVER: '/Scripts/images/fullpage_hover.png',
- DOWN: '/Scripts/images/fullpage_pressed.png'
+ REST: './images/fullpage_rest.png',
+ GROUP: './images/fullpage_grouphover.png',
+ HOVER: './images/fullpage_hover.png',
+ DOWN: './images/fullpage_pressed.png'
}
}
}
View
14 seadragon.html
@@ -7,19 +7,17 @@
</script>
<script type="text/javascript">
var viewer = null;
- var djbase = "http://localhost:8080/adore-djatoka/resolver?url_ver=Z39.88-2004&rft_id=http%3A%2F%2Flocalhost%3A8080%2Fadore-djatoka%2Floc.jp2&svc_id=info:lanl-repo/svc/getRegion&svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000&svc.format=image/jpeg&svc.rotate=0"
- // var djbase = "http://localhost:8080/adore-djatoka/resolver?url_ver=Z39.88-2004&rft_id=http%3A%2F%2Flocalhost%3A8080%2Fadore-djatoka%2Fkaye.jp2&svc_id=info:lanl-repo/svc/getRegion&svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000&svc.format=image/jpeg&svc.rotate=0"
-
-
- function init() {
+ 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("./Hamlet/hamlet.xml");
viewer.openDzi("./locmap.xml");
+ // rewrite the pointer to the xml file to describe your image size
+
}
Seadragon.Utils.addEvent(window, "load", init);
-
- // var djbase = "http://localhost:8080/adore-djatoka/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";
</script>

0 comments on commit 276dae0

Please sign in to comment.
Something went wrong with that request. Please try again.