From: Scott Worley Date: Wed, 26 Jan 2022 20:50:10 +0000 (-0800) Subject: Put tasks in a div X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/4546c7b76e0168ef69cf9d046bfdac7fadac5f9d?hp=412e36630caf4f0133959e1641d8a85ba8f5fcc6 Put tasks in a div --- 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) {