<!DOCTYPE html>
<html>

  <head>

    <!-- d3.js dependency script -->
    <script  src="https://cdn.jsdelivr.net/npm/d3@5.9.2" defer></script>

    <!-- PDB Topology Viewer library script -->
    <script type="text/javascript" src="https://www.ebi.ac.uk/pdbe/pdb-component-library/js/pdb-topology-viewer-plugin-2.0.0.js" defer></script>
    
    <style>
      #topologyView{
        width:400px;
        height: 400px;
        position:relative;
      }
    </style>
  </head>

  <body>
    <h4>PDB Topology Viewer Plugin demo - Basic</h4>
    
    <!-- PDB Topology Viewer container -->
    <div id="topologyView"></div>
    
    <script>

      document.addEventListener('DOMContentLoaded', () => {

        //Create plugin instance
        const pluginInstance = new PdbTopologyViewerPlugin();

        //Get element from HTML/Template to place the view
        const viewContainer = document.getElementById('topologyView');

        const options = {
          entryId: '1cbs',
          entityId: '1'
        } 
    
        //Call render method to display the 2D view
        pluginInstance.render(viewContainer, options);

      });
      
    </script>
  </body>

</html>