From f7dc011453eab0c82e909def0621d06562aabaa8 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 18 Feb 2019 17:03:40 +0000 Subject: Added container for entire article, and started development of container --- Website/scripts/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Website') 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'); } } -- cgit v1.2.3-13-gbd6f