-
Notifications
You must be signed in to change notification settings - Fork 7
/
twirlymol.html
executable file
·26 lines (25 loc) · 1.25 KB
/
twirlymol.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
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js" type="text/javascript"></script>
<!-- <script type="text/javascript" src="dojo-release-1.3.3/dojo/dojo.js"></script> -->
<script src="twirlymol.js"></script>
<script src="250.js"></script>
<link rel="stylesheet" href="style.css"/></head>
<body><h1>TwirlyMol</h1>
<h2>A minimal molecular viewer</h2>
<p>Click and drag to rotate (left mouse button), zoom/twist (right button) or translate (middle button). The scroll wheel can also be used to zoom.</p>
<p>Developed by <a href="http://baoilleach.blogspot.com">Noel O'Boyle</a> (Github repository <a href="http://github.com/baoilleach/twirlymol">here</a>). To include a twirlymol in your own web page or blog post, please see this <a href="http://baoilleach.blogspot.com/2009/11/ann-chemical-structure-resolver-with.html">blog post</a> or the HTML and Javascript source of this webpage.</p>
<div id="bigmol" style="width:400px;height:400px;">
</div>
<script type="text/javascript">
function mysetup() {
var sdfs = sdf.split("$$$$\n");
var bigmol = dojo.byId("bigmol");
var mol = parseSD(sdfs[3]);
twirlyMol("bigmol", mol.atoms, mol.bonds, mol.elements);
}
dojo.addOnLoad( mysetup);
</script></p>
</body>
</html>