mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
126 lines
3.1 KiB
HTML
126 lines
3.1 KiB
HTML
<html>
|
|
<head>
|
|
<title>OpenSeadragon Expose Origina Event Demo</title>
|
|
<script type="text/javascript" src='../build/openseadragon/openseadragon.js'></script>
|
|
|
|
<style type="text/css">
|
|
.openseadragon1
|
|
{
|
|
width: 300px;
|
|
height: 700px;
|
|
border: 1px solid black;
|
|
color: #333; /* text color for messages */
|
|
background-color: black;
|
|
}
|
|
|
|
.openseadragon2
|
|
{
|
|
width: 500px;
|
|
height: 1000px;
|
|
border: 1px solid black;
|
|
color: #333; /* text color for messages */
|
|
background-color: black;
|
|
}
|
|
|
|
.openseadragon3
|
|
{
|
|
width: 762px;
|
|
height: 1000px;
|
|
border: 1px solid black;
|
|
color: #333; /* text color for messages */
|
|
background-color: black;
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="demoarea">
|
|
<div>
|
|
Simple demo page to verify navigator can be placed on an element outside of the main viewer
|
|
</div>
|
|
<div id="contentDiv1" class="openseadragon1"></div>
|
|
<div id="navigatorDialog1">
|
|
<div id="navigatorDiv1" class="findme"></div>
|
|
</div>
|
|
|
|
|
|
<div id="contentDiv2" class="openseadragon2"></div>
|
|
<div id="navigatorDialog2">
|
|
<div id="navigatorDiv2" class="findme"></div>
|
|
</div>
|
|
|
|
|
|
<div id="contentDiv3" class="openseadragon3"></div>
|
|
<div id="navigatorDialog3">
|
|
<div id="navigatorDiv3" class="findme"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var viewer1 = OpenSeadragon({
|
|
id:"contentDiv1",
|
|
navigatorId: "navigatorDiv1",
|
|
prefixUrl:"../build/openseadragon/images/",
|
|
tileSources:{
|
|
Image:{
|
|
xmlns:"http://schemas.microsoft.com/deepzoom/2008",
|
|
Url:"data/wide_files/",
|
|
Format:"jpg",
|
|
Overlap:"2",
|
|
TileSize:"256",
|
|
Size:{
|
|
Height:"500",
|
|
Width:"2000"
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
var viewer2 = OpenSeadragon({
|
|
id:"contentDiv2",
|
|
navigatorId: "navigatorDiv2",
|
|
prefixUrl:"../build/openseadragon/images/",
|
|
tileSources:{
|
|
Image:{
|
|
xmlns:"http://schemas.microsoft.com/deepzoom/2008",
|
|
Url:"data/wide_files/",
|
|
Format:"jpg",
|
|
Overlap:"2",
|
|
TileSize:"256",
|
|
Size:{
|
|
Height:"500",
|
|
Width:"2000"
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
var viewer3 = OpenSeadragon({
|
|
id:"contentDiv3",
|
|
navigatorId: "navigatorDiv3",
|
|
prefixUrl:"../build/openseadragon/images/",
|
|
tileSources:{
|
|
Image:{
|
|
xmlns:"http://schemas.microsoft.com/deepzoom/2008",
|
|
Url:"data/tall_files/",
|
|
Format:"jpg",
|
|
Overlap:"2",
|
|
TileSize:"256",
|
|
Size:{
|
|
Height:"2000",
|
|
Width:"500"
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|