1$(function() { 2 3 jQuery.validator.addMethod("telephoneFR", function(value, element) { 4 return this.optional(element) || /^(01|02|03|04|05|06|07|08|09)[0-9]{8}$/.test(value); 5 }, 'Veuillez fournir un numéro de téléphone valide.'); 6 7 $("#form").validate({ 8 ignore: ".ignore", 9 submitHandler: function(form) { 10 11 $(".btn-spinner").attr('disabled', 'disabled'); 12 $(".btn-spinner").prepend('<span class="spinner-border" role="status" aria-hidden="true" style="width:1.5rem; height:1.5rem"></span> '); 13 14 $.ajax({ 15 type: "POST", 16 url: "https://www.iafastro.org/assetz/php/json.json?snippet=contact", 17 async: false, 18 data: $("#form").serialize(), 19 dataType : 'json', 20 success: function(d){ 21 //document.location=$("#form").attr('action'); 22 console.log ("envoyé"); 23 $('#modal_contact-fin').modal('show'); 24 $(".btn-spinner").hide(); 25 $("#modal_fin").modal("show"); 26 } 27 }); 28 }, 29 rules: { 30 hiddenRecaptcha: { 31 required: function () { 32 if (grecaptcha.getResponse() == '') { 33 return true; 34 } else { 35 return false; 36 } 37 } 38 } 39 }, 40 errorPlacement: function(error, element) { 41 var errorClass = ".form-group"; 42 43 if(element.closest(errorClass).length) { 44 error.appendTo(element.closest(errorClass)); 45 } else { 46 error.appendTo(element.parent()); 47 } 48 } 49 50 51 52 }); 53 54 55 56 57});
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.