aboutsummaryrefslogtreecommitdiff
path: root/Website
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-18 17:03:40 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-18 17:03:40 +0000
commitf7dc011453eab0c82e909def0621d06562aabaa8 (patch)
tree32421a6ff6aa8af991cc69d581c5be49d9104454 /Website
parentab7df78d8e8f0ce6fe734cd9ce6159d5e5ea11fa (diff)
downloadnewsaggregator-f7dc011453eab0c82e909def0621d06562aabaa8.tar.gz
newsaggregator-f7dc011453eab0c82e909def0621d06562aabaa8.tar.bz2
newsaggregator-f7dc011453eab0c82e909def0621d06562aabaa8.zip
Added container for entire article, and started development of container
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 10b4b40..f835604 100644
--- a/Website/scripts/main.ts
+++ b/Website/scripts/main.ts
@@ -1,10 +1,16 @@
class Article {
+ Container: HTMLElement;
Title: HTMLElement;
Description: string;
ArticleLink: string;
Image: HTMLElement;
constructor(title: string, description: string, article_link: string, image_link: string) {
+ // object initialisation
+ this.Container = document.createElement('div');
+ this.Title = document.createElement('h1');
+ this.Image = new Image();
+ let link = document.createElement('a');
}
}