From: Scott Worley Date: Tue, 25 Jan 2022 10:08:21 +0000 (-0800) Subject: Start X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/974848d36d6c4f1b171bd990f3d5659cb0e8134d?ds=inline Start --- 974848d36d6c4f1b171bd990f3d5659cb0e8134d diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba4cead --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +vopamoi.js diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..46292dc --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +objs = vopamoi.js + +all: $(objs) + +.PHONY: all clean + +%.js: %.ts + tsc --strict $< + +clean: + -rm $(objs) diff --git a/index.html b/index.html new file mode 100644 index 0000000..5721f96 --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + + + + + +
+ +
+ + diff --git a/vopamoi.ts b/vopamoi.ts new file mode 100644 index 0000000..cb2d50e --- /dev/null +++ b/vopamoi.ts @@ -0,0 +1,11 @@ +var tasks = []; + +function addTask(task: string) { + tasks.push(task); +} + +function browserCreateTask(form: any) { + addTask(form.taskName.value); + form.taskName.value = ""; + return false; +}