aboutsummaryrefslogtreecommitdiff
path: root/hsm-web/Html/index.html
blob: 030e8e589b665aedc762933e6acb4d4af1e0d965 (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
<!DOCTYPE html>
<html>
  <head>
    <title>HsMouse Monitor</title>
    <meta charset="utf-8"/>
  </head>
  <body>
    <h2>HsMouse Monitor</h2>
    <img id="my_img"></img>
  </body>
  <script>
    function updateImg() {
      fetch("cam.png")
        .then(response => response.blob())
        .then(function(myBlob){
          URL.revokeObjectURL(my_img.src)
          my_img.src = URL.createObjectURL(myBlob)
          updateImg()
        })
    }
    updateImg()
  </script>
  <style>
    body, html {
      background-color: #002b36;
      color: #586e75;
      font-family: monospace;
    }
    img {
      outline: 2px solid #586e75;
      width: 100%;
    }
  </style>
</html>