Skip to content

Commit

Permalink
add time to tooltips and remove sone console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
HuJK committed Dec 20, 2020
1 parent 915ece0 commit cd03671
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@

async function mainfunc() {
var color = Chart.helpers.color;
console.log(color)
// console.log(color)
var datareq = await fetch('backend/results-api.php');
console.log(datareq)
// console.log(datareq)
var dataraw = await datareq.text();
console.log(dataraw)
// console.log(dataraw)
try {
dataraw = JSON.parse(dataraw);
} catch {
Expand Down Expand Up @@ -113,6 +113,7 @@
Ping: displaydata["ping"],
Jitter: displaydata["jitter"],
IP: displaydata["ip"],
Time: displaydata["created"],
// ISP: displaydata["isp"],
};
let showtext = ""
Expand Down
1 change: 1 addition & 0 deletions chart_linear.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
Ping: displaydata["ping"],
Jitter: displaydata["jitter"],
IP: displaydata["ip"],
Time: displaydata["created"],
// ISP: displaydata["isp"],
};
let showtext = ""
Expand Down

0 comments on commit cd03671

Please sign in to comment.