update country flag api
This commit is contained in:
parent
f99fdac4b0
commit
825dd6f382
@ -99,7 +99,7 @@ $(document).ready(function () {
|
|||||||
$.get('https://ip2c.org/' + $(address).data('ip'), function (result) {
|
$.get('https://ip2c.org/' + $(address).data('ip'), function (result) {
|
||||||
const countryCode = result.split(';')[1].toLowerCase();
|
const countryCode = result.split(';')[1].toLowerCase();
|
||||||
if (countryCode !== 'zz') {
|
if (countryCode !== 'zz') {
|
||||||
$(address).css('background-image', `url(https://www.countryflags.io/${countryCode}/flat/64.png)`);
|
$(address).css('background-image', `url('https://flagcdn.com/w80/${countryCode}.png')`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
$('#ip_lookup_country').text(country);
|
$('#ip_lookup_country').text(country);
|
||||||
if (countryCode !== 'zz' && countryCode !== '') {
|
if (countryCode !== 'zz' && countryCode !== '') {
|
||||||
$(address).css('background-image', `url(https://www.countryflags.io/${countryCode}/flat/64.png)`);
|
$(address).css('background-image', `url('https://flagcdn.com/w80/${countryCode}.png')`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -34,7 +34,6 @@
|
|||||||
/* set the end time for initial event query */
|
/* set the end time for initial event query */
|
||||||
startAt = $('.loader-data-time').last().data('time');
|
startAt = $('.loader-data-time').last().data('time');
|
||||||
|
|
||||||
|
|
||||||
$('#filter_meta_container_button').click(function () {
|
$('#filter_meta_container_button').click(function () {
|
||||||
$('#filter_meta_container').hide();
|
$('#filter_meta_container').hide();
|
||||||
$('#filter_meta_container').removeClass('d-none');
|
$('#filter_meta_container').removeClass('d-none');
|
||||||
|
Loading…
Reference in New Issue
Block a user