aboutsummaryrefslogtreecommitdiff
path: root/Website
diff options
context:
space:
mode:
Diffstat (limited to 'Website')
-rw-r--r--Website/scripts/main.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/Website/scripts/main.ts b/Website/scripts/main.ts
index f835604..d9c84a4 100644
--- a/Website/scripts/main.ts
+++ b/Website/scripts/main.ts
@@ -11,6 +11,12 @@ class Article {
this.Title = document.createElement('h1');
this.Image = new Image();
let link = document.createElement('a');
+
+ // attributes
+ link.innerText = title;
+ link.setAttribute('href', article_link);
+ this.Image.setAttribute('src', image_link);
+ this.Image.setAttribute('title', description);
}
}