From d3ddacbb5da3ebfcacf758ae3bbbf60fab75f3ab Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 18 Feb 2019 17:48:57 +0000 Subject: Made 4 variables for utility --- Website/scripts/main.ts | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'Website') 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
= [ - 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)); -- cgit v1.2.3-13-gbd6f