<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
    <title>IE viewer</title>
    <link rel="stylesheet" href="{{ url_for('ie-visualiser.static', filename='css/viewer.css') }}" type="text/css" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  </head>
  <body>
    <div id="info"></div>
    <canvas id="c">
      <!-- Model is rendered here -->
    </canvas>
    <script type="importmap">
      {
          "imports":{
              "three": "https://unpkg.com/three@0.159.0/build/three.module.js",
              "three/addons/": "https://unpkg.com/three@0.159.0/examples/jsm/"
          }
      }
    </script>
    <script type="module">
      import { loadFile } from "{{ url_for('ie-visualiser.static', filename='js/loader.js') }}";
      loadFile("{{ url_for('ie-visualiser.view_model', id=id) }}");
    </script>
  </body>
</html>