xref: /aosp_15_r20/external/pigweed/pw_web/log-viewer/console.html (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1<!--
2Copyright 2024 The Pigweed Authors
3
4Licensed under the Apache License, Version 2.0 (the "License"); you may not
5use this file except in compliance with the License. You may obtain a copy of
6the License at
7
8    https://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13License for the specific language governing permissions and limitations under
14the License.
15-->
16
17<!doctype html>
18<html lang="en">
19    <head>
20        <meta charset="UTF-8" />
21        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
22        <link rel="stylesheet" href="./src/index.css" />
23        <link rel="stylesheet" href="./src/console.css" />
24        <style>
25          body {
26            margin: 0;
27            }
28
29          #console-container {
30            height: 100vh;
31          }
32
33          #logs-container, #repl-container {
34            overflow: hidden;
35          }
36        </style>
37        <title>Pigweed Console</title>
38        <link rel="icon" href="src/assets/favicon.svg" />
39        <script type="module" src="./src/console.ts"></script>
40        <script
41            type="module">
42            import {renderPWConsole} from "./src/console";
43            renderPWConsole(document.querySelector("#console-container"), "http://localhost:3000/ws")
44          </script>
45    </head>
46    <body>
47        <main id="console-container"></main>
48    </body>
49</html>
50