2013-06-28 15:44:38 -04:00
|
|
|
<!DOCTYPE html>
|
2013-05-20 10:44:36 -07:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>OpenSeadragon Basic Demo</title>
|
2013-06-10 17:23:09 -07:00
|
|
|
<script type="text/javascript" src='../../build/openseadragon/openseadragon.js'></script>
|
|
|
|
<script type="text/javascript" src='../lib/jquery-1.9.1.min.js'></script>
|
2013-05-20 10:44:36 -07:00
|
|
|
<style type="text/css">
|
|
|
|
|
2016-01-06 17:25:58 -08:00
|
|
|
.openseadragon1 {
|
|
|
|
width: 800px;
|
|
|
|
height: 600px;
|
|
|
|
}
|
2013-05-20 10:44:36 -07:00
|
|
|
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div>
|
|
|
|
Simple demo page to show a default OpenSeadragon viewer.
|
|
|
|
</div>
|
|
|
|
<div id="contentDiv" class="openseadragon1"></div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
2017-05-23 10:02:19 -07:00
|
|
|
var duomo = {
|
|
|
|
Image: {
|
|
|
|
xmlns: "http://schemas.microsoft.com/deepzoom/2008",
|
|
|
|
Url: "http://openseadragon.github.io/example-images/duomo/duomo_files/",
|
|
|
|
Format: "jpg",
|
|
|
|
Overlap: "2",
|
|
|
|
TileSize: "256",
|
|
|
|
Size: {
|
|
|
|
Width: "13920",
|
|
|
|
Height: "10200"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2013-05-20 10:44:36 -07:00
|
|
|
var viewer = OpenSeadragon({
|
2017-05-23 10:02:19 -07:00
|
|
|
debugMode: true,
|
|
|
|
// immediateRender: true,
|
2013-05-21 11:06:03 -07:00
|
|
|
id: "contentDiv",
|
2017-05-23 10:02:19 -07:00
|
|
|
minZoomLevel: 0.01,
|
2013-05-21 11:06:03 -07:00
|
|
|
prefixUrl: "../../build/openseadragon/images/",
|
2017-05-23 10:02:19 -07:00
|
|
|
tileSources: '../data/testpattern.dzi',
|
|
|
|
// showNavigator: true,
|
|
|
|
|
|
|
|
// toolbar: "NBViewerOSDToolbar",
|
|
|
|
constrainDuringPan: true,
|
|
|
|
visibilityRatio: 1,
|
|
|
|
showNavigator: true,
|
|
|
|
navigatorAutoFade: false,
|
|
|
|
// showRotationControl: _data.nbViewerRotationControl,
|
|
|
|
// change the size of the navigator window
|
|
|
|
// navigatorPosition: "ABSOLUTE",
|
|
|
|
navigatorAutoResize: false,
|
|
|
|
navigatorRotate: false,
|
|
|
|
navigatorHeight: "150px",
|
|
|
|
navigatorWidth: "150px",
|
|
|
|
//debugMode: true,
|
|
|
|
immediateRender: true,
|
|
|
|
// adds precision to the zoom click
|
|
|
|
zoomPerClick: 1.3,
|
|
|
|
// adjusts the floating at the end of a zoom
|
|
|
|
animationTime: 0.5,
|
|
|
|
// prefixUrl: _data.nbViewerImagePath,
|
|
|
|
// tileSources: _data.nbViewerSettings.response.params.dzi_path,
|
|
|
|
// Settings remove the zoom functions from the mouse.
|
|
|
|
gestureSettingsMouse: { scrollToZoom: false, dblClickToZoom: false, clickToZoom: false }
|
2013-05-20 10:44:36 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|