-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomponent-demo.html
35 lines (31 loc) · 1.48 KB
/
component-demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>PDB Residue Interactions Web-component Demo</title>
<!-- Required for IE11 -->
<script src="https://cdn.jsdelivr.net/npm/babel-polyfill/dist/polyfill.min.js"></script>
<!-- Web component polyfill (only loads what it needs) -->
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-lite.js" charset="utf-8"></script>
<!-- Required to polyfill modern browsers as code is ES5 for IE... -->
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js" charset="utf-8"></script>
<!-- d3.js dependency script -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<!-- PDB Residue Interactions Web-component JS -->
<script type="text/javascript" src="build/pdb-residue-interactions-component-2.0.0.js"></script>
<style>
#pdb-component {
position: relative;
width: 300px;
height: 315px;
}
</style>
</head>
<body>
<h4>PDB Residue Interactions Web-component Demo</h4>
<div id="pdb-component">
<pdb-residue-interactions pdb-id="1cbs" chain-id="A"></pdb-residue-interactions>
</div>
</body>
</html>