From 4546c7b76e0168ef69cf9d046bfdac7fadac5f9d Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 26 Jan 2022 12:50:10 -0800 Subject: [PATCH 1/1] Put tasks in a div --- index.html | 1 + vopamoi.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 2a82c98..91908e3 100644 --- a/index.html +++ b/index.html @@ -7,5 +7,6 @@
+
diff --git a/vopamoi.ts b/vopamoi.ts index ad1051a..725f3a0 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -15,7 +15,7 @@ function splitN(str: string, delimiter: string, limit: number = MAX_SAFE_INTEGER const Model = { addTask: function (timestamp: string, description: string) { - document.body.appendChild(this.createTask(timestamp, description)).focus(); + document.getElementById("tasks")!.appendChild(this.createTask(timestamp, description)).focus(); }, createTask: function (timestamp: string, description: string) { -- 2.44.1