From 4e85c8f9e32d556e0f8682f9ecbae1e4a8bf49e6 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 6 Apr 2017 17:23:10 +0200 Subject: support cruncher --- index.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'index.html') diff --git a/index.html b/index.html index e542138..f12c585 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,23 @@

+

+

+
+ + +
+
+ + +
+
+ + +
+ +
+

@@ -82,6 +99,18 @@ subscribe(resp.name); }); }); + + $("#crunch-form").submit((e) => { + e.preventDefault(); + let dimension_on = $("#crunch-on").val(), + data = {}; + data[$("#crunch-filter").val()] = $("#crunch-value").val(); + $.ajax("/api/stats/" + dimension_on + "/update", { + data: JSON.stringify(data), + contentType: "application/json", + type: "POST" + }); + }); -- cgit v1.3.1