-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
41 lines (29 loc) · 995 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<!-- d3.js dependency script -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<!-- PDB Residue Interactions JS -->
<script type="text/javascript" src="build/pdb-residue-interactions-plugin.js"></script>
<style>
#pdb-residue-interactions {
position: relative;
width: 300px;
height: 315px;
}
</style>
</head>
<body>
<h4>PDB Residue Interactions Plugin Demo</h4>
<!-- PDB Residue Interactions container -->
<div id="pdb-residue-interactions"></div>
<script>
//Create plugin instance
var pluginInstance = new PdbResidueInteractionsPlugin();
//Get element from HTML/Template to place the view
var viewContainer = document.getElementById('pdb-residue-interactions');
//Call render method to display the 3D view
pluginInstance.render(viewContainer, '1cbs');
</script>
</body>
</html>