1jQuery(document).ready(function($) { 2 loadEnvios(); 3 4 // on submit... 5 $("#submitship").click(function() { 6 $("#errorShip").hide(); 7 8 var c_postal = $("input#envio_codpostal").val(); 9 var er_c_postal = /^[0-9]{4}$/; 10 if (!er_c_postal.test(c_postal)) { 11 $("#errorShip").fadeIn().text("Ingrese su código postal"); 12 $("input#envio_codpostal").focus(); 13 return false; 14 } 15 16 loadEnvios(); 17 }); 18 19 return false; 20}); 21 22 23function loadEnvios() { 24 //codigo postal 25 var c_postal = $("input#envio_codpostal").val(); 26 var er_c_postal = /^[0-9]{4}$/; 27 if (!er_c_postal.test(c_postal)) { 28 return false; 29 } 30 31 var cantproductos = $("input#cantproductos_envio").val(); 32 var total = $("input#total_envio").val(); 33 34 // ajax 35 var parametros = { "c_postal": c_postal, 'cantproductos': cantproductos, 'total': total }; 36 $.ajax({ 37 url: WEB_ROOT + '/ajax/calcular-envio.php', 38 data: parametros, 39 beforeSend: function(objeto) { 40 $("#result-envios").html('<div class="spinner-border text-primary" role="status"><span class="sr-only">Loading...</span></div>').fadeIn('slow'); 41 }, 42 success: function(data) { 43 $("#result-envios").html(data).fadeIn('slow'); 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.