diff options
Diffstat (limited to 'hsm-web/Html')
| -rw-r--r-- | hsm-web/Html/index.html | 34 | 
1 files changed, 34 insertions, 0 deletions
diff --git a/hsm-web/Html/index.html b/hsm-web/Html/index.html new file mode 100644 index 0000000..030e8e5 --- /dev/null +++ b/hsm-web/Html/index.html @@ -0,0 +1,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>  | 
