clientdashboard.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!doctype html>
  2. <html lang="en-us">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>CCLD Lidar</title>
  7. <link rel="stylesheet" type="text/css" href="/css/default.css" />
  8. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  9. <link rel="shortcut icon" href="daktylos.png" type="image/png" />
  10. <style>
  11. /* remove the border */
  12. body {
  13. margin: 0;
  14. padding: 0;
  15. background-color: black;
  16. }
  17. /* make the canvas the size of the viewport */
  18. canvas {
  19. width: 100vw;
  20. height: 100vh;
  21. display: block;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" position="absolute"></div>
  27. <script type="text/javascript" src="/weiss/weiss-preinit.js"></script>
  28. <script type="text/javascript" src="/weiss/UnityLoader.js"></script>
  29. <script type="text/javascript" src="/weiss/weiss-postinit.js"></script>
  30. <script type="text/javascript" src="/js/ajax.js"></script>
  31. <script type="text/javascript">
  32. function logout() {
  33. var promise = ajaxPost("/api/logout", {});
  34. promise.success = function(response) {
  35. window.location = "/";
  36. };
  37. promise.failure = function(response) {
  38. console.warn("Communication failure", response);
  39. }
  40. };
  41. </script>
  42. </body>
  43. </html>