diff --git a/ISPChk/ispchk.db b/ISPChk/ispchk.db
index 9ebe7c8..f2c669f 100644
Binary files a/ISPChk/ispchk.db and b/ISPChk/ispchk.db differ
diff --git a/ISPChk/wwwroot/index.html b/ISPChk/wwwroot/index.html
index 717aec1..2a30908 100644
--- a/ISPChk/wwwroot/index.html
+++ b/ISPChk/wwwroot/index.html
@@ -12,32 +12,6 @@
-
-
- Hosts
-
-
-
- ID |
- Name |
- Hostname |
-
-
-
-
- 1 |
- Mark |
- Otto |
-
-
-
-
-
- Testlel
-
-
-
-
-
diff --git a/ISPChk/wwwroot/ispchk.js b/ISPChk/wwwroot/ispchk.js
index eafa15d..8171327 100644
--- a/ISPChk/wwwroot/ispchk.js
+++ b/ISPChk/wwwroot/ispchk.js
@@ -57,6 +57,32 @@ async function transformChartData(pings) {
return res;
}
+async function activateChart(id) {
+ var chartDiv = $("#chartContainer");
+ var chartId = "chart_" + id;
+ var charts = chartDiv.children("canvas");
+ for (let chart of charts) {
+ var thisId = $(chart).attr('id');
+ if (thisId == chartId) {
+ $(chart).show();
+ } else {
+ $(chart).hide();
+ }
+ console.log(chart);
+ }
+}
+
+async function prepareChart(host) {
+ var buttonDiv = $("#chartContainerButtons");
+ var chartDiv = $("#chartContainer");
+ var chartId = "chart_" + host.hostId;
+ var canvas = $("