1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

add tooltip timestamp to max concurrent players

This commit is contained in:
RaidMax
2021-09-14 18:12:20 -05:00
parent d4f505255c
commit 778bb34609
6 changed files with 49 additions and 18 deletions

View File

@ -95,6 +95,15 @@ $(document).ready(function () {
historyChart.render();
charts[serverId] = historyChart;
});
$('.moment-date').each((index, element) => {
const title = $(element).attr('title');
if (title !== undefined) {
const date = new Date(title);
$(element).attr('title', moment.utc(date).calendar());
}
});
});
setInterval(refreshClientActivity, 2000);