diff options
-rw-r--r-- | Website/scripts/main.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Website/scripts/main.ts b/Website/scripts/main.ts index 10b4b40..f835604 100644 --- a/Website/scripts/main.ts +++ b/Website/scripts/main.ts @@ -1,10 +1,16 @@ class Article { + Container: HTMLElement; Title: HTMLElement; Description: string; ArticleLink: string; Image: HTMLElement; constructor(title: string, description: string, article_link: string, image_link: string) { + // object initialisation + this.Container = document.createElement('div'); + this.Title = document.createElement('h1'); + this.Image = new Image(); + let link = document.createElement('a'); } } |