master
parent
15035b7b37
commit
4d5e51c89a
|
@ -325,7 +325,9 @@
|
||||||
$(window).on('load', google.maps.event, initialize);
|
$(window).on('load', google.maps.event, initialize);
|
||||||
let input = document.querySelector("#ctelefon");
|
let input = document.querySelector("#ctelefon");
|
||||||
let iti = window.intlTelInput(input, {
|
let iti = window.intlTelInput(input, {
|
||||||
initialCountry: "de", geoIpLookup: function(callback) {
|
initialCountry: "de",
|
||||||
|
preferredCountries: ["de"],
|
||||||
|
geoIpLookup: function(callback) {
|
||||||
$.get('https://ipinfo.io', function() {}, "jsonp").always(function(resp) {
|
$.get('https://ipinfo.io', function() {}, "jsonp").always(function(resp) {
|
||||||
let countryCode = (resp && resp.country)?resp.country:"us";
|
let countryCode = (resp && resp.country)?resp.country:"us";
|
||||||
callback(countryCode);
|
callback(countryCode);
|
||||||
|
@ -333,6 +335,7 @@
|
||||||
},
|
},
|
||||||
utilsScript: "{{storage('assets/libs/intl-tel-input/js/utils.min.js')}}",
|
utilsScript: "{{storage('assets/libs/intl-tel-input/js/utils.min.js')}}",
|
||||||
});
|
});
|
||||||
|
// iti.getNumber();
|
||||||
|
|
||||||
function updateProducts(){}
|
function updateProducts(){}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue