aboutsummaryrefslogtreecommitdiff
path: root/Website/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'Website/scripts')
-rw-r--r--Website/scripts/main.ts20
1 files changed, 13 insertions, 7 deletions
diff --git a/Website/scripts/main.ts b/Website/scripts/main.ts
index 62a25f9..7fce053 100644
--- a/Website/scripts/main.ts
+++ b/Website/scripts/main.ts
@@ -30,14 +30,20 @@ class Article {
}
let root = document.getElementById('root');
+
+let title = "Title";
+let description = "Description";
+let article = "https://www.wikipedia.org/";
+let image = "https://wallpapertag.com/wallpaper/full/4/d/9/836367-vertical-plain-blue-screen-wallpaper-1920x1080-1920x1080-windows-7.jpg";
+
let articles: Array<Article> = [
- new Article('title1', 'description1', 'article1', 'image1'),
- new Article('title2', 'description2', 'article2', 'image2'),
- new Article('title3', 'description3', 'article3', 'image3'),
- new Article('title1', 'description1', 'article1', 'image1'),
- new Article('title2', 'description2', 'article2', 'image2'),
- new Article('title1', 'description1', 'article1', 'image1'),
- new Article('title2', 'description2', 'article2', 'image2')
+ new Article(title, description, article, image),
+ new Article(title, description, article, image),
+ new Article(title, description, article, image),
+ new Article(title, description, article, image),
+ new Article(title, description, article, image),
+ new Article(title, description, article, image),
+ new Article(title, description, article, image)
];
articles.forEach(article => article.visualise(root));