-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
60 lines (54 loc) · 1.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script type="text/javascript">
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
var orcid_auth = getQueryVariable("code");
if (orcid_auth) {
var orcid = document.createElement('meta');
orcid.name = "scope-orcid";
orcid.setAttribute("auth", orcid_auth);
document.getElementsByTagName('head')[0].appendChild(orcid);
}
if (getQueryVariable("WSport")) {
var meta = document.createElement('meta');
meta.name = "scope-wsport";
meta.setAttribute("port", getQueryVariable("WSport"))
document.getElementsByTagName('head')[0].appendChild(meta);
}
if (getQueryVariable("XHRport")) {
var meta = document.createElement('meta');
meta.name = "scope-xhrport";
meta.setAttribute("port", getQueryVariable("XHRport"))
document.getElementsByTagName('head')[0].appendChild(meta);
}
if (getQueryVariable("RPCport")) {
var meta = document.createElement('meta');
meta.name = "scope-rpcport";
meta.setAttribute("port", getQueryVariable("RPCport"))
document.getElementsByTagName('head')[0].appendChild(meta);
}
</script>
<title>SCope</title>
<style type="text/css">
body {
overflow:hidden;
}
</style>
</head>
<body>
<div id="scope"></div>
<script id='scope_js' src="./assets/SCope-1.8.2.9a5280f.js"></script>
</body>
</html>