@@ -65,7 +73,8 @@
@@ -189,9 +198,38 @@ $(document).ready(function(){
}
});
});
+
+$(document).ready(function() {
+ var country_code = $('#country_code').val();
+ var input = document.querySelector("#mobile");
+ window.intlTelInput(input, {
+ // allowDropdown: false,
+ autoInsertDialCode: true,
+ // autoPlaceholder: "on",
+ dropdownContainer: document.body,
+ // excludeCountries: ["us"],
+ // formatOnDisplay: true,
+ // geoIpLookup: function(callback) {
+ // fetch("https://ipapi.co/json")
+ // .then(function(res) { return res.json(); })
+ // .then(function(data) { callback(data.country_code); })
+ // .catch(function() { callback("us"); });
+ // },
+ // hiddenInput: "full_number",
+ initialCountry: country_code || "ca",
+ // localizedCountries: { 'de': 'Deutschland' },
+ // nationalMode: false,
+ // onlyCountries: ['us', 'gb', 'ch', 'ca', 'do'],
+ // placeholderNumberType: "MOBILE",
+ // preferredCountries: ['cn', 'jp'],
+ //separateDialCode: true,
+ showFlags: true,
+ utilsScript: "= base_url()."/public/"; ?>assets/member_js/utils.js"
+ });
+ $('#mobile').inputmask('(999)-999-9999');
+});
-
\ No newline at end of file