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:
@ -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);
|
||||
|
Reference in New Issue
Block a user