blob: f835604bd325c4dbcd9a11b955a8533ad29474a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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');
}
}
let root = document.getElementById('root');
|