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

10 lines
277 B
Plaintext

var input = document.querySelector("#phone");
var statusElement = document.querySelector("#status");
var iti = window.intlTelInput(input, {
utilsScript: "../../build/js/utils.js?<%= time %>",
});
iti.promise.then(function() {
statusElement.innerHTML = "Initialised!";
});