master
			
			
		
		
							parent
							
								
									15035b7b37
								
							
						
					
					
						commit
						4d5e51c89a
					
				| 
						 | 
				
			
			@ -325,7 +325,9 @@
 | 
			
		|||
    $(window).on('load', google.maps.event, initialize);
 | 
			
		||||
    let input = document.querySelector("#ctelefon");
 | 
			
		||||
    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) {
 | 
			
		||||
                let countryCode = (resp && resp.country)?resp.country:"us";
 | 
			
		||||
                callback(countryCode);
 | 
			
		||||
| 
						 | 
				
			
			@ -333,6 +335,7 @@
 | 
			
		|||
        },
 | 
			
		||||
        utilsScript: "{{storage('assets/libs/intl-tel-input/js/utils.min.js')}}",
 | 
			
		||||
    });
 | 
			
		||||
    // iti.getNumber();
 | 
			
		||||
 | 
			
		||||
    function updateProducts(){}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue