123456789101112131415161718192021222324252627 |
- <html lang="en">
- <head>
- <script src="../dist/rcsb-saguaro-3d.js" type="text/javascript"></script>
- <title>Saguaro 3D</title>
- </head>
- <body>
- <div id="pfv" style="margin-top: 200px;" ></div>
- <script type="text/javascript">
- function getJsonFromUrl(url) {
- if(!url) url = location.search;
- var query = url.substr(1);
- var result = {};
- query.split("&").forEach(function(part) {
- var item = part.split("=");
- result[item[0]] = decodeURIComponent(item[1]);
- });
- return result;
- }
- const args = getJsonFromUrl();
- const fv = new RcsbFv3D.Create("pfv", args.entryId);
- fv.render();
- </script>
- </body>
- </html>
|