summaryrefslogtreecommitdiff
path: root/src/display.html
blob: 8dbec8edd8e557b011f006df25717a987d5a0f19 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
  <head>
    <title>Clicks Display</title>
    <style type="text/css">
      html,
      body {
        height: 100%;
        margin: 0;
      }

      #container {
        display: flex;
        flex-flow: column;
        height: 100%;
      }

      #banner {
        flex: 0 1 auto;
        border-bottom: 1px solid black;
        padding: 0.3em;
      }

      #status {
        margin: 1em;
      }

      #frame_container {
        flex: 1 1 auto;
      }

      #frame {
        width: 100%;
        height: 100%;
        border: 0px;
      }

      #heatmap {
        position: relative;
        top: -100%;
        left: 0px;
        width: 100%;
        height: 100%;
        pointer-events: none;
      }
    </style>
    <script type="text/javascript" src="../build/clicks_display.min.js"></script>
  </head>
  <body>
    <div id="container">
      <div id="banner">   
        <span id="status">No file loaded</span>
        <input type="file" name="file" id="file" accept=".json, application/json">
        <select id="url"></select>
      </div>
      <div id="frame_container">
        <iframe id="frame"></iframe>
        <div id="heatmap"></div>
      </div>
    </div>
  </body>
</html>