This commit is contained in:
Jonas Pfalzgraf 2022-08-16 15:25:45 +02:00
parent a85764891d
commit ab222a60e3
11 changed files with 129 additions and 53 deletions

View file

@ -1,3 +1,5 @@
import { Session } from "./classes/session.js"
class App {
private static contentEntry: string = "content"
@ -8,15 +10,19 @@ class App {
}
async main(): Promise<void> {
console.log("Hello World")
}
async drawData(): Promise<void> {
const session = Session.getInstance()
const contentRoot = <HTMLDivElement>document.getElementById(App.contentEntry)
const body = document.createElement("div")
const title = document.createElement("h1")
const text = document.createElement("p")
title.innerText = "Hello World"
text.innerText = session.contentTest
body.appendChild(title)
body.appendChild(text)
contentRoot.appendChild(body)
}
}