aboutsummaryrefslogtreecommitdiff
path: root/tools/viz/index.html
blob: b146b5d3e67554797b09bf2e5840063eee65ff5c (plain)
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

<html>
  <head>
    <script
      src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
      integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E="
      crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/90/three.min.js"></script>
    <script src="./lib/OrbitControls.js"></script>
    <script src="survive_viewer.js"></script>
  </head>
  <body>
    <div id="ThreeJS" style="z-index: 1; position: absolute; left:0px; top:0px"></div>
    <div id="cam-control" style="z-index: 2;border:1px solid white;position:absolute">
      <button id="toggleBtn">
        Toggle 2D View
      </button>
      <div id="cam" style="display:none">
        <canvas width=800 height=800 id="camcanvas"></canvas>
      </div>
    </div>
    <div id="console" style="width: 500px;
    height: 200px;
    border: 1px solid white;
    position: absolute;
    bottom: 20px;
    overflow: auto;
    background-color: rgba(0,200,200, .25);
    z-index: 3;">

    </div>
  </body>
</html>