| <!-- |
| Copyright 2024 The Pigweed Authors |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| use this file except in compliance with the License. You may obtain a copy of |
| the License at |
| |
| https://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| License for the specific language governing permissions and limitations under |
| the License. |
| --> |
| |
| <!doctype html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8" /> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| <link rel="stylesheet" href="./src/index.css" /> |
| <link rel="stylesheet" href="./src/console.css" /> |
| <style> |
| body { |
| margin: 0; |
| } |
| |
| #console-container { |
| height: 100vh; |
| } |
| |
| #logs-container, #repl-container { |
| overflow: hidden; |
| } |
| </style> |
| <title>Pigweed Console</title> |
| <link rel="icon" href="src/assets/favicon.svg" /> |
| <script type="module" src="./src/console.ts"></script> |
| <script |
| type="module"> |
| import {renderPWConsole} from "./src/console"; |
| renderPWConsole(document.querySelector("#console-container"), "http://localhost:3000/ws") |
| </script> |
| </head> |
| <body> |
| <main id="console-container"></main> |
| </body> |
| </html> |