diff --git a/WebfrontCore/Views/Server/_Server.cshtml b/WebfrontCore/Views/Server/_Server.cshtml index 3a6688302..e266fd0ff 100644 --- a/WebfrontCore/Views/Server/_Server.cshtml +++ b/WebfrontCore/Views/Server/_Server.cshtml @@ -73,7 +73,7 @@
-
diff --git a/WebfrontCore/wwwroot/js/server.js b/WebfrontCore/wwwroot/js/server.js index 3fdc9de24..cf8653ecd 100644 --- a/WebfrontCore/wwwroot/js/server.js +++ b/WebfrontCore/wwwroot/js/server.js @@ -105,16 +105,13 @@ function getPlayerHistoryChart(playerHistory, i, width, maxClients) { options: { responsive: true, maintainAspectRatio: false, - onResize: function(chart, size) { - console.log(size); - }, legend: false, defaultFontFamily: '-apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', tooltips: { callbacks: { // todo: localization at some point + title: context => moment(context[0].label).local().calendar(), label: context => context.datasetIndex !== 1 ? `${context.value} players on ${playerHistory[context.index].mapAlias}` : context.value === '0' ? '' : 'Server Unreachable!', - title: context => context[0].datasetIndex !== 1 ? moment(context[0].label).local().calendar() : '' }, mode: 'nearest', intersect: false,