diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-18 17:48:57 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-18 17:48:57 +0000 |
commit | d3ddacbb5da3ebfcacf758ae3bbbf60fab75f3ab (patch) | |
tree | 888aa6ec11b361cc76a508c6a9afd83355b67e53 | |
parent | c6092e7ec358940ca411941fb46fbb5ae0f48449 (diff) | |
download | newsaggregator-d3ddacbb5da3ebfcacf758ae3bbbf60fab75f3ab.tar.gz newsaggregator-d3ddacbb5da3ebfcacf758ae3bbbf60fab75f3ab.tar.bz2 newsaggregator-d3ddacbb5da3ebfcacf758ae3bbbf60fab75f3ab.zip |
Made 4 variables for utility
-rw-r--r-- | Website/scripts/main.ts | 20 |
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)); |