diff options
author | Paul Oliver <contact@pauloliver.dev> | 2025-08-27 17:47:28 +0000 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2025-09-03 21:14:26 +0000 |
commit | 56bd071335151fccac2ab0846c6063292e891479 (patch) | |
tree | 36beb23fe50537f977ae31cde075046697689de6 /hsm-web/Html | |
parent | f4e1e137917c908d7bb95f0dfb320a5a2a89ec9d (diff) |
Adds `hsm-web`
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> |