wefra/lib/intl-tel-input-master/examples/js/modifyCountryData.js.ejs

12 lines
374 B
Plaintext

var countryData = window.intlTelInputGlobals.getCountryData(),
input = document.querySelector("#phone");
for (var i = 0; i < countryData.length; i++) {
var country = countryData[i];
country.name = country.name.replace(/.+\((.+)\)/,"$1");
}
window.intlTelInput(input, {
utilsScript: "../../build/js/utils.js?<%= time %>" // just for formatting/placeholders etc
});