diff --git a/stats-web/index.html b/stats-web/index.html index 4b2d2e3..cde16fd 100644 --- a/stats-web/index.html +++ b/stats-web/index.html @@ -93,14 +93,11 @@ function mkRow(c){var a="createElement",r=document[a]("tr");c.map(function(C){var A=document[a]("td");A.innerHTML=C;r.appendChild(A)});return r;} // Load from backend - var statHost = "https://stats.crunchy.rocks"; req([ - Qapi(statHost + "/stats"), - Qapi(statHost + "/users"), + Qapi("/stats"), + Qapi("/users"), Qready ], function(stats, users) { - console.log(stats); - var font = "'Source Sans Pro', sans-serif"; Chart.defaults.global.defaultFontFamily = font; Chart.defaults.global.legend.labels.fontFamily = font; @@ -150,7 +147,7 @@ var hourchart = new Chart(hourctx, { type: 'bar', data: { - labels: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24"], + labels: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"], datasets: [{ label: "Messaggi", fillColor: "rgba(151,187,205,0.5)",