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

12 lines
376 B
JavaScript
Raw Normal View History

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?1541153396801" // just for formatting/placeholders etc
});