1jQuery(document).ready(function(){ 2 jQuery(document).on( "updated_checkout", function(){ 3 if(bigdatacloud_key.key !== ''){ 4 if(navigator.geolocation){ 5 6 navigator.geolocation.getCurrentPosition(function(position) { 7 8 var latitude = position.coords.latitude; 9 var longitude = position.coords.longitude; 10 11 jQuery.ajax({ 12 url: myAjax.ajaxurl, 13 type : "POST", 14 data: { 15 'action':'my_action_geo_country', 16 'latitude':latitude, 17 'longitude':longitude, 18 '_wpnonce': myAjax.nonce, 19 }, 20 success:function(response) { 21 console.log(response); 22 } 23 24 }); 25 26 }, function(error) { 27 if (error.code == error.PERMISSION_DENIED) 28 jQuery.ajax({ 29 url: myAjax.ajaxurl, 30 type : "POST", 31 data: { 32 'action':'my_action_geo_country', 33 'latitude':'', 34 'longitude':'', 35 '_wpnonce': myAjax.nonce, 36 }, 37 success:function(response) { 38 console.log(response); 39 } 40 41 }); 42 }); 43 } 44 } 45 }); 46});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.