forked from informatics-isi-edu/openseadragon-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_layer_annotorious.html
87 lines (80 loc) · 3.48 KB
/
index_layer_annotorious.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<title>2D layering+Annotorious viewer</title>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/alertify.core.css" rel="stylesheet">
<link href="css/alertify.default.css" rel="stylesheet">
<link href="css/jquery-ui.css" rel="stylesheet">
<link href="css/viewer.css" rel="stylesheet">
<link href="css/osea_viewer.css" rel="stylesheet">
<script type="text/javascript" src="js/alertify.min.js"> </script>
<script type="text/javascript" src="js/debug.js"> </script>
<script type='text/javascript' src='js/jquery.js'></script>
<!-- for openseadragon and viewer -->
<script type='text/javascript' src='js/jquery.viewer_layer.js'></script>
<script type='text/javascript' src='js/openseadragon.js'></script>
<style>
#content {
width: 100%;
height: 100%;
background-color: #d9d9d9;
}
</style>
<!-- for annotorious -->
<link href="css/annotorious/themes/dark/annotorious-dark.css" rel="stylesheet">
<link href="css/anno_viewer.css" rel="stylesheet">
<script type="text/javascript" src="js/annotorious.js"> </script>
<script type="text/javascript" src="js/jquery.anno_viewer.js"> </script>
</head>
<body>
<div id="content">
<div>
<div style='margin-left:20px'>
data source:
<select id="inputURL" >
<!-- canned data
<option value="A" selected>A</option>
<option value="BBlue" selected>BBlue</option>
<option value="CCyan">CCyan</option>
<option value="DDandelion">DDandelion</option>
-->
<!-- real old data
<option value="http://localhost/data/3Channels/fitc_DZI/ImageProperties.xml" selected>fitc</option>
<option value="http://localhost/data/3Channels/dapi_DZI/ImageProperties.xml" >dapi</option>
<option value="http://localhost/data/3Channels/Rhodamine_DZI/ImageProperties.xml" >Rhodamine</option>
-->
<!-- real test data -->
<option value="http://localhost/data/3test/DZC/FITC/ImageProperties.xml" selected>fitc</option>
<option value="http://localhost/data/3test/DZC/DAPI/ImageProperties.xml" >dapi</option>
<option value="http://localhost/data/3test/DZC/Rhodamine/ImageProperties.xml" >Rhodamine</option>
</select>
</div>
<div style='margin-left:20px'>
opacity:<input id="inputOpacity" value="0.6"/>
</div>
<button onclick="addData();" style='margin:2px; background:#FF9999;'>Add</button>
<div>
<div style='margin-left:20px'>
select layer:
<select id="inputLayer" >NONE</select>
</div>
<div style='margin-left:20px'>
new opacity:<input id="updateOpacity" value="0.2"/>
</div>
<button onclick="spreadLayer();" style='margin:2px; background:#FF9999;'>spreadLayer</button>
<button onclick="removeLayer();" style='margin:2px; background:#FF9999;'>removeLayer</button>
<button onclick="updateOpacity();" style='margin:2px; background:#FF9999;'">updateOpacity</button>
</div>
<button onclick="chkInfo();" style='margin:4px; background:#FF9999;'>Info</button>
</div>
<div class="viewer">
<div id="viewer" style="position:relative; width:800px; height:500px; margin-bottom:0px; border:4px solid red; ">
<div id="openseadragon" class="openseadragon" style="background-color:white;"></div>
<div id="anno-button">
<input id="map-annotate-button" type="button" style="display:hidden" onmouseover="annoBtnEnter()" onmouseout="annoBtnExit()" onclick="annotate()"/>
</div>
</div>
</div>
</body>
</html>