aboutsummaryrefslogtreecommitdiff
path: root/Website/scripts/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'Website/scripts/main.ts')
-rw-r--r--Website/scripts/main.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/Website/scripts/main.ts b/Website/scripts/main.ts
index d9c84a4..9f8862b 100644
--- a/Website/scripts/main.ts
+++ b/Website/scripts/main.ts
@@ -1,8 +1,6 @@
class Article {
Container: HTMLElement;
Title: HTMLElement;
- Description: string;
- ArticleLink: string;
Image: HTMLElement;
constructor(title: string, description: string, article_link: string, image_link: string) {
@@ -17,6 +15,11 @@ class Article {
link.setAttribute('href', article_link);
this.Image.setAttribute('src', image_link);
this.Image.setAttribute('title', description);
+
+ // make unit
+ this.Title.appendChild(link);
+ this.Container.appendChild(this.Title);
+ this.Container.appendChild(this.Image);
}
}