openseadragon/test/demo/basic.html

73 lines
2.2 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<title>OpenSeadragon Basic Demo</title>
<script type="text/javascript" src='../../build/openseadragon/openseadragon.js'></script>
<script type="text/javascript" src='../lib/jquery-1.9.1.min.js'></script>
<style type="text/css">
2016-01-06 17:25:58 -08:00
.openseadragon1 {
width: 800px;
height: 600px;
}
</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"
}
}
};
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 }
});
</script>
</body>
</html>