1$(function() { 2 $( "#dialog-messageerr" ).dialog({ 3 autoOpen: false, 4 resizable: false, 5 height: "auto", 6 width: 400, 7 modal: true, 8 buttons: { 9 Ok: function() { 10 $( this ).dialog( "close" ); 11 } 12 } 13 }); 14 15}); 16 17 18function IsValidEmail(email) 19{ 20 var filter = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; 21 return filter.test(email); 22} 23 24function validercontact(){ 25 var msgerr=''; 26 27 // email 28 var adremail=document.getElementById("emailde").value; 29 if(adremail==''){ 30 msgerr+='- Adresse email obligatoire<br>'; 31 } 32 else { 33 if(!IsValidEmail(adremail)) msgerr='- Adresse mail incorrecte<br>'; 34 } 35 36 if ($.trim(document.getElementById("nomform").value)=='') msgerr+='- Nom obligatoire.<br>'; 37 38 if ($.trim(document.getElementById("corps").value)=='') msgerr+='- Message obligatoire.<br>'; 39 40 if ($.trim(document.getElementById("encbots").value)==''){ 41 msgerr+='- Vous n\'avez pas saisi le résultat du calcul anti-robots.\n'; 42 } 43 else { 44 var boncalcul=parseInt($("#calcul1").val())+parseInt($("#calcul2").val()); 45 if(document.getElementById("encbots").value!=boncalcul)msgerr+='- Le calcul anti-robots est faux.\n'; 46 } 47 48 if(msgerr!=''){ 49 // affichage de la modale 50 $( "#dialog-messageerr" ).html( msgerr ); 51 $( "#dialog-messageerr" ).dialog( "open" ); 52 retour=false; 53 } 54 else retour=true; 55 56 57 return retour; 58 59} 60
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.