From aaa39b95ee7d42c57033e81a21be76bb3cdfa515 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 3 Jun 2016 16:42:35 +0000 Subject: [PATCH] Add twatch chalice configuration --- misc/twatch-config/chalice.html | 40 +++++++++++++++++++++++++++++++++ misc/twatch-config/twatch.js | 5 +++-- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 misc/twatch-config/chalice.html diff --git a/misc/twatch-config/chalice.html b/misc/twatch-config/chalice.html new file mode 100644 index 0000000..747d610 --- /dev/null +++ b/misc/twatch-config/chalice.html @@ -0,0 +1,40 @@ + + + + + + + + + + + +
+
+
Appearance
+ +
+ +
+ +
+ +
+ +
+
+ +
+
+ + + diff --git a/misc/twatch-config/twatch.js b/misc/twatch-config/twatch.js index cf08bc3..462b842 100644 --- a/misc/twatch-config/twatch.js +++ b/misc/twatch-config/twatch.js @@ -25,16 +25,17 @@ function submit() { var t = input.type; var v; - console.log(k, t, v); if (t == "checkbox") { v = input.checked; } else if (t == "text") { v = Number(input.value); } else if (t == "select-one") { - v = input.value; + v = Number(input.value); } else { + console.log("Unknown type: " + t); continue; } + console.log(k, t, v); localStorage[k] = v; options[k] = v;