From 4a06cbcc2c4ae4f84ce62b8ac63d82565174c700 Mon Sep 17 00:00:00 2001 From: thatcosmonaut Date: Tue, 24 Sep 2019 17:42:35 -0700 Subject: [PATCH] css and basic html setup --- app/page.ts | 7 ++++++- dist/assets/stylesheets/main.css | 11 +++++++++++ dist/index.html | 10 +++++++++- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 dist/assets/stylesheets/main.css diff --git a/app/page.ts b/app/page.ts index 807f601..7cc9ef8 100644 --- a/app/page.ts +++ b/app/page.ts @@ -1,5 +1,10 @@ export class Page { public Load() { - // do load here + const thing = document.getElementById('thing') as HTMLElement; + thing.innerHTML = '

mememememe

'; + + thing.onclick = (e) => { + thing.innerHTML = '

blahblahblah

'; + }; } } diff --git a/dist/assets/stylesheets/main.css b/dist/assets/stylesheets/main.css new file mode 100644 index 0000000..8bada34 --- /dev/null +++ b/dist/assets/stylesheets/main.css @@ -0,0 +1,11 @@ +.main { + display: block; + width: 50px; + color: blue; +} + +.sub { + display: block; + width: 100px; + color: red; +} diff --git a/dist/index.html b/dist/index.html index 4931730..d3c1c2c 100644 --- a/dist/index.html +++ b/dist/index.html @@ -7,6 +7,14 @@ - +
+

Hello hello hello hello hello

+
+ +
+

Hi hihihihihihi

+
+ +