From 07065e9597c7a3dae888a529dacdb0e24a9e7162 Mon Sep 17 00:00:00 2001 From: BenJarrett Date: Thu, 5 Jan 2023 14:27:33 -0600 Subject: [PATCH 1/8] test --- app/app.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/app.ts b/app/app.ts index e69de29b..dbc08640 100644 --- a/app/app.ts +++ b/app/app.ts @@ -0,0 +1,3 @@ +function startGame() { + // starting new game +} From b157c4291c2f4f123be7a1b743e15f36642acaea Mon Sep 17 00:00:00 2001 From: BenJarrett Date: Mon, 9 Jan 2023 08:54:46 -0600 Subject: [PATCH 2/8] Test --- app/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/app.ts b/app/app.ts index dbc08640..98abf435 100644 --- a/app/app.ts +++ b/app/app.ts @@ -1,3 +1,4 @@ function startGame() { // starting new game } + \ No newline at end of file From c692c738cd6d8d40a6f25f3cc0b011322dcaa402 Mon Sep 17 00:00:00 2001 From: BenJarrett Date: Mon, 9 Jan 2023 09:04:12 -0600 Subject: [PATCH 3/8] Commit --- app/app.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/app.ts b/app/app.ts index 98abf435..1355273d 100644 --- a/app/app.ts +++ b/app/app.ts @@ -1,4 +1,8 @@ function startGame() { // starting new game -} + var messagesElement = document.getElementById('messages'); +// reference to the messages div inside the index.html file // + messagesElement.innerText = 'Welcome to MultiMat! Starting a new game... '; +// Assigns a string to it's innerText property so that it will appear on the screen // + } \ No newline at end of file From dd8b94220aec84daf41103c5ed300b3a39e5d99f Mon Sep 17 00:00:00 2001 From: BenJarrett Date: Mon, 9 Jan 2023 09:12:13 -0600 Subject: [PATCH 4/8] lesson-2.5 --- app/app.js | 12 ++++++++++++ app/app.ts | 4 +++- index.html | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 app/app.js diff --git a/app/app.js b/app/app.js new file mode 100644 index 00000000..3613f905 --- /dev/null +++ b/app/app.js @@ -0,0 +1,12 @@ +function startGame() { + // starting new game + var messagesElement = document.getElementById('messages'); + // reference to the messages div inside the index.html file // + messagesElement.innerText = 'Welcome to MultiMat! Starting a new game... '; + // Assigns a string to it's innerText property so that it will appear on the screen // +} +document.getElementById('startGame').addEventListener('click', startGame); +// calls start game function when the start game button is clikced in the app // + + +// BEFORE WE CAN USE THIS NEW JS FILE IN THE APP WE NEED TO ADD A REFERENCE TO IT IN THE INDEX.HTML FILE // diff --git a/app/app.ts b/app/app.ts index 1355273d..dccc32bd 100644 --- a/app/app.ts +++ b/app/app.ts @@ -5,4 +5,6 @@ function startGame() { messagesElement.innerText = 'Welcome to MultiMat! Starting a new game... '; // Assigns a string to it's innerText property so that it will appear on the screen // } - \ No newline at end of file + + document.getElementById('startGame').addEventListener('click', startGame); + // calls start game function when the start game button is clikced in the app // diff --git a/index.html b/index.html index c6365185..e5223a2f 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@

No scores yet

- + From 31532ca7dfcffbe8d2429dfea3121968f7fcae24 Mon Sep 17 00:00:00 2001 From: BenJarrett Date: Mon, 9 Jan 2023 11:08:53 -0500 Subject: [PATCH 5/8] notes --- NOTES.MD | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 NOTES.MD diff --git a/NOTES.MD b/NOTES.MD new file mode 100644 index 00000000..470889ad --- /dev/null +++ b/NOTES.MD @@ -0,0 +1,6 @@ +TYPESCRIPT PROJECT FILES + +- Simple Json text file names tsconfig.json +- Stores compiler options used with the project +- specifies the files thats should be included or excluded in compilation +- Support configuration inheriteance - In a large project you can create a project file at the root of ur project that includes all of the default options you want to apply to the project. You can then create additional project files in difference folders inside the project that can selectively override or add to the option specified in the root projectf file From d097f0abb9e2b2ef166c3e76d5a0dff6814094fa Mon Sep 17 00:00:00 2001 From: BenJarrett Date: Mon, 9 Jan 2023 11:14:08 -0500 Subject: [PATCH 6/8] notes --- NOTES.MD | 6 ------ README.md | 10 ++++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) delete mode 100644 NOTES.MD diff --git a/NOTES.MD b/NOTES.MD deleted file mode 100644 index 470889ad..00000000 --- a/NOTES.MD +++ /dev/null @@ -1,6 +0,0 @@ -TYPESCRIPT PROJECT FILES - -- Simple Json text file names tsconfig.json -- Stores compiler options used with the project -- specifies the files thats should be included or excluded in compilation -- Support configuration inheriteance - In a large project you can create a project file at the root of ur project that includes all of the default options you want to apply to the project. You can then create additional project files in difference folders inside the project that can selectively override or add to the option specified in the root projectf file diff --git a/README.md b/README.md index 6f3da493..b8a82b88 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,13 @@ exists at the end of that module. I will update this repo below with any problems or small issues reported between updates to the actual course. Thanks for watching and good luck on your TypeScript projects! + + +// NOTES // + +TYPESCRIPT PROJECT FILES + +- Simple Json text file names tsconfig.json +- Stores compiler options used with the project +- specifies the files thats should be included or excluded in compilation +- Support configuration inheriteance - In a large project you can create a project file at the root of ur project that includes all of the default options you want to apply to the project. You can then create additional project files in difference folders inside the project that can selectively override or add to the option specified in the root projectf file From c7beb68717dc783f424236fea05dcc2b615ad20d Mon Sep 17 00:00:00 2001 From: BenJarrett Date: Mon, 9 Jan 2023 11:16:44 -0500 Subject: [PATCH 7/8] test --- notes.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 notes.md diff --git a/notes.md b/notes.md new file mode 100644 index 00000000..e69de29b From f8bd3302be906f5df6550aae53af1eae2d6c2646 Mon Sep 17 00:00:00 2001 From: BenJarrett Date: Mon, 9 Jan 2023 11:17:51 -0500 Subject: [PATCH 8/8] added seperate notes file --- README.md | 10 ---------- notes.md | 6 ++++++ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b8a82b88..6f3da493 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,3 @@ exists at the end of that module. I will update this repo below with any problems or small issues reported between updates to the actual course. Thanks for watching and good luck on your TypeScript projects! - - -// NOTES // - -TYPESCRIPT PROJECT FILES - -- Simple Json text file names tsconfig.json -- Stores compiler options used with the project -- specifies the files thats should be included or excluded in compilation -- Support configuration inheriteance - In a large project you can create a project file at the root of ur project that includes all of the default options you want to apply to the project. You can then create additional project files in difference folders inside the project that can selectively override or add to the option specified in the root projectf file diff --git a/notes.md b/notes.md index e69de29b..14e069e8 100644 --- a/notes.md +++ b/notes.md @@ -0,0 +1,6 @@ +// TYPESCRIPT PROJECT FILES // + +- Simple Json text file names tsconfig.json +- Stores compiler options used with the project +- specifies the files thats should be included or excluded in compilation +- Support configuration inheriteance - In a large project you can create a project file at the root of ur project that includes all of the default options you want to apply to the project. You can then create additional project files in difference folders inside the project that can selectively override or add to the option specified in the root projectf file