2013-06-28 23:44:38 +04:00
|
|
|
<!DOCTYPE html>
|
2013-05-20 21:44:36 +04:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>OpenSeadragon Basic Demo</title>
|
2013-06-11 04:23:09 +04: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 21:44:36 +04:00
|
|
|
<style type="text/css">
|
|
|
|
|
2016-01-07 04:25:58 +03:00
|
|
|
.openseadragon1 {
|
|
|
|
width: 800px;
|
|
|
|
height: 600px;
|
|
|
|
}
|
2013-05-20 21:44:36 +04: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">
|
|
|
|
|
2023-09-26 16:31:43 +03:00
|
|
|
const url = new URL(window.location.href);
|
|
|
|
let drawer = url.searchParams.get("drawer");
|
|
|
|
if (!drawer) {
|
|
|
|
drawer = 'canvas';
|
|
|
|
url.searchParams.set('drawer', drawer);
|
|
|
|
if ("undefined" !== typeof history.replaceState) {
|
|
|
|
history.replaceState(null, window.location.title, url.toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-05-20 21:44:36 +04:00
|
|
|
var viewer = OpenSeadragon({
|
2021-12-07 07:33:58 +03:00
|
|
|
// debugMode: true,
|
2013-05-21 22:06:03 +04:00
|
|
|
id: "contentDiv",
|
|
|
|
prefixUrl: "../../build/openseadragon/images/",
|
2017-05-24 19:40:45 +03:00
|
|
|
tileSources: "../data/testpattern.dzi",
|
2023-09-26 16:31:43 +03:00
|
|
|
showNavigator: true,
|
|
|
|
drawer:drawer,
|
2013-05-20 21:44:36 +04:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|