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

changes and vpn checking

This commit is contained in:
RaidMax
2018-03-09 02:01:12 -06:00
parent 2f81d0e764
commit df3bd05f87
42 changed files with 362 additions and 1209 deletions

View File

@ -49,6 +49,19 @@ $(document).ready(function () {
}
});
/*
get ip geolocation info into modal
*/
$('.ip-locate-link').click(function (e) {
$.getJSON("http://ip-api.com/json/" + $(this).data("ip"))
.done(function (response) {
$('.modal-title').text($(this).data("ip"));
$('.modal-body').text(JSON.stringify(response, null, 4));
$('#mainModal').modal();
});
});
});
function penaltyToName(penaltyName) {