Created
August 26, 2015 00:03
-
-
Save AlbinoShaun/171162c66a98a27f52dd to your computer and use it in GitHub Desktop.
OpenSeadragon viewer with relative size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> | |
html, body { | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
.openseadragon1 { | |
width: 80%; | |
height: 80%; | |
background-color: white; | |
border: 10px solid black; | |
} | |
</style> | |
</head> | |
<body> | |
<div> | |
Simple demo page to show a default OpenSeadragon viewer. | |
</div> | |
<div id="contentDiv" class="openseadragon1"></div> | |
<script type="text/javascript"> | |
var viewer = OpenSeadragon({ | |
debugMode: true, | |
id: "contentDiv", | |
prefixUrl: "../../build/openseadragon/images/", | |
tileSources: "../data/testpattern.dzi", | |
minZoomImageRatio: 0.8, | |
allowZoomToConstraintsOnResize: true | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment