You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

remote.html 772B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Mediator - Remote</title>
  6. <link rel="stylesheet" href="style.css">
  7. <link rel="icon" type="image/png" href="favicon.png">
  8. <style>
  9. body {
  10. margin: 0px;
  11. }
  12. #screencast-container {
  13. max-height: calc(100% - 200px);
  14. height: 100%;
  15. text-align: center;
  16. }
  17. #screencast-container {
  18. background: black;
  19. }
  20. #screencast {
  21. max-height: calc(100vh - 200px);
  22. max-width: 100%;
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <div id="screencast-container">
  28. <img id="screencast" src="/api/remote/screencast">
  29. </div>
  30. <script src="util.js"></script>
  31. <script>
  32. async function main() {
  33. let screenSize = api("GET", "remote/screen-size");
  34. let mousePos = api("GET", "remote/mouse-pos");
  35. }
  36. main();
  37. </script>
  38. </body>
  39. </html>