-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheditorws.html
51 lines (48 loc) · 1.55 KB
/
editorws.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<title>Marvin JS</title>
<script src="js/lib/promise-0.1.1.min.js"></script>
<script src="gui/gui.nocache.js"></script>
<script>
function getDefaultServicesPrefix() {
var servername = "";
var webapp = "/webservices2";
return servername + webapp;
}
function getDefaultServices() {
var base = getDefaultServicesPrefix();
var services = {
"clean2dws" : base + "/rest-v0/util/convert/clean",
"molconvertws" : base + "/rest-v0/util/calculate/molExport",
"stereoinfows" : base + "/rest-v0/util/calculate/cipStereoInfo",
"reactionconvertws" : base + "/rest-v0/util/calculate/reactionExport"
};
return services;
}
</script>
<script>
// called when marvin4js loaded
function sketchOnLoad() {
marvin.Sketch.license("./license/jj_marvin4js-license.cxl");
if(marvin.Sketch.isSupported()) {
marvin.sketcherInstance = new marvin.Sketch("sketch");
//marvin.sketcherInstance.setServices(getDefaultServices());
} else {
alert("Cannot initiate sketcher. Current browser may not support HTML canvas or may run in Compatibility Mode.");
}
}
</script>
</head>
<body>
<noscript>
<div>
<p>Your web browser must have JavaScript enabled in order for this
application to display correctly.</p>
</div>
</noscript>
<div id="sketch"></div>
</body>
</html>