-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
103 lines (92 loc) · 3.94 KB
/
index.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html>
<!--
Copyright 2021 RIKEN Center for Brain Science / Connectome Analysis Unit.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache,no-store " />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<title>Multimodal 2D Section Viewer</title>
<script src="./assets/vendors/openseadragonAlexEdit.js"></script>
<script src="./assets/vendors/openseadragon-viewerinputhook.min.js"></script>
<script src="./assets/vendors/openseadragon-scalebar.js"></script>
<script src="./assets/vendors/openseadragon-filtering.js"></script>
<script src="./assets/vendors/raphaelFastEdit.js"></script>
<script src="./assets/vendors/raphael-svg-import.js"></script>
<script src="./assets/vendors/jquery.min.js"></script>
<link rel="stylesheet" href="./assets/css/ZAViewer.css" />
<style>.zav-region-label{font-size:6px;stroke-width:1.2px;}</style>
<!--# block name="custom_processing_include" -->
<!-- custom processing extension disabled -->
<!--# endblock -->
<!--# include file="./ext/customProcessings.html" stub="custom_processing_include" -->
</head>
<body>
<noscript>
<div class="nosupport">
<h1>Sorry, JavaScript must be enabled to run this app.</h1>
<h3>You can contact us at <a href="https://dataportal.brainminds.jp/contact-us">dataportal.brainminds.jp</a></h3>
</div>
</noscript>
<script type="text/javascript">
function get_browser() {
var ua = navigator.userAgent, tem, M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
if (/trident/i.test(M[1])) {
tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
return { name: 'IE', version: (tem[1] || '') };
}
if (M[1] === 'Chrome') {
tem = ua.match(/\bOPR\/(\d+)/);
if (tem != null) { return { name: 'Opera', version: tem[1] }; }
}
if (window.navigator.userAgent.indexOf("Edge") > -1) {
tem = ua.match(/\Edge\/(\d+)/);
if (tem != null) { return { name: 'Edge', version: tem[1] }; }
}
M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?'];
if ((tem = ua.match(/version\/(\d+)/i)) != null) { M.splice(1, 1, tem[1]); }
return {
name: M[0],
version: +M[1]
};
}
var browser = get_browser()
var isSupported = isSupported(browser);
function isSupported(browser) {
var supported = false;
//end of 2016 versions
if (browser.name === "Chrome" && browser.version >= 55) {
supported = true;
} else if (browser.name === "Firefox" && browser.version >= 50) {
supported = true;
} else if (browser.name === "Safari" && browser.version >= 10) {
supported = true;
} else if (browser.name === "Edge" && browser.version >= 16) {
supported = true;
} else if ((browser.name === "MSIE" || browser.name === "IE")) {
supported = false;
}
return supported;
}
if (isSupported) {
var appscript = document.createElement('script');
appscript.setAttribute('src', "./assets/js/main.js");
document.body.appendChild(appscript);
} else {
document.write('<div class="nosupport"><h1>Sorry, your web browser doesn't seem to be supported...</h1><h3>You can contact us at <a href="https://dataportal.brainminds.jp/contact-us">dataportal.brainminds.jp</a></h3><code>' + navigator.userAgent + '</code></div>');
}
</script>
<div id="root"></div>
</body>
</html>