Remove debug stuff

This commit is contained in:
Hamcha 2016-02-11 15:33:58 +00:00
parent 21b361da3a
commit e036d969ca

View file

@ -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;} 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 // Load from backend
var statHost = "https://stats.crunchy.rocks";
req([ req([
Qapi(statHost + "/stats"), Qapi("/stats"),
Qapi(statHost + "/users"), Qapi("/users"),
Qready Qready
], function(stats, users) { ], function(stats, users) {
console.log(stats);
var font = "'Source Sans Pro', sans-serif"; var font = "'Source Sans Pro', sans-serif";
Chart.defaults.global.defaultFontFamily = font; Chart.defaults.global.defaultFontFamily = font;
Chart.defaults.global.legend.labels.fontFamily = font; Chart.defaults.global.legend.labels.fontFamily = font;
@ -150,7 +147,7 @@
var hourchart = new Chart(hourctx, { var hourchart = new Chart(hourctx, {
type: 'bar', type: 'bar',
data: { 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: [{ datasets: [{
label: "Messaggi", label: "Messaggi",
fillColor: "rgba(151,187,205,0.5)", fillColor: "rgba(151,187,205,0.5)",