15 lines
473 B
TypeScript
15 lines
473 B
TypeScript
import { PresentationManager } from "./presentationmgr";
|
|
import { PythagorasClient } from "./pythagoras_client";
|
|
|
|
async function main(): Promise<void> {
|
|
const ws_client = new PythagorasClient("/ws");
|
|
document.body.innerHTML = "";
|
|
const presentation_manager = new PresentationManager();
|
|
document.body.appendChild(presentation_manager.dom);
|
|
await presentation_manager.serve(ws_client);
|
|
}
|
|
|
|
(<HTMLButtonElement>document.querySelector("#run")).onclick = () => {
|
|
main();
|
|
}
|