basic structure

This commit is contained in:
Jonas Pfalzgraf 2022-08-15 15:46:39 +02:00
parent 455c62a936
commit 977831157f
22 changed files with 1363 additions and 1 deletions

24
src/app.ts Normal file
View file

@ -0,0 +1,24 @@
class App {
private static contentEntry: string = "content"
constructor() {
this.drawData()
this.main()
}
async main(): Promise<void> {
}
async drawData(): Promise<void> {
const contentRoot = <HTMLDivElement>document.getElementById(App.contentEntry)
const body = new HTMLDivElement()
const title = new HTMLHeadingElement()
title.innerText = "Hello World"
body.appendChild(title)
contentRoot.appendChild(body)
}
}
new App();