v 1.3.0 - i18n
This commit is contained in:
@ -2,7 +2,7 @@ $(document).ready(function () {
|
||||
$('#banlist').dataTable({
|
||||
"order": [],
|
||||
"language": {
|
||||
"url": "//cdn.datatables.net/plug-ins/1.10.12/i18n/Polish.json"
|
||||
"url": datatablesUrl
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -5,6 +5,6 @@ $(function () {
|
||||
$('.news-body').readmore({
|
||||
speed: 500,
|
||||
collapsedHeight: 300,
|
||||
moreLink: '<button type="button" class="btn btn-dark">Pokaż wiecej</button>',
|
||||
lessLink: '<button type="button" class="btn btn-dark">Pokaż mniej</button>'
|
||||
moreLink: '<button type="button" class="btn btn-dark"><i class="fa fa-plus-circle" aria-hidden="true"></i> ' + textShowMore + '</button>',
|
||||
lessLink: '<button type="button" class="btn btn-dark"><i class="fa fa-minus-circle" aria-hidden="true"></i> ' + textShowLess + '</button>'
|
||||
});
|
||||
|
14
js/status.js
14
js/status.js
@ -28,19 +28,19 @@ function checkStatus() {
|
||||
var averagePing = Math.round(json.averagePing * 100) / 100;
|
||||
|
||||
result =
|
||||
'<p><i class="fa fa-power-off" aria-hidden="true"></i> Online: <span class="label label-success">' + clientsonline + ' / ' + maxclients + ' (' + clientsprecent + '%)</span></p>' +
|
||||
'<p><i class="fa fa-clock-o" aria-hidden="true"></i> Uptime: <span class="label label-success">' + uptime + '</span></p>' +
|
||||
'<p><i class="fa fa-info-circle" aria-hidden="true"></i> Wersja: <span class="label label-success">' + version + ' @ ' + platform + '</span></p>' +
|
||||
'<p><i class="fa fa-signal" aria-hidden="true"></i> Średni ping: <span class="label label-success">' + averagePing + ' ms</span></p>' +
|
||||
'<p><i class="fa fa-bolt" aria-hidden="true"></i> Średni packet loss: <span class="label label-success">' + averagePacketloss + '%</span></p>';
|
||||
'<p><i class="fa fa-power-off" aria-hidden="true"></i> ' + statusOnline + ': <span class="label label-success">' + clientsonline + ' / ' + maxclients + ' (' + clientsprecent + '%)</span></p>' +
|
||||
'<p><i class="fa fa-clock-o" aria-hidden="true"></i> ' + statusUptime + ': <span class="label label-success">' + uptime + '</span></p>' +
|
||||
'<p><i class="fa fa-info-circle" aria-hidden="true"></i> ' + statusVersion + ': <span class="label label-success">' + version + ' @ ' + platform + '</span></p>' +
|
||||
'<p><i class="fa fa-signal" aria-hidden="true"></i> ' + statusAvgping + ': <span class="label label-success">' + averagePing + ' ms</span></p>' +
|
||||
'<p><i class="fa fa-bolt" aria-hidden="true"></i> ' + statusAvgpl + ': <span class="label label-success">' + averagePacketloss + '%</span></p>';
|
||||
} else {
|
||||
result = '<p><i class="fa fa-power-off" aria-hidden="true"></i> Online: <span class="label label-danger">Offline</span></p>';
|
||||
result = '<p><i class="fa fa-power-off" aria-hidden="true"></i> Online: <span class="label label-danger">' + statusOffline + '</span></p>';
|
||||
}
|
||||
|
||||
$("#serverstatus").html(result);
|
||||
},
|
||||
error: function (result) {
|
||||
$("#serverstatus").html('<p><i class="fa fa-power-off" aria-hidden="true"></i> Online: <span class="label label-danger">ERROR</span></p>');
|
||||
$("#serverstatus").html('<p><i class="fa fa-power-off" aria-hidden="true"></i> ' + statusOnline + ': <span class="label label-danger">ERROR</span></p>');
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user